X25519MLKEM768

On this page 7

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.

  1. The client generates an ML-KEM-768 encapsulation key and an ephemeral X25519 public key, then sends them concatenated.
  2. 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.
  3. The server returns the ML-KEM ciphertext followed by its X25519 public key.
  4. Both sides form a 64-byte combined secret: the ML-KEM secret first, then the X25519 secret.
  5. 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.

ElementML-KEM-768 partX25519 partTotal
Client key share1,184 bytes32 bytes1,216 bytes
Server key share1,088 bytes32 bytes1,120 bytes
Shared secret32 bytes32 bytes64 bytes
Key share sizes in X25519MLKEM768

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.

OptionClassical attackerQuantum attackerMain risk
X25519 onlySecureBroken by ShorRecorded traffic decrypted later
ML-KEM-768 onlySecure if lattices holdSecure if lattices holdUndiscovered flaw in a young scheme
X25519MLKEM768SecureSecure if lattices holdLarger handshake messages
Security of key exchange options

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.

IdentifierComponentsCode pointTypical use
X25519MLKEM768X25519 and ML-KEM-7680x11ECWeb browsers and CDNs
SecP256r1MLKEM768P-256 and ML-KEM-7680x11EBFIPS-oriented deployments
SecP384r1MLKEM1024P-384 and ML-KEM-10240x11EDHigh-assurance government systems
X25519Kyber768Draft00X25519 and draft Kyber0x6399Obsolete experimental group
Hybrid and post-quantum key exchange identifiers

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.

SituationRecommended actionReason
Public website behind a modern CDNKeep the default hybrid enabledClients already negotiate it
Self-managed web serverUpgrade the TLS library and list the group firstProtects long-lived confidential data
Internal service meshEnable on both sides after testingBoth endpoints are under one owner
Legacy middlebox in the pathTest large ClientHello handlingOld devices may drop split messages
Deployment decisions for X25519MLKEM768

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.