---
title: "Post-quantum replacement for ECDH"
description: "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."
url: "https://quantum.zksecurity.xyz/replacements/ecdh/"
site: "PQ Tracker, maintained by zkSecurity"
reviewed: "2026-11-25"
license: "https://creativecommons.org/licenses/by/4.0/"
---

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

Classical algorithm · Key agreement

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.

**zkSecurity** · Reviewed 2026-11-25

## 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](https://quantum.zksecurity.xyz/algorithms/)

| Algorithm | Standard and status | Public key | Ciphertext or share |
| --- | --- | --- | --- |
| X25519 (In use today) | Broken | 32 | 32 |
| P-256, uncompressed point (In use today) | Broken | 65 | 65 |
| [ML-KEM](https://quantum.zksecurity.xyz/algorithms/ml-kem/) (The general-purpose replacement. NIST recommends ML-KEM-768 as the default; CNSA 2.0 requires ML-KEM-1024.) | [FIPS 203](https://csrc.nist.gov/pubs/fips/203/final) (Final) | 800 to 1,568 | 768 to 1,568 |
| [X25519MLKEM768](https://quantum.zksecurity.xyz/algorithms/hybrid-tls-x25519mlkem768/) (X25519 and ML-KEM-768 combined, for TLS 1.3. The form in which most deployments have replaced ECDH so far.) | [RFC 10024](https://datatracker.ietf.org/doc/rfc10024/) (Proposed Standard) | 1,216 to 1,665 | 1,120 to 1,665 |
| [HQC](https://quantum.zksecurity.xyz/algorithms/hqc/) (Selected by NIST as the second KEM, on a code-based assumption. No standard or draft yet.) | [FIPS (no number yet)](https://csrc.nist.gov/pubs/ir/8545/final) (Selected, in development) | 2,249 to 7,245 | 4,433 to 14,421 |
| [FrodoKEM](https://quantum.zksecurity.xyz/algorithms/frodokem/) (Unstructured lattices, at the cost of keys and ciphertexts of 10 to 20 KB. Recommended by BSI and ANSSI.) | [ISO/IEC (in progress)](https://frodokem.org/) (Recommended by BSI and ANSSI; not selected by NIST) | 9,616 to 21,520 | 9,720 to 21,632 |
| [Classic McEliece](https://quantum.zksecurity.xyz/algorithms/classic-mceliece/) (Standardized by ISO/IEC in 2026 and under active cryptanalysis since. Not advised for new deployments.) | [ISO/IEC 18033-2 Amd 2](https://classic.mceliece.org/) (New attacks in 2026) | 261,120 to 1,044,992 | 96 to 208 |

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

## Proposed, not standardized

- [X-Wing](https://datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem/): X25519 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 HPKE](https://datatracker.ietf.org/doc/draft-ietf-hpke-pq/): ML-KEM and hybrid KEM identifiers for HPKE and the protocols built on it. An IETF working group draft.
- [CSIDH, CTIDH](https://eprint.iacr.org/2018/383): Isogeny-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.
- [Swoosh](https://eprint.iacr.org/2023/271): Lattice-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 replacement · [All protocols](https://quantum.zksecurity.xyz/algorithms/#protocols)

| Protocol | Mechanism | Document | Date | Status |
| --- | --- | --- | --- | --- |
| TLS 1.3 | [Hybrid key agreement: X25519MLKEM768, SecP256r1MLKEM768, SecP384r1MLKEM1024](https://quantum.zksecurity.xyz/algorithms/hybrid-tls-x25519mlkem768/) | [RFC 10024](https://www.rfc-editor.org/info/rfc10024) | 2026-08 | Proposed Standard |
|  | ML-KEM key agreement, non-hybrid | [draft-ietf-tls-mlkem](https://datatracker.ietf.org/doc/draft-ietf-tls-mlkem/) | 2026-09-03 | Approved, RFC pending |
| SSH | Hybrid ML-KEM key exchange, including mlkem768x25519 | [RFC 10042](https://www.rfc-editor.org/info/rfc10042) | 2026-08 | Informational |
| IKEv2 / IPsec | ML-KEM key exchange | [draft-ietf-ipsecme-ikev2-mlkem](https://datatracker.ietf.org/doc/draft-ietf-ipsecme-ikev2-mlkem/) | 2026-07-07 | Approved, RFC pending |
| X.509 | Composite ML-KEM with a traditional KEM | [draft-ietf-lamps-pq-composite-kem](https://datatracker.ietf.org/doc/draft-ietf-lamps-pq-composite-kem/) | 2026-10-12 | Approved, RFC pending |
| OpenPGP | Post-quantum key and signature formats | [RFC 9980](https://www.rfc-editor.org/info/rfc9980) | 2026-06 | Proposed Standard |

## Deadlines

[All jurisdictions](https://quantum.zksecurity.xyz/timelines/)

- [NIST IR 8547 (U.S. federal)](https://quantum.zksecurity.xyz/timelines/nist-ir-8547/): **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)](https://quantum.zksecurity.xyz/timelines/cnsa-2-0/): **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)](https://quantum.zksecurity.xyz/timelines/australia-asd-ism/): **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 entries · [Feed](https://quantum.zksecurity.xyz/feed/)

- 2026-10-28 · Quantum computing · [Alice & Bob estimate RSA-2048 in 3.14 days with about 23,000 cat qubits](https://quantum.zksecurity.xyz/feed/2026-10-28-alice-bob-estimate-rsa-2048-in-3-14-days-with-ab/)
- 2026-03-30 · Quantum computing · [Oratomic preprint: Shor's algorithm with as few as 10,000 neutral-atom qubits](https://quantum.zksecurity.xyz/feed/2026-03-30-oratomic-preprint-shor-s-algorithm-with-as-few-a/)
- 2026-03-30 · Quantum computing · [Google: 256-bit elliptic curves breakable with under 500,000 physical qubits](https://quantum.zksecurity.xyz/feed/2026-03-30-google-256-bit-elliptic-curves-breakable-with-un/)
- 2026-03-07 · Claim refuted · No action required · ['JVG algorithm' claim of RSA-2048 with 5,000 qubits dismissed](https://quantum.zksecurity.xyz/feed/2026-03-07-jvg-algorithm-claim-of-rsa-2048-with-5-000-qubit/)
- 2026-02-12 · Quantum computing · [Pinnacle architecture preprint: RSA-2048 with under 100,000 physical qubits](https://quantum.zksecurity.xyz/feed/2026-02-12-pinnacle-architecture-preprint-rsa-2048-with-und/)
- 2025-05-21 · Quantum computing · [Gidney: RSA-2048 factorable in under a week with under a million noisy qubits](https://quantum.zksecurity.xyz/feed/2025-05-21-gidney-rsa-2048-factorable-in-under-a-week-with/)
- 2024-12-09 · Quantum computing · [Google Willow demonstrates below-threshold surface-code error correction](https://quantum.zksecurity.xyz/feed/2024-12-09-google-willow-demonstrates-below-threshold-surfa/)
- 2024-10 · Claim refuted · No action required · ['D-Wave breaks RSA' coverage traced to factoring of a 22-bit integer](https://quantum.zksecurity.xyz/feed/2024-10-d-wave-breaks-rsa-coverage-traced-to-factoring-o/)
- 2023-08-12 · Quantum computing · [Regev publishes a new quantum factoring algorithm with smaller circuits](https://quantum.zksecurity.xyz/feed/2023-08-12-regev-publishes-a-new-quantum-factoring-algorith/)
- 2022-12-23 · Claim refuted · No action required · [Claim that 372 qubits could threaten RSA-2048 does not survive scrutiny](https://quantum.zksecurity.xyz/feed/2022-12-23-claim-that-372-qubits-could-threaten-rsa-2048-do/)

- **Type**: Key agreement
- **Hard problem**: [Elliptic-curve discrete logarithm](https://quantum.zksecurity.xyz/assumptions/ecdlp/)
- **Against a quantum computer**: Broken (Shor's algorithm)
- **Recorded data**: Exposed. Recorded handshakes yield the session keys.
- **Replacement**: [ML-KEM](https://quantum.zksecurity.xyz/algorithms/ml-kem/), [X25519MLKEM768](https://quantum.zksecurity.xyz/algorithms/hybrid-tls-x25519mlkem768/)
- **Used in**: TLS 1.3, SSH, IKEv2, WireGuard and other Noise protocols, Signal, HPKE and ECIES.

### Specified in

- [RFC 7748, Elliptic Curves for Security (X25519, X448)](https://www.rfc-editor.org/info/rfc7748)
- [NIST SP 800-56A Rev. 3](https://csrc.nist.gov/pubs/sp/800/56/a/r3/final)

**Sources (6)**

- [Signal: the PQXDH key agreement protocol](https://signal.org/blog/pqxdh/)
- [Castryck, Lange, Martindale, Panny, Renes: CSIDH, an efficient post-quantum commutative group action (ePrint 2018/383)](https://eprint.iacr.org/2018/383)
- [Peikert: He Gives C-Sieves on the CSIDH (ePrint 2019/725)](https://eprint.iacr.org/2019/725)
- [Bonnetain, Schrottenloher: Quantum Security Analysis of CSIDH (ePrint 2018/537)](https://eprint.iacr.org/2018/537)
- [Gajland, de Kock, Quaresma, Malavolta, Schwabe: Swoosh, efficient lattice-based non-interactive key exchange (ePrint 2023/271)](https://eprint.iacr.org/2023/271)
- [draft-irtf-cfrg-concrete-hybrid-kems (MLKEM768-X25519)](https://datatracker.ietf.org/doc/draft-irtf-cfrg-concrete-hybrid-kems/)

### Audit

zkSecurity audits post-quantum implementations and migrations. [Request an audit](https://www.zksecurity.xyz/contact.html).

### Data

[data.json](https://quantum.zksecurity.xyz/replacements/ecdh/data.json)
