X25519MLKEM768, explained
· 5 min read
The hybrid post-quantum key exchange that browsers use today: how it works, how it's negotiated, what it costs and who supports it.
X25519MLKEM768 is the post-quantum key exchange that browsers use today. If a qsafe.sh scan says your site negotiated it, connections to your site are protected against harvest now, decrypt later.
Two key exchanges in one
It's a hybrid: one TLS 1.3 key exchange that runs two algorithms side by side.
- X25519, the elliptic-curve key exchange most HTTPS connections already use. It's well understood, but a quantum computer can break it.
- ML-KEM-768, the lattice-based post-quantum algorithm standardised by NIST in FIPS 203.
Both produce a shared secret, and TLS combines them into the session key. An attacker has to break both, so the connection is at least as strong as X25519 today and stays safe if quantum computers break X25519 later. If ML-KEM ever turned out to have a flaw, X25519 still protects you. That's why hybrids are the default rather than ML-KEM alone.
How it's negotiated
- The browser offers it. In the TLS 1.3 ClientHello, the browser sends a key share for
X25519MLKEM768(group code0x11EC) and usually a classical X25519 share as well. - The server picks one. A server that supports the hybrid answers with its own share and the connection is post-quantum. An older server ignores it and picks X25519, and the connection still works, classically.
- Retry if needed. If the server prefers the hybrid but the browser didn't send that share, the server can ask for it with a HelloRetryRequest, which costs one extra round trip.
So turning it on is safe for old clients: anything that doesn't know the hybrid just keeps using classical key exchange.
What it costs
The computation is fast, often faster than the X25519 half. The cost is size. An ML-KEM-768 public key is 1,184 bytes and its ciphertext is 1,088 bytes, so each handshake carries roughly 2 KB more. That can push the ClientHello past one network packet, which broke a few old middleboxes when browsers first rolled it out. Those have largely been fixed.
Who supports it
| Software | Default since |
|---|---|
| Chrome and Edge | 131 |
| Firefox | 132 (desktop) |
| Safari (iOS, iPadOS, macOS) | 26 |
| OpenSSL | 3.5 |
Go crypto/tls | 1.24 |
| Node.js | 22.20 and 24.5 (bundled OpenSSL 3.5) |
| rustls | 0.23.27 |
The IETF standardised the hybrid groups for TLS 1.3 in RFC 10024 (2026). An earlier draft version, X25519Kyber768Draft00, used a different code point and is obsolete.
How qsafe.sh checks it
We connect the way a current browser does and record which group the server picks. Then we offer the post-quantum groups on their own, to see what the server supports even when it doesn't prefer them, and whether it triggers a HelloRetryRequest. How the score works has the details.