Classical algorithm · Key agreement

Diffie-Hellman Finite-field DH and DHE; MODP and FFDHE groups

Finite-field Diffie-Hellman is broken by Shor's algorithm. Its replacement is ML-KEM run as an ephemeral key exchange, deployed so far in hybrid with a classical exchange.

Against a quantum computer

Shor's algorithm computes discrete logarithms in polynomial time. An attacker who recorded a handshake recovers the session keys from the two public values. Forward secrecy does not help: it protects against later theft of a long-term key, not against solving the exchange itself.

Replacements

All algorithms →
AlgorithmStandard and statusPublic keyCiphertext or share
2048-bit groupIn use todayBroken256256
3072-bit groupIn use todayBroken384384
ML-KEMRun as an ephemeral exchange: the initiator sends an encapsulation key and the responder returns a ciphertext.FIPS 203Final800 to 1,568768 to 1,568
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

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

What changes

  • A KEM is not symmetric between the parties. One side generates a key pair and the other encapsulates to it, so the order of messages is fixed where Diffie-Hellman allowed either.
  • IKEv2 adds ML-KEM as an additional key exchange next to the classical one (RFC 9370).
  • ML-KEM-768 sends 1,184 bytes one way and 1,088 the other, against 256 each way for a 2048-bit group.
  • Static Diffie-Hellman keys and non-interactive key agreement have no standardized replacement: see ECDH.

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
  • 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