ML-KEM
ML-KEM, the Module-Lattice-Based Key-Encapsulation Mechanism, is the post-quantum algorithm NIST standardized in FIPS 203 for agreeing on a shared secret key. It is derived from CRYSTALS-Kyber and takes the place of key exchanges such as elliptic-curve Diffie-Hellman, which a large quantum computer could break.
Updated 4 December 2026How a key-encapsulation mechanism works
A key-encapsulation mechanism, or KEM, lets two parties agree on a secret key over an open connection in three steps:
- Key generation. The receiver makes a key pair: an encapsulation key it sends out, and a decapsulation key it keeps.
- Encapsulation. The sender uses the encapsulation key to make a random shared secret and a ciphertext that carries it, and sends the ciphertext back.
- Decapsulation. The receiver uses its decapsulation key to get the same shared secret out of the ciphertext.
Both sides then derive the keys for symmetric encryption, such as AES, from the 32-byte shared secret. In TLS 1.3 the client puts an encapsulation key in its first message and the server answers with a ciphertext, so ML-KEM takes the place of a Diffie-Hellman exchange without adding a round trip.
The three parameter sets
| Parameter set | NIST security category | Encapsulation 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 |
Sizes from FIPS 203. For comparison, an X25519 public key is 32 bytes. Every set gives a 32-byte shared secret. FIPS 203 recommends ML-KEM-768 as the default, and it is the set in the TLS hybrid X25519MLKEM768 and in OpenSSH's default key exchange. CNSA 2.0, for US national security systems, asks for ML-KEM-1024.
X25519MLKEM768 and other hybrids
A hybrid runs a classical key exchange and ML-KEM side by side and combines the two secrets, so an attacker has to break both. X25519MLKEM768 is a hybrid for TLS 1.3: Chrome uses it by default and Cloudflare supports it. In SSH, OpenSSH 10.0 made mlkem768x25519-sha256 its default key agreement in April 2025.
A hybrid only helps when both ends support it. When we checked on 4 December 2026, commentllm.com and api.commentllm.com negotiated X25519MLKEM768 with clients that offer it. Clients that do not, including any still on TLS 1.2, got a classical key exchange: X25519, or P-256 if that is all they offer. The hybrid protects the key exchange only: both sites' certificates still use ECDSA P-256, which a large quantum computer could also break.
What the November 2026 research means
On 30 November 2026 Anthropic published research that included a quantum algorithm for certain module-lattice problems, the kind ML-KEM and ML-DSA are built on. Anthropic said the results lower its long-term confidence in structured lattices, on which both rely. The Cryptography Incident Review Group, cryptographers Anthropic had shared the results with beforehand, published an initial assessment the same day:
- Against ML-KEM and ML-DSA the attack is impractical. It needs vastly more computation than the best earlier attacks, which were already far beyond reach, and a large quantum computer. For the smallest sets, ML-KEM-512 and ML-DSA-44, the reviewers put its cost far above 21000 quantum operations.
- Its significance is asymptotic. The speedup comes from the algebraic structure these standards use and applies as the degree of each lattice component grows. ML-KEM keeps that degree fixed at 256 and reaches higher security levels by adding components.
- Anthropic found no better classical attack. It reported no improvement in non-quantum attacks on mainstream lattice systems.
- It is expected to improve. The reviewers say it is reasonable to expect the attack to be improved in the near future. The open question is whether that will lower the cost of breaking the standards.
Their advice: keep moving to post-quantum cryptography, choose the highest security level each application can support, use hybrids that combine different kinds of mathematics, and build systems that can swap algorithms quickly. A hybrid with X25519 guards against a flaw in ML-KEM that needs no quantum computer, but against a quantum attacker only the ML-KEM half counts. The reviewers also strongly recommend that NIST standardize more public-key algorithms of diverse designs.
Finding where you need it
ML-KEM replaces key exchanges, so start by finding yours: TLS and SSH settings, VPNs, and code that calls a key-exchange function or relies on a library's default. In our test of AI agents, key exchanges left to library defaults were the most common miss. What a post-quantum readiness assessment covers.
Questions
Are Kyber and ML-KEM the same?
ML-KEM is the standardized form of CRYSTALS-Kyber. NIST changed some details when it wrote FIPS 203, listed in the standard's Appendix C, so the final ML-KEM and the earlier Kyber submission are not interchangeable. Use ML-KEM in new systems.
What is the difference between ML-KEM and ML-DSA?
ML-KEM (FIPS 203) agrees on a shared secret key, in place of key exchanges such as elliptic-curve Diffie-Hellman. ML-DSA (FIPS 204) makes digital signatures, in place of RSA and ECDSA signatures. Both are built on module lattices, and NIST published both in August 2024.
What is X25519MLKEM768?
A hybrid key agreement for TLS 1.3 that combines the classical X25519 with ML-KEM-768, so the shared key stays secret as long as either of the two holds. Chrome uses it by default and Cloudflare supports it. When we checked on 4 December 2026, commentllm.com and api.commentllm.com negotiated it with clients that offer it.
Is ML-KEM still safe after the November 2026 research?
As far as is publicly known, yes. On 30 November 2026 Anthropic published a theoretical quantum attack on some of the module-lattice problems behind ML-KEM and ML-DSA. The cryptographers who reviewed it found that against these standards it needs vastly more computation than the best earlier attacks, which were already far beyond reach, and a large quantum computer. They expect the attack to be improved, and Anthropic said the results lower its long-term confidence in structured lattices. Both recommend continuing the move to post-quantum cryptography.
Which ML-KEM parameter set should I use?
FIPS 203 recommends ML-KEM-768 as the default, and it is the set in the TLS hybrid X25519MLKEM768 and in OpenSSH's default key exchange. CNSA 2.0, for US national security systems, asks for ML-KEM-1024. The cryptographers who reviewed the November 2026 research recommend the highest security level each application can support.
Start building today.
Create an account, tell us what you work on, and send your first request.
