Cargo Features

[dependencies]
ecies = { version = "0.2.6", default-features = false, features = ["std", "aes-12bytes-nonce", "pure", "xchacha20", "openssl"] }
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, once_cell, and sha2

once_cell:

configuration

aes-12bytes-nonce

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

Affects consts::AES_NONCE_LENGTH

pure = typenum

Enables aes of aes-gcm

pure rust aes

xchacha20 = chacha20poly1305

Affects consts::XCHACHA20_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.

openssl default

Enables openssl

openssl aes

aes-gcm pure?
typenum pure?
chacha20poly1305 xchacha20?

Enables chacha20poly1305

chacha20 cipher