← Back to section · Post-Quantum Cryptography
Hybrid Key Exchange: Why TLS First Binds ML-KEM and X25519 Together
Almost every deployed post-quantum key exchange is a hybrid: classical ECDH and ML-KEM run in parallel and their secrets are concatenated into the key schedule. What insurance does that buy, and what does it cost?
Defining hybrid: if one lock is not enough, fit two
A hybrid key exchange runs two independent key-establishment algorithms inside a single handshake — one classical (such as elliptic-curve Diffie–Hellman over X25519) and one post-quantum (such as ML-KEM-768) — then concatenates the two resulting shared secrets, in an agreed order, into the protocol’s key derivation function. In TLS 1.3, for example, the client offers both an X25519 public key (32 bytes) and an ML-KEM encapsulation key (1184 bytes) in the key_share of its ClientHello; the server encapsulates against the ML-KEM key and completes ECDH in parallel, returning the ciphertext together with its own X25519 public key; each side then computes both secrets, concatenates them, and feeds the result into TLS’s HKDF key schedule. The IETF has defined named groups for such combinations, of which X25519MLKEM768 (group ID 0x11EC) is the most widely deployed, alongside SecP256r1MLKEM768 and SecP384r1MLKEM1024 for other compliance ecosystems.
The security argument is plain: as long as one of the concatenated inputs is unknown to the attacker, a hash-based key derivation makes the output session keys unpredictable to them. In other words, a hybrid’s security is the union, not the intersection, of the two algorithms — which is the entire reason it is worth deploying.
What it actually defends against: two opposite worries
Hybrid mode answers two anxieties that point in opposite directions.
The first is the well-known quantum threat and “harvest now, decrypt later”: an attacker records encrypted traffic today and, once a mature quantum computer exists, uses Shor’s algorithm to recover the ECDH secrets and decrypt retroactively. A purely classical handshake has no defence against this; mixing in ML-KEM closes the road.
The second is easily overlooked: lattice cryptography is still young. ML-KEM’s security rests on Module-LWE, a problem studied intensively for far less time than the three decades behind discrete logarithms; the history of such competitions includes algorithms broken by classical attacks on the eve of standardisation (SIKE being the famous case). Should a major classical advance against lattice problems appear, the X25519 half of a hybrid is still standing, and connections are not left exposed overnight. The two worries contradict each other — one fears the classical algorithm dying, the other fears the new one dying — and hybrid mode’s answer is to trust neither on its own. That is why NIST, the IETF and the major browser vendors all converged on hybrids for the early migration: it is not a transitional stopgap but a rational hedge under uncertainty.
The engineering cost: where the extra 1.2 KB lands
Hybrid is not free, and the bill is mostly about size. ML-KEM-768’s public key and ciphertext of about 1.1 KB each make the ClientHello noticeably larger: it may cross the boundary of a single TCP segment or UDP datagram, triggering fragmentation and retransmission; for protocols with amplification limits (QUIC, for instance, caps a server at sending roughly three times the bytes received before the client address is validated), a large handshake eats into the budget; and a minority of legacy middleboxes have a compatibility record with oversized ClientHello messages. On top of that, the server performs one extra encapsulation per connection — ML-KEM itself is fast (tens of microseconds), but it still belongs in the capacity model of handshake-heavy services.
On negotiation and downgrade: TLS 1.3’s machinery natively supports hybrid and classical groups side by side. If the server does not support the hybrid group, the connection falls back to a classical group; the signature over the handshake transcript covers the negotiation, so an attacker cannot silently “strip” a hybrid connection down to purely classical — provided the client’s policy permits fallback at all. Deployments that require post-quantum strength must refuse purely classical groups at the policy layer rather than expecting the protocol to do it automatically.
Why the combiner uses “concatenate, then derive”
There is a seemingly arbitrary choice inside the hybrid construction: why are the two secrets concatenated rather than XORed or one of them hashed? The theoretical work on this question (the KEM-combiner literature) concludes that concatenation into a sufficiently strong key derivation function is the most robust combiner — provided the KDF itself resists attack and at least one of the two secrets stays confidential, the output is secure — whereas XOR demands equal-length secrets and stronger independence assumptions, and counterexamples exist where its security proof fails. TLS follows this: the 32-byte X25519 secret and the 32-byte ML-KEM secret are concatenated in the order fixed by the named-group specification (the order of the post-quantum and classical components is pinned down by the group definition) into 64 bytes that feed the key schedule directly. Fixing the order is not pedantry: if the two sides concatenate in different orders, they derive different session keys and the handshake ends in decryption failure — and the hybrid interop incidents that have actually happened in testing trace mostly to exactly this class of “each side right, the combination wrong” detail. The lesson for protocol designers is that a hybrid is not finished once both algorithms “are run”: the combiner itself is a cryptographic component that needs an explicit specification and proof coverage.
When can the classical half be dropped?
A pure ML-KEM handshake is perfectly feasible at the protocol level, and some controlled environments (internal service meshes, point-to-point links) have begun using it directly. For the open Internet, mainstream judgement remains conservative: let lattice cryptography weather a few more years of public analysis, let the FIPS 203 ecosystem and compliance frameworks fully settle, and only then discuss removing the classical component. Hybrid mode has no clear “expiry date”; it is more like an insurance policy with a continuing premium (bandwidth) and continuing cover — when to stop paying is a judgement about the relative weight of the two risks, not a notice from a standards body.
Summary
Hybrid key exchange trades about 1.2 KB of handshake expansion for a two-way hedge against both quantum attacks and a lattice-cryptography failure. Understanding its concatenation construction and security intuition explains why nearly every real-world ML-KEM deployment today — browsers, CDNs, large cloud services — appears in combinations such as X25519MLKEM768 rather than in pure post-quantum form.
References
- IETF, ML-KEM Post-Quantum Key Agreement for TLS 1.3, draft-ietf-tls-ecdhe-mlkem. https://datatracker.ietf.org/doc/draft-ietf-tls-ecdhe-mlkem/
- NIST, FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard, 2024. https://doi.org/10.6028/NIST.FIPS.203
- RFC 8446, The Transport Layer Security (TLS) Protocol Version 1.3, 2018.
Tags: ML-KEMHybrid Key ExchangeTLS 1.3X25519