Skip to main content

Crate hpke_rs_crypto

Crate hpke_rs_crypto 

Source
Expand description

§HPKE Crypto Trait

crates.io Docs Rust Version

The hpke-rs crate can be used with different cryptography backends to perform the cryptographic operations. This crate defines the HpkeCrypto trait that is required to instantiate hpke-rs. It further defines necessary types and errors.

Please see hpke-rs for more details.

Modules§

error
HPKE Crypto Trait Errors
types
HPKE Algorithm Identifiers

Traits§

CryptoRng
A marker trait for securely unpredictable infallible RNGs
HpkeCrypto
The HpkeCrypto trait defines the necessary cryptographic functions used in the HPKE implementation.
HpkeDefaultPrng
Implemented by the default HPKE providers — the ones that know how to construct their own PRNG with no input from the caller (typically by drawing on system entropy). Used by Hpke::new/Hpke::try_new. A provider parameterized over a caller-supplied Rng (e.g. HpkeLibcrux<R> for some R other than the default) has no default and doesn’t implement this; use Hpke::new_with_rng for those instead.
Rng
Trait for infallible random number generators
TryCryptoRng
A marker trait over TryRng for securely unpredictable RNGs
TryRng
Base trait for random number generators and random data sources