Cargo Features

cosmian_crypto_core = { version = "9.4.0", default-features = false, features = ["aes", "blake", "certificate", "chacha", "curve25519", "ecies", "rsa", "nist_curves", "rfc5649", "ser", "sha3"] }
default = aes, blake, certificate, chacha, curve25519, ecies, nist_curves, rfc5649, rsa, ser, sha3

These default features are set whenever cosmian_crypto_core is added without default-features = false somewhere in the dependency tree.

aes default rfc5649 = aead, aes-gcm
blake default = blake2

Affects cosmian_crypto_core::blake2

certificate default = curve25519, pkcs8, uuid, x509-cert
chacha default rfc5649 = aead, chacha20, chacha20poly1305
curve25519 default certificate = curve25519-dalek, ed25519-dalek, sha2, signature
ecies default = aead, crypto_box
rsa default = digest, pkcs8, rfc5649, sha1, sha2

Enables rsa and sha3

nist_curves default = elliptic-curve, p192, p224, p256, p384, pkcs8
rfc5649 default rsa = aes, chacha
ser default = leb128

Affects cosmian_crypto_core::bytes_ser_de

sha3 default = tiny-keccak

Affects cosmian_crypto_core::kdf

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.

aead aes chacha ecies
aes-gcm aes
blake2 blake
chacha20 chacha
chacha20poly1305 chacha
crypto_box ecies
curve25519-dalek curve25519
digest rsa
ed25519-dalek curve25519
elliptic-curve nist_curves
leb128 ser
p192 nist_curves
p224 nist_curves
p256 nist_curves
p384 nist_curves
pkcs8 certificate nist_curves rsa
sha1 rsa
sha2 curve25519 rsa
signature curve25519
tiny-keccak sha3
uuid certificate
x509-cert certificate