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 whenever ecies is added without default-features = false somewhere in the dependency tree.

std

Enables std of hkdf and libsecp256k1

libsecp256k1:

elliptic curves

and std of once_cell and sha2

once_cell:

configuration

aes-12bytes-nonce

cipher
with feature "openssl" or "pure". default: 16 bytes

Affects consts::NONCE_LENGTH

openssl default

Enables openssl

openssl aes

pure = typenum

Enables aes of aes-gcm

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