Registry / crypto / hpke
library0.13.0rscratesunverified

An implementation of the HPKE hybrid encryption standard (RFC 9180) in pure Rust.

# Cargo.toml [dependencies] hpke = "0.13.0"
INSTALL
IMPORT
SIG · HPKE
H
hpke
cryptorustv0.13.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SingleShotKEM
use hpke::SingleShotKEM;

Generate an HPKE key pair using the single-shot KEM.

use hpke::SingleShotKEM; fn main() { let (pk, sk) = SingleShotKEM::gen_keypair(); println!("Public key: {:?}", pk); }
Debug
Known issues
gotchaRequires the `alloc` feature for heap allocation; may not work in no_std environments without it.
fix
Enable the `alloc` feature in your Cargo.toml: `hpke = { version = "0.13", features = ["alloc"] }`
affects: >=0.10.0
Upgrade
Version history
0.13.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
hpke — cargo add hpke · libregistry