Cargo Features

Cipher has no features set by default.

[dependencies]
cipher = { version = "0.5.0-pre.7", features = ["std", "alloc", "block-padding", "rand_core", "dev", "zeroize"] }
std = alloc

Enables std of crypto-common and inout

alloc std?

Affects block::BlockCipherEncrypt.encrypt_padded_vec, block::BlockCipherDecrypt.decrypt_padded_vec, block::BlockModeEncrypt.encrypt_padded_vec, block::BlockModeDecrypt.decrypt_padded_vec

block-padding

Enables block-padding of inout

Affects block::BlockCipherEncrypt.encrypt_padded_inout, block::BlockCipherEncrypt.encrypt_padded, block::BlockCipherEncrypt.encrypt_padded_b2b, block::BlockCipherDecrypt.decrypt_padded_inout, block::BlockCipherDecrypt.decrypt_padded, block::BlockCipherDecrypt.decrypt_padded_b2b, block::BlockModeEncrypt.encrypt_padded_inout, block::BlockModeEncrypt.encrypt_padded, block::BlockModeEncrypt.encrypt_padded_b2b, block::BlockModeDecrypt.decrypt_padded_inout, block::BlockModeDecrypt.decrypt_padded, block::BlockModeDecrypt.decrypt_padded_b2b, block::BlockCipherEncrypt.encrypt_padded_vec, block::BlockCipherDecrypt.decrypt_padded_vec, block::BlockModeEncrypt.encrypt_padded_vec, block::BlockModeDecrypt.decrypt_padded_vec

rand_core

Enable random key and IV generation methods

Enables rand_core of crypto-common

dev = blobby

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

blobby dev?

Enables blobby

optional dependencies

zeroize implicit feature