X25519MLKEM768 is a hybrid key exchange group for TLS 1.3 that combines the classical X25519 elliptic-curve Diffie-Hellman exchange with the post-quantum ML-KEM-768 key encapsulation mechanism, so that a session key stays secret as long as at least one of the two components remains unbroken. In quantum security, it is the most widely deployed practical answer to the harvest now, decrypt later threat against encrypted web traffic.
The group is specified in an IETF TLS working group draft and registered with the code point 0x11EC (4588). It replaced the earlier experimental X25519Kyber768Draft00 after NIST published FIPS 203 in August 2024, and it is now enabled by default in major browsers, content delivery networks and cryptographic libraries.
How X25519MLKEM768 builds a shared secret
X25519MLKEM768 runs two independent key agreements in one handshake and concatenates their outputs. The client places both public values in a single key_share extension of the ClientHello, and the server answers with both responses in its ServerHello, so the exchange still completes in one round trip.
- The client generates an ML-KEM-768 encapsulation key and an ephemeral X25519 public key, then sends them concatenated.
- The server encapsulates against the ML-KEM key, producing a ciphertext and a 32-byte secret, and computes the X25519 shared secret with its own ephemeral key.
- The server returns the ML-KEM ciphertext followed by its X25519 public key.
- Both sides form a 64-byte combined secret: the ML-KEM secret first, then the X25519 secret.
- The combined value enters the TLS 1.3 key schedule in place of the ordinary (EC)DHE input.
The ML-KEM component comes first in the concatenation even though X25519 comes first in the name. This order lets the construction fit FIPS-approved key derivation rules, which require the approved algorithm’s secret at the start of the input. Implementations that swap the order produce incompatible keys and fail the handshake.
The following table lists the wire sizes that the group adds to a TLS 1.3 handshake.
| Element | ML-KEM-768 part | X25519 part | Total |
|---|---|---|---|
| Client key share | 1,184 bytes | 32 bytes | 1,216 bytes |
| Server key share | 1,088 bytes | 32 bytes | 1,120 bytes |
| Shared secret | 32 bytes | 32 bytes | 64 bytes |
Why the hybrid design matters
The hybrid construction protects against two different failure modes. X25519 is mature and heavily analyzed but is broken by Shor’s algorithm on a cryptographically relevant quantum computer. ML-KEM resists known quantum attacks, yet its lattice assumptions and its implementations are far younger than elliptic-curve cryptography.
Because an attacker must break both components to recover the session key, the hybrid is never weaker than X25519 alone against classical adversaries and gains post-quantum protection from ML-KEM. The cost is extra bandwidth and a small amount of computation, which is why the industry treats hybrids as the default transition strategy before trust in pure post-quantum exchange matures.
The table compares the security properties of the main options.
| Option | Classical attacker | Quantum attacker | Main risk |
|---|---|---|---|
| X25519 only | Secure | Broken by Shor | Recorded traffic decrypted later |
| ML-KEM-768 only | Secure if lattices hold | Secure if lattices hold | Undiscovered flaw in a young scheme |
| X25519MLKEM768 | Secure | Secure if lattices hold | Larger handshake messages |
Related hybrid groups and protocols
X25519MLKEM768 belongs to a family of hybrid groups defined in the same IETF work. The other members swap the elliptic curve or raise the ML-KEM parameter set to meet regulatory or policy requirements, such as CNSA 2.0, which favors higher security categories.
| Identifier | Components | Code point | Typical use |
|---|---|---|---|
| X25519MLKEM768 | X25519 and ML-KEM-768 | 0x11EC | Web browsers and CDNs |
| SecP256r1MLKEM768 | P-256 and ML-KEM-768 | 0x11EB | FIPS-oriented deployments |
| SecP384r1MLKEM1024 | P-384 and ML-KEM-1024 | 0x11ED | High-assurance government systems |
| X25519Kyber768Draft00 | X25519 and draft Kyber | 0x6399 | Obsolete experimental group |
Outside TLS, OpenSSH offers a comparable hybrid named mlkem768x25519-sha256, and messaging protocols such as PQXDH apply the same hybrid principle to asynchronous key agreement. These designs share the logic but not the wire format, so the TLS group name does not transfer to them directly.
Deploying X25519MLKEM768 in practice
For most operators, enabling X25519MLKEM768 means updating the TLS library rather than writing new code. Recent releases of OpenSSL, BoringSSL, the Go standard library and other stacks support the group, and several offer it first by default. A server negotiates it only when both endpoints support it; otherwise the handshake falls back to classical groups.
The decision table below summarizes common deployment situations.
| Situation | Recommended action | Reason |
|---|---|---|
| Public website behind a modern CDN | Keep the default hybrid enabled | Clients already negotiate it |
| Self-managed web server | Upgrade the TLS library and list the group first | Protects long-lived confidential data |
| Internal service mesh | Enable on both sides after testing | Both endpoints are under one owner |
| Legacy middlebox in the path | Test large ClientHello handling | Old devices may drop split messages |
Operators should record negotiated groups in logs or metrics to confirm adoption. Since the protection targets future decryption of today’s traffic, data with a long confidentiality lifetime, such as health or financial records, deserves priority in the rollout.
Limitations and common mistakes
The most visible drawback is message size. A ClientHello carrying the 1,216-byte key share usually exceeds a single 1,500-byte packet, so it spans two TCP segments or QUIC packets. Some outdated firewalls and load balancers mishandle this, a problem known as protocol ossification.
- X25519MLKEM768 protects confidentiality only; certificates and signatures still need a separate move to schemes such as ML-DSA.
- Enabling the group does not protect traffic that was already recorded under classical key exchange.
- Sending key shares for several groups at once multiplies handshake size and should be avoided.
- Custom implementations must use a constant-time ML-KEM and the correct secret order to avoid leaks and interoperability failures.
Stripped to the essentials
When a browser connects to a secure website, both sides agree on a secret key. Today that step uses math that a future quantum computer could break. Someone could record the traffic now and read it years later.
X25519MLKEM768 uses two locks instead of one. One lock is the proven classic method. The other is a new lock designed to resist quantum computers. An attacker must open both locks to read the data. So the connection is at least as safe as before, and probably much safer in the future.
Where it is applied
A regional hospital network runs a patient portal that serves test results and medical histories. Its security team knows that health records must stay confidential for decades, so recorded traffic is an attractive target for harvest now, decrypt later collection.
The team upgrades the portal’s reverse proxy to a TLS library that supports X25519MLKEM768 and places the group first in the preference list. Before release, it tests the larger ClientHello through the hospital’s firewall and finds that one aging inspection appliance drops split handshakes, so it replaces the appliance’s firmware.
After rollout, the logs show that more than 90% of connections from current browsers negotiate the hybrid group, while older clients fall back to X25519 without errors. The added latency is under one millisecond per handshake, and the portal now protects new patient sessions against future quantum decryption.