ML-KEM (Module-Lattice-Based Key-Encapsulation Mechanism) is the main standard for post-quantum key exchange, published by NIST as FIPS 203 in August 2024. It grew out of the algorithm CRYSTALS-Kyber. Its security rests on Module-LWE, a hard problem on lattices that no known quantum algorithm solves at real sizes.
How a KEM works
A key-encapsulation mechanism does not encrypt your data. It agrees on a fresh secret between two sides, which then encrypts the data with a fast cipher such as AES:
- Alice makes a key pair and sends the public (encapsulation) key.
- Bob uses it to make a random 32-byte shared secret and a ciphertext that wraps it. He sends the ciphertext.
- Alice unwraps the ciphertext with her private (decapsulation) key and gets the same 32-byte secret.
Sizes
| Parameter set | NIST category | Public key | Ciphertext |
|---|---|---|---|
| ML-KEM-512 | 1 (like AES-128) | 800 bytes | 768 bytes |
| ML-KEM-768 | 3 (like AES-192) | 1,184 bytes | 1,088 bytes |
| ML-KEM-1024 | 5 (like AES-256) | 1,568 bytes | 1,568 bytes |
That is much larger than X25519, whose public key has 32 bytes, but still small enough for a TLS handshake. ML-KEM-768 is the common choice.
Where you meet it
Mostly in hybrid form with X25519, as X25519MLKEM768 in browsers and at Cloudflare, and as mlkem768x25519-sha256, the default key exchange of OpenSSH since version 10.0.
Is ML-KEM broken?
No. In November 2026 Anthropic published a quantum algorithm that is faster than earlier methods only for sizes far beyond ML-KEM. Outside reviewers estimated that even 21000 quantum operations would not be enough against ML-KEM-512, and recommended to keep migrating. Details: Did AI break encryption?