In one sentence: X25519MLKEM768 is a single TLS 1.3 key-agreement "group" that runs elliptic-curve Diffie-Hellman (X25519) and a lattice-based KEM (ML-KEM-768) at the same time, concatenates both shared secrets, and feeds them into the key schedule. If either one is broken, the other still protects the confidentiality of the connection. This week, one of those two halves started to look shaky, and not the half people expected.

Why this, why now

So the conversation this week is no longer "should we adopt PQC?" It is "understand how the hybrid key exchange that is already widely deployed actually works, verify it is really active in your stack, and know where the gaps are."

The problem

Roughly speaking, cryptography plays two roles in TLS:

  1. Key agreement (confidentiality): the handshake produces a shared secret that encrypts all subsequent records. Today this is mostly ECDHE over X25519 or P-256.
  2. Authentication: certificates and signatures prove the peer is who it claims to be. Today this is mostly ECDSA P-256 or RSA.

If key agreement is broken in the future, traffic recorded today can be decrypted later (harvest now, decrypt later). If authentication is broken in the future, past conversations are not exposed (though impersonation becomes possible from that point on). That is why the industry went "key agreement to PQ first, authentication later." Cloudflare describes that ordering as deliberate.

But ML-KEM is new. It is standardized (FIPS 203), but its implementation history is far shorter than ECDH's. Switching to ML-KEM alone is scary. Staying on ECDH alone is risky against quantum computers (and, if this week's reading is right, possibly against classical attacks).

So: do both and mix the results. That is hybrid key exchange, and its concrete TLS 1.3 form is RFC 10024's X25519MLKEM768 / SecP256r1MLKEM768 / SecP384r1MLKEM1024.

How it works

1. Negotiated as one "group"

In TLS 1.3 the client lists the key-agreement methods it supports in the supported_groups extension and sends actual public values in the key_share extension. A hybrid is not registered as a new primitive; it is registered as a new group code point.

Group Code point Client share Server share Shared secret
X25519MLKEM768 0x11EC (4588) 1216 B = ML-KEM encapsulation key 1184 + X25519 32 1120 B = ML-KEM ciphertext 1088 + X25519 32 64 B = ML-KEM 32 ‖ X25519 32
SecP256r1MLKEM768 0x11EB (4587) 1249 B = P-256 65 + ML-KEM 1184 1153 B 64 B (ECDHE first)
SecP384r1MLKEM1024 0x11ED (4589) 1665 B = P-384 97 + ML-KEM 1568 1665 B 80 B (ECDHE first)

With X25519 alone the key share was 32 bytes. Now it is over 1 KB. That is the root of several pitfalls below.