# ML-KEM: the NIST post-quantum key exchange

ML-KEM is the key encapsulation mechanism that NIST standardised in FIPS 203\. It is the post-quantum half of the key exchange that browsers use today. This page explains what it does, its sizes, and where it runs.

Published 4 Dec 2026 · Updated 4 Dec 2026

## What ML-KEM is

ML-KEM is short for Module-Lattice-Based Key-Encapsulation Mechanism. NIST published it as FIPS 203 on 13 August 2024[\[1\]](https://csrc.nist.gov/pubs/fips/203/final "FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard (ML-KEM) (NIST, 13 August 2024)"). It comes from CRYSTALS-Kyber, the algorithm that NIST selected in its post-quantum competition.

A key encapsulation mechanism (KEM) lets two parties agree on a shared secret over an open network. It does the same job as the Diffie-Hellman exchange in TLS today. The difference is the problem under it. X25519 depends on the discrete logarithm problem on an elliptic curve, and Shor's algorithm solves that problem on a large quantum computer. ML-KEM depends on a problem on module lattices. No known quantum algorithm solves it fast.

## How a KEM works

A KEM has three operations:

1. **Key generation.** The receiver makes a key pair: an encapsulation key, which is public, and a decapsulation key, which stays secret.
2. **Encapsulation.** The sender uses the encapsulation key to make a random shared secret and a ciphertext. The sender keeps the secret and sends the ciphertext.
3. **Decapsulation.** The receiver uses the decapsulation key to get the same shared secret from the ciphertext.

An observer sees the encapsulation key and the ciphertext. To get the shared secret from them, the observer must solve the lattice problem. Each ML-KEM shared secret is 32 bytes.

In TLS 1.3 the client does the key generation and sends the encapsulation key in its key share. The server encapsulates and sends the ciphertext in its key share. Both sides then have the secret. The exchange takes the same one round trip as X25519\.

## The three parameter sets

FIPS 203 defines three parameter sets. In order of increasing security and decreasing speed, they are ML-KEM-512, ML-KEM-768 and ML-KEM-1024[\[1\]](https://csrc.nist.gov/pubs/fips/203/final "FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard (ML-KEM) (NIST, 13 August 2024)").

__ML-KEM parameter sets and their sizes in bytes__
| Parameter set | NIST category | Encapsulation key | Ciphertext |
| ------------- | ------------- | ----------------- | ---------- |
| ML-KEM-512    | 1             | 800               | 768        |
| ML-KEM-768    | 3             | 1,184             | 1,088      |
| ML-KEM-1024   | 5             | 1,568             | 1,568      |

The NIST categories compare each set with the work to break AES by key search: category 1 is like AES-128, category 3 is like AES-192, and category 5 is like AES-256\. The web uses ML-KEM-768\. RFC 10024 gives the same sizes for it: a 1,184-byte encapsulation key and a 1,088-byte ciphertext[\[2\]](https://www.rfc-editor.org/rfc/rfc10024.html "RFC 10024: Hybrid key agreement for TLS 1.3 (IETF)").

## ML-KEM in TLS

TLS uses ML-KEM in a hybrid with a classical exchange. RFC 10024 defines three hybrid groups[\[2\]](https://www.rfc-editor.org/rfc/rfc10024.html "RFC 10024: Hybrid key agreement for TLS 1.3 (IETF)"):

* `X25519MLKEM768` (0x11EC): ML-KEM-768 with X25519\. This is the group that browsers send.
* `SecP256r1MLKEM768` (0x11EB): ML-KEM-768 with the NIST P-256 curve.
* `SecP384r1MLKEM1024` (0x11ED): ML-KEM-1024 with the NIST P-384 curve.

The IANA registry of TLS groups marks only X25519MLKEM768 as recommended[\[3\]](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml "TLS Supported Groups registry (IANA)"). Pure ML-KEM groups also have code points, but browsers do not send them by default. The [X25519MLKEM768 page](https://arewepostquantum.com/x25519mlkem768) explains how the hybrid combines the two secrets.

## From Kyber to ML-KEM

Before FIPS 203, Chrome and Cloudflare used a draft hybrid, X25519Kyber768Draft00, with the code point 0x6399\. FIPS 203 changed details of the algorithm, so the draft and the standard do not interoperate. In September 2024 Google said that Chrome 131 would move from the Kyber draft to ML-KEM, with the new code point 0x11EC[\[4\]](https://security.googleblog.com/2024/09/a-new-path-for-kyber-on-web.html "A new path for Kyber on the web (Google Security blog, September 2024)"). IANA now marks 0x6399 as obsolete[\[3\]](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml "TLS Supported Groups registry (IANA)").

A server that still accepts only the draft group gives current browsers a classical exchange. The check on this site reports the draft group apart from the standard groups for this reason.

## Where ML-KEM runs today

* **Browsers.** Chrome sends X25519MLKEM768 from Chrome 131[\[4\]](https://security.googleblog.com/2024/09/a-new-path-for-kyber-on-web.html "A new path for Kyber on the web (Google Security blog, September 2024)"). Firefox 132 added it for TLS 1.3[\[5\]](https://www.firefox.com/en-US/firefox/132.0/releasenotes/ "Firefox 132.0 release notes (Mozilla, 29 October 2024)"). Apple turns it on in TLS for iOS 26 and macOS Tahoe 26[\[6\]](https://support.apple.com/en-gb/122756 "Prepare your network or server for quantum-secure encryption in TLS (Apple)").
* **Libraries.** OpenSSL 3.5 supports ML-KEM, and its default TLS key shares are X25519MLKEM768 and X25519[\[8\]](https://openssl-library.org/news/openssl-3.5-notes/ "OpenSSL 3.5 release notes (OpenSSL, 8 April 2025)"). Go 1.24 turns on X25519MLKEM768 by default when `Config.CurvePreferences` is nil[\[7\]](https://go.dev/doc/go1.24 "Go 1.24 release notes (The Go project, February 2025)").
* **CDNs.** Cloudflare supports the hybrid for every site that it serves over TLS 1.3[\[9\]](https://developers.cloudflare.com/ssl/post-quantum-cryptography/ "Post-quantum cryptography (Cloudflare SSL/TLS documentation)").

## What ML-KEM does not do

ML-KEM protects the key exchange. It does not sign anything, so it does not replace the certificate. Certificates need a post-quantum signature, such as ML-DSA or SLH-DSA. The [NIST standards page](https://arewepostquantum.com/nist-pqc-standards) lists them.

NIST also selected HQC in March 2025 as a backup KEM with a different mathematical base. NIST says that ML-KEM remains the recommended choice for general encryption[\[10\]](https://www.nist.gov/news-events/news/2025/03/nist-selects-hqc-fifth-algorithm-post-quantum-encryption "NIST selects HQC as fifth algorithm for post-quantum encryption (NIST, 11 March 2025)").

The size of ML-KEM has a practical cost. A client hello with an X25519MLKEM768 share is often larger than one network packet. Some servers and middleboxes fail when a hello arrives in more than one packet. The check on this site tests for this: it sends the same hello as a browser and reports what the server does.

## Check a site

To see whether a site accepts ML-KEM, [enter its domain](https://arewepostquantum.com/). The check reports the group that the server chooses for a browser and every standard ML-KEM group that it accepts. The [top 100 sites](https://arewepostquantum.com/sites/top-100) and the [CDNs and clouds](https://arewepostquantum.com/sites/cdns-and-clouds) pages show which large sites are ready.

## Questions

### What is ML-KEM?

ML-KEM is the Module-Lattice-Based Key-Encapsulation Mechanism. NIST published it as FIPS 203 on 13 August 2024\. Two parties use it to agree on a shared secret key, and the attacks that we know on quantum computers do not break it.

### Is ML-KEM the same as Kyber?

ML-KEM comes from CRYSTALS-Kyber, the algorithm that NIST selected in its competition. FIPS 203 made small changes to it, so ML-KEM and the draft Kyber do not interoperate. Browsers moved from the Kyber draft group to ML-KEM in 2024.

### Which ML-KEM parameter set should I use?

Use ML-KEM-768 for TLS. It is in X25519MLKEM768, the hybrid group that current browsers send, and the IANA registry marks only that group as recommended. ML-KEM-1024 gives a higher security category for systems that require it.

### Does ML-KEM replace X25519?

Not on the web today. TLS uses ML-KEM in a hybrid with X25519, so the connection stays secure as long as one of the two holds. A pure ML-KEM group exists, but browsers do not send it by default.

### Is ML-KEM slow?

No. ML-KEM operations are fast. The cost is size: an X25519MLKEM768 key share from the client is 1,216 bytes, against 32 bytes for X25519 alone. The larger hello can expose servers and middleboxes that mishandle a ClientHello in more than one packet.

## Sources

1. [FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard (ML-KEM)](https://csrc.nist.gov/pubs/fips/203/final) · NIST, 13 August 2024
2. [RFC 10024: Hybrid key agreement for TLS 1.3](https://www.rfc-editor.org/rfc/rfc10024.html) · IETF
3. [TLS Supported Groups registry](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml) · IANA
4. [A new path for Kyber on the web](https://security.googleblog.com/2024/09/a-new-path-for-kyber-on-web.html) · Google Security blog, September 2024
5. [Firefox 132.0 release notes](https://www.firefox.com/en-US/firefox/132.0/releasenotes/) · Mozilla, 29 October 2024
6. [Prepare your network or server for quantum-secure encryption in TLS](https://support.apple.com/en-gb/122756) · Apple
7. [Go 1.24 release notes](https://go.dev/doc/go1.24) · The Go project, February 2025
8. [OpenSSL 3.5 release notes](https://openssl-library.org/news/openssl-3.5-notes/) · OpenSSL, 8 April 2025
9. [Post-quantum cryptography](https://developers.cloudflare.com/ssl/post-quantum-cryptography/) · Cloudflare SSL/TLS documentation
10. [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) · NIST, 11 March 2025

## Read next

* [What is post-quantum cryptography?](https://arewepostquantum.com/what-is-post-quantum-cryptography): What a quantum computer breaks, harvest now, decrypt later, the deadlines, and what to change first.
* [X25519MLKEM768 hybrid key exchange](https://arewepostquantum.com/x25519mlkem768): The hybrid group that browsers send, how the two secrets combine, and how to turn it on.
* [Harvest now, decrypt later explained](https://arewepostquantum.com/harvest-now-decrypt-later): Why traffic that someone records today is at risk, which data matters, and what stops the attack.
* [NIST post-quantum standards](https://arewepostquantum.com/nist-pqc-standards): The NIST post-quantum algorithms, what each one is for, and the transition dates.
* [Post-quantum TLS by sector](https://arewepostquantum.com/sites): which banks, AI companies, clouds and governments are ready.
* [Monthly report](https://arewepostquantum.com/report): adoption across the listed sites this month.

Source: https://arewepostquantum.com/ml-kem
