IntelligenceAlgorithmsml-kem
ML-KEM
The Module-Lattice-Based Key-Encapsulation Mechanism derived from CRYSTALS-Kyber, specified in FIPS 203 with parameter sets ML-KEM-512, ML-KEM-768 and ML-KEM-1024. It is being deployed in TLS, SSH and messaging, usually combined with X25519. It is designed to resist known quantum attacks; that is a design goal, not a proof.
In short
What a quantum computer changes.
- Quantum effect
- Designed to resist
- Family
- Post-quantumRests on module learning with errors.
- What it means
- This scheme rests on module learning with errors for which no efficient quantum algorithm is known. Shor's algorithm does not apply to it, and the best published quantum attacks give only a modest speed-up at the recommended parameters. That is a design goal backed by public analysis, not a proof. These schemes are newer than the ones they replace, so implementation mistakes and side channels matter as much as the mathematics, and recommended parameters can change as analysis continues.
This describes the family, not any project that uses it.
28 in the catalogue
Packages that provide it
| Package | Provides |
|---|---|
| libsodium-wrappersnpm | libsodium compiled to WebAssembly and JavaScript with generated wrappers: X25519, Ed25519, XSalsa20-Poly1305 and ChaCha20-Poly1305 encryption, BLAKE2b, SHA-2, SHA-3, HMAC, Argon2 password hashing, ML-KEM-768 and the X-Wing hybrid KEM. |
| libsodium-wrappers-sumonpm | The sumo build of libsodium.js: everything in libsodium-wrappers plus scrypt password hashing and lower-level functions. |
| @hpke/ml-kemnpm | HPKE extension module providing ML-KEM-512, ML-KEM-768 and ML-KEM-1024 as KEMs for @hpke/core. |
| @noble/post-quantumnpm | Pure TypeScript post-quantum library: ML-KEM (FIPS 203), ML-DSA (FIPS 204), SLH-DSA (FIPS 205), Falcon, and hybrid KEMs including X-Wing (ML-KEM-768 with X25519). |
| mlkemnpm | TypeScript ML-KEM (FIPS 203) and CRYSTALS-Kyber implementation for browsers, Node.js, Deno and other runtimes, using native WebCrypto ML-KEM when the runtime has it. |
| crystals-kybernpm | Pure JavaScript CRYSTALS-Kyber key encapsulation at the 512, 768 and 1024 levels, based on the NIST PQC Round 3 submission. |
| pqcleannpm | Node.js native and WebAssembly bindings to PQClean, covering ML-KEM, HQC and Classic McEliece key encapsulation and ML-DSA, SPHINCS+ and Falcon signatures. |
| aws-lc-rscrates.io | ring-compatible Rust API over the AWS-LC C library, adding ML-KEM, ML-DSA, RSA encryption, raw AES modes and an optional FIPS build. |
| aws-lc-syscrates.io | Low-level generated FFI bindings to the AWS-LC C cryptography library, which aws-lc-rs wraps. |
| boringcrates.io | Rust bindings to BoringSSL with TLS support, RSA, DSA, Diffie-Hellman, ECDSA and ECDH, Ed25519 and X25519, ML-KEM, ML-DSA, HPKE, AEAD ciphers, hashes, HMAC and key derivation. |
| botancrates.io | Rust wrapper for the Botan C++ library, exposing ciphers, hashes, MACs, KDFs, password hashing, random generators, X.509 and classical and post-quantum public key algorithms. |
| libcruxcrates.io | Re-export crate for the libcrux library of formally verified implementations, including ML-KEM, ML-DSA, X25519, P-256 ECDSA and ECDH, Ed25519, RSA-PSS, AES-GCM, ChaCha20-Poly1305, SHA-2, SHA-3, BLAKE2, HMAC, HKDF and HPKE. |
| libcrux-ml-kemcrates.io | Formally verified Rust implementation of ML-KEM-512, ML-KEM-768 and ML-KEM-1024 (FIPS 203) with portable, AVX2 and NEON code. |
| orioncrates.io | Pure Rust library offering ML-KEM, ML-DSA, X-Wing, HPKE, X25519, (X)ChaCha20-Poly1305, BLAKE2b, BLAKE3, SHA-2, SHA-3, HMAC, HKDF, PBKDF2, Argon2 and scrypt. |
| dryoccrates.io | Pure Rust libsodium-compatible library with crypto_box, secretbox, Ed25519 signatures, BLAKE2b, SHA-2, SHA-3, HMAC, HKDF, Argon2 password hashing, ML-KEM-768, X-Wing and HPKE sealed boxes. |
| ml-kemcrates.io | Pure Rust ML-KEM-512, ML-KEM-768 and ML-KEM-1024 key encapsulation as specified in FIPS 203 (final). |
| fips203crates.io | Pure Rust, no_std implementation of all three ML-KEM parameter sets from FIPS 203. |
| oqscrates.io | Rust interface to the liboqs C library of post-quantum key encapsulation and signature schemes. |
| pqcryptocrates.io | Umbrella crate re-exporting the pqcrypto-* bindings to PQClean C implementations of ML-KEM, Classic McEliece, HQC, ML-DSA, Falcon and SPHINCS+. |
| pqcrypto-mlkemcrates.io | Rust bindings to the PQClean C implementations of ML-KEM-512, ML-KEM-768 and ML-KEM-1024. |
| pqcrypto-kybercrates.io | Rust bindings to the PQClean C implementations of Kyber-512, Kyber-768 and Kyber-1024. |
| pqc_kybercrates.io | Pure Rust implementation of the Kyber key encapsulation mechanism with an optional AVX2 backend. |
| safe_pqc_kybercrates.io | Conservative fork of pqc_kyber implementing the Kyber key encapsulation mechanism in pure Rust. |
| rustlscrates.io | TLS 1.2 and TLS 1.3 library in Rust whose cryptography comes from a pluggable provider, aws-lc-rs by default or ring. |
| rustls-post-quantumcrates.io | rustls crypto provider built on aws-lc-rs that adds post-quantum key exchange and experimental ML-DSA signatures. |
| hpkecrates.io | 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. |
| agecrates.io | Library for the age file encryption format, with X25519, hybrid ML-KEM-768 plus X25519, P-256 tag, SSH key and scrypt passphrase recipients and ChaCha20-Poly1305 payload encryption. |
| sequoia-openpgpcrates.io | OpenPGP (RFC 9580 and RFC 4880) implementation with RSA, DSA, ECDSA, ECDH, EdDSA, X25519 and X448 keys, post-quantum ML-KEM, ML-DSA and SLH-DSA algorithms, AES and SHA-1, SHA-2 and SHA-3 hashes. |
2 listed
Sources
- FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standardcsrc.nist.govRetrieved 3 December 2026
- SP 800-227: Recommendations for Key-Encapsulation Mechanismscsrc.nist.govRetrieved 3 December 2026
Full record
- Identifier
- ml-kem
- Kind
- kem
- Family
- Post-quantum
- Rests on
- module learning with errors
- Quantum effect
- Designed to resist
Standards
- FIPS 203Module-Lattice-Based Key-Encapsulation Mechanism StandardNIST, final, published 13 August 2024Checked 3 December 2026
- SP 800-227Recommendations for Key-Encapsulation MechanismsNIST, final, published 18 September 2025Checked 3 December 2026