Most of the internet’s encryption rests on two kinds of public-key math: RSA and elliptic curve cryptography (ECC). They protect the key exchange that sets up a session, and the certificates that prove who you are talking to. Both rely on problems that a classical computer cannot solve in a practical time. A large, fault-tolerant quantum computer running Shor’s algorithm could solve them efficiently. No such computer exists today, but the risk shapes what we need to do now.
The problem: harvest now, decrypt later
Attackers do not need a quantum computer to steal encrypted traffic. They can record it today and store it until they have the capability to break it. This is harvest now, decrypt later (HNDL).
The risk depends on how long the data must stay confidential. Medical records, government files, trade secrets, and personal data may need protection for decades. If a session’s key exchange can be broken later, every recorded session becomes readable at that point.
Authentication has a different risk. A quantum computer that can break a certificate’s signature could forge certificates going forward. That is a problem for the future, not for recorded traffic, because a signature only proves identity at the moment it is checked. Even so, the migration takes years, so the work has to start now.
What a key exchange does
Two parties need a shared secret to encrypt their session, and they cannot send that secret across an open network. A key exchange solves this. Each side generates a temporary (ephemeral) key pair, sends its public half to the other, and combines its private half with the other’s public half. Both arrive at the same shared secret. An eavesdropper sees the public halves but cannot compute the secret without solving the underlying hard problem.
In TLS 1.3, this exchange happens in the first messages of the handshake. The key exchange is what protects the session’s traffic, so it is the part that HNDL targets.
Key exchange groups
A key exchange group is a named algorithm that the two sides agree to use. TLS identifies each group with a code point. The client lists the groups it supports and sends a key share for one or more of them. The server picks one, and the two sides complete the exchange with it.
Classical groups include:
- X25519: elliptic curve Diffie-Hellman on Curve25519. Fast and widely used. Broken by a sufficiently large quantum computer.
- secp256r1 (P-256): a NIST elliptic curve group. Also broken by a quantum computer.
- ffdhe2048 and similar finite-field groups: classical Diffie-Hellman, also broken by a quantum computer.
Post-quantum groups use a key encapsulation mechanism (KEM) instead. ML-KEM, standardised by NIST as FIPS 203, is the main example. It is designed to resist known quantum attacks. Pure ML-KEM groups exist, but most deployments use hybrid groups.
Hybrid: good, but not the end state
A hybrid group runs a classical exchange and a PQ exchange at the same time, then combines the two shared secrets into one key. Common examples are X25519MLKEM768 and SecP256r1MLKEM768. The session key stays secret as long as at least one of the two components holds. If ML-KEM turns out to have a flaw, the classical part still protects the session against today’s attacks. If a quantum computer arrives, the ML-KEM part still protects it.
That is why hybrid is the recommended first step. It protects against HNDL now, and it protects against a weakness in either algorithm, without betting everything on one new algorithm.
Hybrid is not the finish line, for three reasons:
- Certificates are still classical. Most certificates use RSA or ECDSA signatures. Hybrid protects the key exchange, not the identity check. Post-quantum signatures such as ML-DSA (FIPS 204) exist, but they are larger, and they require updates to certificate authorities, clients, and tooling.
- The protocol does not cover everything. TLS hybrid groups are standardised, but the exact code points and drafts still move. Some implementations offer hybrid groups only as preview or experimental features. Check what your stack actually ships.
- Negotiation is not guaranteed. An endpoint can offer a hybrid group and still negotiate a classical one, depending on the client. Offering a group is not the same as using it in every session.
SSH has a similar split. OpenSSH offers hybrid key exchange methods such as mlkem768x25519-sha256, but its host keys are still classical. Hybrid protects the session from HNDL. It does not protect the host identity from a future forgery.
What comes next
Before fixing anything, you need to know what your endpoints offer. Most certificate platforms only show the certificate and the TLS version. They do not show which key exchange groups an endpoint accepts. The next post covers how to find that out, and what the results mean.