Skip to content

Lesson 12 of 13 · 18m

Post-Quantum Key Exchange: Harvest-Now and ML-KEM

Shor vs. the public-key stack, the hybrid X25519MLKEM768 TLS already negotiating, and what engineers actually do about it.

Every X25519 handshake you ran today was recorded somewhere. Not necessarily by an attacker with a quantum computer — by anyone logging ciphertext, betting that in ten or twenty years a cryptographically-relevant quantum computer runs Shor's algorithm and turns yesterday's captured ECDH into yesterday's plaintext. That's "harvest now, decrypt later," and it's why post-quantum key exchange is shipping now, not when the machines exist.

What actually breaks, and what doesn't

Shor's algorithm kills the discrete-log and factoring families: RSA, DH, ECDH, ECDSA, Ed25519 — the entire public-key stack, once a large enough fault-tolerant machine exists. It does not meaningfully weaken symmetric crypto: Grover's algorithm only halves the security margin, so AES-256 keeps ~128 bits of effective resistance and SHA-256 stays fine for integrity. The vulnerable part of your stack is anything where a public key was the trust anchor or the key agreement — which is key exchange and signatures, not the AEAD underneath.

NIST finished the replacements in August 2024: ML-KEM (FIPS 203, from Kyber) for key encapsulation, and ML-DSA (FIPS 204, Dilithium) plus SLH-DSA (FIPS 205, SPHINCS+) for signatures. The lattice problems they're built on don't fall to Shor — nobody's shown a quantum shortcut for them at all.

What's already deployed

This is where the mental model "post-quantum is future work" dies:

  • Chrome has negotiated hybrid key exchange by default since 124 — but that build shipped the draft X25519Kyber768 codepoint. The finalized X25519MLKEM768 (X25519 + ML-KEM-768) arrived in Chrome 131 in November 2024, and is what Cloudflare's edge offers today.
  • Cloudflare has served hybrid key exchange on a real share of TLS since 2023, with telemetry showing what fraction of the public internet completed a PQ handshake.
  • Signal's PQXDH (2023) already runs ML-KEM through the initial key agreement for real messages.
  • OpenSSH supports a hybrid post-quantum KEX; the mlkem768x25519-sha256 name shows up in ssh -v output on current versions.

The design that shipped is deliberately hybrid: run classical X25519 and ML-KEM together, then HKDF the concatenation. If ML-KEM turns out weak, X25519 still holds; if a quantum machine arrives, ML-KEM holds. You never bet the handshake on one assumption.

# See what your own TLS termination actually negotiates:
openssl s_client -connect example.com:443 -groups X25519MLKEM768

What an engineer actually does about it

You are probably not implementing ML-KEM yourself — liboqs, boringssl, and the TLS libraries own that code. Your job is operational:

  1. Turn on modern TLS. If your stack negotiates 1.3 with hybrid groups, you get PQ protection for free when the peer supports it. This is the same ssl_protocols TLSv1.2 TLSv1.3 story — but now check openssl s_client for the negotiated group, not just the cipher.
  2. Watch your crypto agility. Can you swap key-exchange algorithms without rewriting call sites? The hybrid era assumes you can. Hardcoded algorithm names are the thing to hunt.
  3. Treat signatures separately. PQ signatures (ML-DSA) have bigger keys/sigs and land later; the harvest-now risk is overwhelmingly about key exchange — that's where the deployment pressure is.
  4. Don't panic-migrate stored data. Ciphertext at rest under AES-256 is fine — Grover only halves the margin. The captured handshakes are what rot.

Field notes

  • "Quantum-proof" marketing copy usually means "we added ML-KEM"; the proof is the negotiated group on the wire, not the datasheet. The name even carries the era: X25519Kyber768Draft00 was the pre-FIPS draft, X25519MLKEM768 is the finalized standard — a capture showing either is a PQ handshake.
  • ML-KEM-768 keys/ciphertexts are ~1–2 KB, not 32 bytes — anything that assumed key sizes fit a small field needs a schema check.
  • If a vendor claims a post-quantum feature that isn't hybrid, ask what happens when the new primitive falls — the answer should be "the classical half still protects you."
  • This is the one crypto domain where waiting is a real strategy: your TLS stack updates from upstream. The work is being on a version that supports the hybrid groups and letting the negotiation do the rest.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.