Cargo Features
[dependencies]
hpke = { version = "0.12.0", default-features = false, features = ["x25519", "p384", "p256", "p521", "alloc", "std"] }
- default = alloc, p256, x25519
-
"p256" enables the use of ECDH-NIST-P256 as a KEM
"p384" enables the use of ECDH-NIST-P384 as a KEM
"x25519" enables the use of the X25519 as a KEM - x25519 default
-
Enables x25519-dalek
- p384
-
Enables p384
- p256 default
-
Enables p256
- p521
-
Enables p521
- alloc default
-
Include allocating methods like open() and seal()
Affects
single_shot::single_shot_seal
,single_shot::single_shot_open
… - std
-
Includes an implementation of
std::error::Error
forHpkeError
. Also does whatalloc
does.Affects
single_shot::single_shot_seal
,single_shot::single_shot_open
…