Cargo Features
[dependencies]
ecies = { version = "0.2.7", default-features = false, features = ["std", "aes-12bytes-nonce", "openssl", "pure", "xchacha20"] }
- default = openssl
-
The
openssl
feature is set by default wheneverecies
is added without
somewhere in the dependency tree.default-features = false - std
-
Enables std of hkdf and libsecp256k1
libsecp256k1:
elliptic curves
once_cell:
configuration
- aes-12bytes-nonce
-
cipher
with feature "openssl" or "pure". default: 16 bytesAffects
consts::NONCE_LENGTH
… - openssl default
-
Enables openssl
openssl aes
- pure = typenum
-
pure rust aes
- xchacha20 = chacha20poly1305
-
Affects
consts::NONCE_LENGTH
…
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.
- aes-gcm pure?
- typenum pure?
- chacha20poly1305 xchacha20?
-
Enables chacha20poly1305
chacha20 cipher