IntelligenceComponentscrates.io
hpke
Pure Rust Hybrid Public Key Encryption (RFC 9180) with X25519 and NIST P-curve DHKEMs, ML-KEM and X-Wing KEMs, HKDF or SHAKE KDFs and AES-GCM or ChaCha20-Poly1305.
In short
What to know.
- Algorithms
- HPKE, X25519, ECDH (Weierstrass curves), ML-KEM and 4 more3 of 8 would be broken by a large quantum computer.
- Advisories
- None in the storeOSV last read 3 December 2026, 16:51 UTC.
- What to do
- Plan a move away from HPKE, X25519, ECDH (Weierstrass curves) before large quantum computers exist.
0 in the store
Advisories
No advisory in the store for this package.
OSV listed none on 3 December 2026, 16:51 UTC. That does not mean the package has no problems.
Reviewed 3 December 2026
Sources
- crates.io metadata for hpkecrates.ioRetrieved 3 December 2026
- hpke 0.15.2 README on crates.iocrates.ioRetrieved 3 December 2026
- hpke documentationdocs.rsRetrieved 3 December 2026
- rust-hpke READMEraw.githubusercontent.comRetrieved 3 December 2026
Full record
- Package
- hpke
- Ecosystem
- crates.io
- Role
- Protocol
- Repository
- github.com/rozbb/rust-hpke
- Status
- Not marked deprecated by its registry or maintainers.
- Notes
- The ML-KEM and hybrid KEMs follow IETF drafts (draft-ietf-hpke-pq, X-Wing and hybrid KEM drafts) rather than final RFCs.
- Reviewed
- Entry reviewed 3 December 2026. Catalogue entry, curated by hand and incomplete by design.
- Advisories read
- Last read from OSV 3 December 2026, 16:51 UTC
- Findings
- No finding refers to this package yet.
Algorithms it provides
- HPKE public-key-encryptionClassical public keyBroken by Shor's algorithm
- X25519 key-exchangeClassical public keyBroken by Shor's algorithm
- ECDH (Weierstrass curves) key-exchangeClassical public keyBroken by Shor's algorithm
- ML-KEM kemPost-quantumDesigned to resist
- X25519MLKEM768 kemHybridHybrid
- HKDF kdfSymmetricWeakened by Grover's search
- AES-GCM aeadSymmetricWeakened by Grover's search
- ChaCha20-Poly1305 aeadSymmetricWeakened by Grover's search
What a large quantum computer would change
- Broken by Shor's algorithmRests on factoring or discrete logarithms. A large fault-tolerant quantum computer running Shor's algorithm would break it.HPKE, X25519, ECDH (Weierstrass curves)
- Designed to resistDesigned to resist known quantum attacks. That is a design goal, not a proof.ML-KEM
- HybridCombines a classical scheme with a post-quantum one, so an attacker has to break both parts.X25519MLKEM768
- Weakened by Grover's searchGrover's search would roughly halve its effective security. 256-bit keys and outputs stay adequate.HKDF, AES-GCM, ChaCha20-Poly1305
Notes describe algorithm families, not any one project.