Classical algorithm · Key agreement

ECDH X25519, X448, P-256, P-384; the basis of ECIES and HPKE

Elliptic-curve Diffie-Hellman is broken by Shor's algorithm. Its replacement is ML-KEM, deployed in hybrid with X25519 as X25519MLKEM768 in TLS 1.3 and as mlkem768x25519 in SSH. Non-interactive key exchange has no standardized replacement.

Against a quantum computer

Shor's algorithm computes elliptic-curve discrete logarithms in polynomial time, and published resource estimates are lower for 256-bit curves than for RSA-2048. Recorded handshakes can be decrypted later. This is the exposure that hybrid key exchange in TLS and SSH already closes.

Replacements

All algorithms →
AlgorithmStandard and statusPublic keyCiphertext or share
X25519In use todayBroken3232
P-256, uncompressed pointIn use todayBroken6565
ML-KEMThe general-purpose replacement. NIST recommends ML-KEM-768 as the default; CNSA 2.0 requires ML-KEM-1024.FIPS 203Final800 to 1,568768 to 1,568
X25519MLKEM768X25519 and ML-KEM-768 combined, for TLS 1.3. The form in which most deployments have replaced ECDH so far.RFC 10024Proposed Standard1,216 to 1,6651,120 to 1,665
HQCSelected by NIST as the second KEM, on a code-based assumption. No standard or draft yet.FIPS (no number yet)Selected, in development2,249 to 7,2454,433 to 14,421
FrodoKEMUnstructured lattices, at the cost of keys and ciphertexts of 10 to 20 KB. Recommended by BSI and ANSSI.ISO/IEC (in progress)Recommended by BSI and ANSSI; not selected by NIST9,616 to 21,5209,720 to 21,632
Classic McElieceStandardized by ISO/IEC in 2026 and under active cryptanalysis since. Not advised for new deployments.ISO/IEC 18033-2 Amd 2New attacks in 2026261,120 to 1,044,99296 to 208

Sizes in bytes, from the smallest to the largest parameter set, without encoding.

Proposed, not standardized

  • X-WingX25519 and ML-KEM-768 combined into one KEM, for use outside TLS. An individual Internet-Draft; the same construction is in a CFRG draft as MLKEM768-X25519.
  • Post-quantum and hybrid KEMs for HPKEML-KEM and hybrid KEM identifiers for HPKE and the protocols built on it. An IETF working group draft.
  • CSIDH, CTIDHIsogeny-based non-interactive key exchange, with 64-byte public keys at the original parameters. Quantum attacks put those parameters below their claimed level; later proposals use primes of 2,000 to 9,000 bits.
  • SwooshLattice-based non-interactive key exchange. Public keys of about 220 KB in the passively secure version.

What changes

  • No non-interactive key exchange. Two parties can no longer derive a shared key from each other's static public keys alone. Protocols built on that (X3DH, Noise patterns with static keys, WireGuard) are redesigned around KEMs, as Signal did with PQXDH.
  • Hybrid first. Deployed replacements combine ML-KEM with X25519 or a NIST curve, so that the exchange is no weaker than ECDH if ML-KEM or its implementation fails.
  • The X25519MLKEM768 key share is 1,216 bytes against 32, so a TLS ClientHello no longer fits in one packet.
  • ML-KEM encapsulation keys must be checked on receipt (FIPS 203, section 7.2), where X25519 accepts any 32 bytes.

Protocol support

Standards that carry the replacementAll protocols →
ProtocolMechanismDocumentDateStatus
TLS 1.3Hybrid key agreement: X25519MLKEM768, SecP256r1MLKEM768, SecP384r1MLKEM1024RFC 100242026-08Proposed Standard
ML-KEM key agreement, non-hybriddraft-ietf-tls-mlkem2026-09-03Approved, RFC pending
SSHHybrid ML-KEM key exchange, including mlkem768x25519RFC 100422026-08Informational
IKEv2 / IPsecML-KEM key exchangedraft-ietf-ipsecme-ikev2-mlkem2026-07-07Approved, RFC pending
X.509Composite ML-KEM with a traditional KEMdraft-ietf-lamps-pq-composite-kem2026-10-12Approved, RFC pending
OpenPGPPost-quantum key and signature formatsRFC 99802026-06Proposed Standard
  • NIST IR 8547 (U.S. federal)2030 All quantum-vulnerable public-key algorithms deprecated (RSA, ECDSA, EdDSA, DH, ECDH, MQV at every strength).
    2035 All quantum-vulnerable public-key algorithms disallowed under NIST standards.
  • CNSA 2.0 (U.S. national security)2027-01-01 CNSA 2.0 algorithms required in all new National Security System acquisitions.
    2030-12-31 Equipment and services that cannot support CNSA 2.0 phased out.
    2031-12-31 CNSA 2.0 algorithms mandated for use.
  • Australia (ASD)2026-12-31 Refined post-quantum transition plan in place.
    2028-12-31 Transition of critical systems under way.
    2030-12-31 Transition complete; DH, ECDH and ECDSA no longer approved.

Record

10 entriesFeed →
Show all 10 entries