What is ML-KEM? The post-quantum key exchange standard explained
What is ML-KEM? A plain-English guide to NIST's FIPS 203 post-quantum key encapsulation standard, its three parameter sets, hybrid use in TLS and SSH, and what to check in your stack.
Axrok Team8 min read
ML-KEM is the algorithm most of the internet is moving to for post-quantum key exchange. If you have read that Chrome, OpenSSH or your cloud provider now offers "post-quantum" connections, ML-KEM is almost certainly what sits underneath. This post explains what it is, how it works at a level that does not need any maths, which version to use, and what it means for your own systems.
Key takeaways
- ML-KEM stands for Module-Lattice-Based Key-Encapsulation Mechanism. NIST published it as FIPS 203 on August 13, 2024, and it took effect the same day.
- It replaces the job that RSA and elliptic curve key exchange do today: letting two parties agree on a shared secret key over a public network.
- It comes in three parameter sets, ML-KEM-512, ML-KEM-768 and ML-KEM-1024. NIST recommends ML-KEM-768 as the default.
- It is derived from CRYSTALS-Kyber, but the final standard is not compatible with older Kyber implementations.
- Early deployments mostly use it in a hybrid with X25519, so a connection stays at least as strong as today's classical key exchange.
The problem ML-KEM solves
Almost every encrypted connection starts with key establishment. Two sides that have never met need to agree on a secret key, while anyone on the network can watch. Today that is usually done with elliptic curve Diffie-Hellman or, in older systems, RSA. Once both sides share the key, fast symmetric algorithms such as AES protect the actual data.
The weak point is that a large enough quantum computer running Shor's algorithm could recover those shared keys from recorded traffic. That is the basis of the "harvest now, decrypt later" concern: an attacker can store encrypted traffic today and decrypt it once the hardware exists. Our post on harvest now, decrypt later covers why that matters for data with a long shelf life.
ML-KEM is NIST's answer for the key establishment step. The FIPS 203 standard says its security is related to the difficulty of solving certain systems of noisy linear equations, known as the Module Learning With Errors (MLWE) problem, and that at present this method is believed to be secure even against adversaries who possess a quantum computer.
What a KEM is, without the maths
A key-encapsulation mechanism (KEM) works a little differently from the Diffie-Hellman exchange most engineers know. FIPS 203 describes it in three steps, using the usual Alice and Bob:
- Alice generates a pair of keys: a decapsulation key she keeps private, and an encapsulation key she makes available to Bob.
- Bob uses Alice's encapsulation key to produce two things: his copy of a shared secret key, and a ciphertext. He sends the ciphertext to Alice.
- Alice uses the ciphertext and her private decapsulation key to compute her own copy of the same shared secret key.
Both sides now hold the same 32-byte secret, and an eavesdropper who saw the encapsulation key and the ciphertext cannot work it out. That secret then feeds into symmetric encryption and authentication, exactly as a classical key exchange would.
A KEM only establishes keys. It does not prove who you are talking to. That is the job of digital signatures, which NIST covers in FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA). Our guide to the NIST post-quantum standards FIPS 203, 204 and 205 explains how the three fit together.
Where ML-KEM came from
ML-KEM came out of NIST's public post-quantum competition, which began with a call for proposals in 2016. NIST selected the CRYSTALS-Kyber submission, and FIPS 203 says ML-KEM is the name given to the algorithm derived from it. The standard lists the differences from the original submission in an appendix.
Those differences matter in practice. Google's security team explained in A new path for Kyber on the web that the changes in the final version make ML-KEM incompatible with the previously deployed Kyber. Chrome switched from Kyber to ML-KEM in Chrome 131, and changed the TLS codepoint for the hybrid exchange from 0x6399 (Kyber768 with X25519) to 0x11EC (ML-KEM-768 with X25519). If a vendor tells you they support "Kyber", ask whether they mean the final FIPS 203 version.
The three parameter sets
FIPS 203 defines three parameter sets. Larger sets give a bigger security margin, but keys and ciphertexts grow.
| Parameter set | NIST security category | Encapsulation key | Ciphertext | Shared secret |
|---|---|---|---|---|
| ML-KEM-512 | 1 | 800 bytes | 768 bytes | 32 bytes |
| ML-KEM-768 | 3 | 1,184 bytes | 1,088 bytes | 32 bytes |
| ML-KEM-1024 | 5 | 1,568 bytes | 1,568 bytes | 32 bytes |
The sizes come from Table 3 of FIPS 203. The security categories come from NIST's original call for proposals. Rather than giving a single "bits of security" number, each category says that breaking the parameter set should take at least as much computing effort as breaking a generic block cipher or hash function of a given size.
On which to choose, the standard is direct: NIST recommends ML-KEM-768 as the default parameter set, as it provides a large security margin at a reasonable performance cost. Other parameter sets may be used where that is impractical or where even higher security is required.
For comparison, an X25519 public key is 32 bytes. Post-quantum keys are much larger, which is why message size, packet fragmentation and older middleboxes come up in migration testing.
Hybrid ML-KEM: how it is actually deployed
Most real deployments today do not use ML-KEM on its own. They combine it with a classical algorithm so that the connection is secure as long as either part holds.
NIST covers this in SP 800-227, Recommendations for Key-Encapsulation Mechanisms, published in September 2025. It describes multi-algorithm schemes and notes that a well-designed one will be secure if at least one of its components is secure. It gives the example of migration approaches that pair a new post-quantum algorithm with a tried-and-tested but quantum-vulnerable one, sometimes called hybrid post-quantum/traditional (PQ/T) key establishment.
You can already see this in three widely used places:
- TLS 1.3. RFC 10024, published by the IETF in August 2026, defines three hybrid groups: X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. For X25519MLKEM768, the client share is 1,216 bytes: 1,184 for ML-KEM and 32 for X25519.
- Browsers. Chrome's security team reported in its Q4 2024 summary that ML-KEM is enabled by default in Chrome on Windows, Mac, Linux, ChromeOS and Android as of Chrome 131.
- SSH. The OpenSSH 10.0 release notes, from April 2025, say the hybrid algorithm mlkem768x25519-sha256 is now used by default for key agreement.
The practical effect is that some of your traffic may already be protected by ML-KEM without anyone on your team having changed a setting. The question is which connections are, and which are not.
Is ML-KEM safe to rely on?
ML-KEM is a final federal standard, and NIST continues to treat it as the main choice for general encryption. In March 2025 NIST selected HQC as a backup KEM built on different maths (error-correcting codes rather than lattices). NIST said HQC is not intended to replace ML-KEM, and that organizations should continue to migrate to the standards finalized in 2024.
Two practical cautions. First, the security of any KEM depends on the implementation. SP 800-227 lists conditions for secure use, including keeping the randomness, the decapsulation key and the shared secret secret. Use well-maintained libraries rather than writing your own. Second, hybrids exist precisely because the algorithm is newer than RSA and elliptic curves. Using X25519MLKEM768 rather than pure ML-KEM is a reasonable default for most teams during migration.
What to check in your own stack
You do not need to become a cryptographer to make progress. A short list:
- Find out where key exchange happens. Public websites and APIs, internal service-to-service traffic, VPNs, SSH, and any custom protocols.
- Check what your TLS terminators support. Load balancers, CDNs and reverse proxies often decide this for you. See whether X25519MLKEM768 is offered and enabled.
- Check your libraries and SSH versions. OpenSSH 10.0 and later default to the hybrid ML-KEM exchange. Older clients and servers may not.
- Ask your vendors the right questions. Our post-quantum vendor questions checklist gives wording you can reuse.
- Test for breakage. Larger key shares can trip up older middleboxes and strict firewalls. Test before enabling everywhere.
- Line it up with deadlines. Our explainer on NIST IR 8547 and the 2030 and 2035 dates covers when quantum-vulnerable algorithms are due to be deprecated and disallowed.
FAQ
What does ML-KEM stand for?
Module-Lattice-Based Key-Encapsulation Mechanism. It is specified in NIST FIPS 203, published on August 13, 2024.
Is ML-KEM the same as Kyber?
ML-KEM is derived from CRYSTALS-Kyber, but the final standard includes changes that make it incompatible with earlier Kyber deployments. Chrome, for example, dropped hybrid Kyber when it moved to ML-KEM in Chrome 131.
Which ML-KEM parameter set should I use?
NIST recommends ML-KEM-768 as the default. ML-KEM-1024 gives a higher security category with larger keys. ML-KEM-512 is smaller but has the lowest security category of the three.
Does ML-KEM replace digital signatures?
No. ML-KEM only establishes shared keys. Authentication still needs signatures, and NIST's post-quantum signature standards are ML-DSA (FIPS 204) and SLH-DSA (FIPS 205).
What is X25519MLKEM768?
It is a hybrid key exchange for TLS 1.3 that combines classical X25519 with ML-KEM-768. RFC 10024 defines it, and Chrome uses it by default.
Is HQC replacing ML-KEM?
No. NIST selected HQC in March 2025 as a backup based on different maths. NIST said ML-KEM remains the recommended choice for general encryption.
Talk it through
If you want to know where your systems already use ML-KEM and where they still rely on quantum-vulnerable key exchange, we are happy to talk it through. Book a free 15-minute call through our contact page or email zayan@axrok.com, and we can help you see whether a post-quantum security review fits your situation right now.
Sources
- NIST, FIPS 203, "Module-Lattice-Based Key-Encapsulation Mechanism Standard": https://csrc.nist.gov/pubs/fips/203/final
- NIST, SP 800-227, "Recommendations for Key-Encapsulation Mechanisms": https://csrc.nist.gov/pubs/sp/800/227/final
- NIST, "NIST Selects HQC as Fifth Algorithm for Post-Quantum Encryption": https://www.nist.gov/news-events/news/2025/03/nist-selects-hqc-fifth-algorithm-post-quantum-encryption
- IETF, RFC 10024, "Post-Quantum Traditional (PQ/T) Hybrid Key Agreement Mechanisms for TLS 1.3": https://www.rfc-editor.org/rfc/rfc10024.html
- Google Online Security Blog, "A new path for Kyber on the web": https://security.googleblog.com/2024/09/a-new-path-for-kyber-on-web.html
- Chrome Security, "Q4 2024 Summary from Chrome Security": https://groups.google.com/a/chromium.org/g/security-dev/c/c8TwbxJVERk
- OpenSSH, "OpenSSH 10.0 release notes": https://www.openssh.com/txt/release-10.0