{"id":67229,"library":"hpke","title":"HPKE","description":"An implementation of the HPKE hybrid encryption standard (RFC 9180) in pure Rust.","status":"active","version":"0.13.0","language":"rust","source_language":null,"source_url":"https://github.com/rozbb/rust-hpke","tags":["encryption","hpke","rfc9180","crypto","hybrid"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nhpke = \"0.13.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add hpke","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"SingleShotKEM","correct":"use hpke::SingleShotKEM;"}],"quickstart":{"code":"use hpke::SingleShotKEM;\n\nfn main() {\n    let (pk, sk) = SingleShotKEM::gen_keypair();\n    println!(\"Public key: {:?}\", pk);\n}","lang":"rust","description":"Generate an HPKE key pair using the single-shot KEM."},"warnings":[{"fix":"Enable the `alloc` feature in your Cargo.toml: `hpke = { version = \"0.13\", features = [\"alloc\"] }`","message":"Requires the `alloc` feature for heap allocation; may not work in no_std environments without it.","severity":"gotcha","affected_versions":">=0.10.0"}],"env_vars":null,"search_vec":"'9180':11 'crypto':18 'encrypt':8,15 'hpke':1,6,16 'hybrid':7,19 'implement':3 'pure':13 'rfc':10 'rfc9180':17 'rust':14 'standard':9","created_at":"2026-06-17T17:34:38.706993+00:00","updated_at":"2026-06-17T17:34:38.706993+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/rozbb/rust-hpke","github":"https://github.com/rozbb/rust-hpke","docs":"https://docs.rs/hpke/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["crypto"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}