Cargo Features
[dependencies]
hpke = { version = "0.11.0", default-features = false, features = ["x25519", "p384", "p256", "serde_impls", "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
- serde_impls = serde
-
Include serde Serialize/Deserialize impls for all relevant types
Enables serde of generic-array ^0.14
- 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
…
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.