Cargo Features

pkcs5 has no features set by default.

[dependencies]
pkcs5 = { version = "0.8.0-rc.9", features = ["alloc", "3des", "des-insecure", "pbes2", "sha1-insecure", "rand_core"] }
std alloc
3des = pbes2

Enables des

Affects pbes2::DES_EDE3_CBC_OID

des-insecure = pbes2

Enables des

Affects pbes2::DES_CBC_OID

pbes2 3des? des-insecure? sha1-insecure?

Enables aes, aes-gcm, cbc, pbkdf2, scrypt, and sha2

cbc:

optional dependencies

sha1-insecure = pbes2

Enables sha1

Features from optional dependencies

rand_core implicit feature

Enables rand_core

rand_core:

Core random number generator traits and tools for implementation