# Quantum threat to encryption: what breaks and what holds

URL: https://postquantumplan.com/en/learn/quantum-threat
Published: 2026-12-03

> Which cryptography a quantum computer breaks (RSA, ECDH, ECDSA), which it only weakens (AES, SHA-2), and why key exchange and signatures carry different risks.

A large, fault-tolerant quantum computer would break the public-key cryptography that almost every secure connection relies on today: RSA, Diffie-Hellman, elliptic-curve key exchange (ECDH, X25519) and elliptic-curve signatures (ECDSA, Ed25519). It would only weaken symmetric ciphers and hash functions, which stay safe at sensible sizes. No such computer exists yet, and nobody outside the labs building them can give you a reliable date. The case for migrating does not depend on the date, as the next chapter shows.

![Two engineers in face masks and blue gloves fitting the black outer shell around the gold-coloured cryostat of an IBM Quantum System One, inside a glass-walled room.](https://postquantumplan.com/images/quantum/ibm-quantum-system-one-install.webp)

*Engineers installing an IBM Quantum System One in Ehningen, Germany. The processor sits at the bottom of the gold-coloured cryostat and is cooled to near absolute zero. Machines of this kind exist today; none is close to breaking RSA. (IBM Research, CC BY 2.0)*

## Two algorithms, two very different effects

Two quantum algorithms matter for cryptography.

**Shor's algorithm** solves integer factoring and discrete logarithms in polynomial time. Those two problems are the security basis of RSA, finite-field Diffie-Hellman, and elliptic-curve cryptography. Larger keys do not rescue them in any practical way, because Shor's running time grows only polynomially with key size.

**Grover's algorithm** speeds up brute-force search by a square root. It halves the effective bit-strength of a symmetric key: AES-128 drops to roughly 64 bits of quantum work, AES-256 to roughly 128. AES-256 therefore remains strong. AES-128 has a thinner margin, so prefer AES-256 where you have the choice.

> [Diagram: Which cryptography quantum computers affect]

| Primitive | Quantum attack | Outcome |
|---|---|---|
| RSA (any size), DH/DHE, ECDH/ECDHE (P-256, X25519), ECDSA, EdDSA/Ed25519, DSA, secp256k1 | Shor | Broken by a large fault-tolerant quantum computer |
| AES-128, AES-192, AES-256, ChaCha20 | Grover | AES-256 stays strong; AES-128 has less margin |
| SHA-2, SHA-3 | Grover (preimages), BHT (collisions) | Fine at SHA-256 and above; CNSA 2.0 asks for SHA-384 or SHA-512 |
| HMAC, HKDF, KMAC | Grover | Fine with 256-bit keys |
| ML-KEM (FIPS 203), ML-DSA (FIPS 204), SLH-DSA (FIPS 205) | No practical quantum attack known | The NIST post-quantum replacements |

This table reflects standard, long-established cryptography. It is the reason a common misconception is worth stating directly: doubling your AES key size does nothing for RSA, and a longer RSA key buys almost nothing against Shor.

## Why the date does not change the priority

Two different risks hide under the phrase "quantum threat". They have different clocks.

### Confidentiality: recorded today, readable later

Key establishment (RSA key transport, Diffie-Hellman, ECDH) is what a quantum computer attacks. The bulk cipher that follows, typically AES, is not. An adversary who records encrypted traffic or steals encrypted files today can wait for a quantum computer and then recover the session keys. This is [harvest now, decrypt later](https://postquantumplan.com/en/learn/harvest-now-decrypt-later). A switch made later cannot protect copies already taken, which is the argument the NSA makes in its statement as reported by [The Hacker News](https://thehackernews.com/2026/12/nsa-urges-immediate-post-quantum.html).

> [Diagram: Harvest now, decrypt later]

### Authenticity: forgery needs the computer first

Signatures cannot be harvested retroactively. To forge one, the attacker needs the quantum computer before the signature is trusted. So the urgent signature cases are those with long-lived trust: root certificate authorities, code and firmware signing keys, hardware roots of trust that cannot be updated in the field, long-term legal signatures. The NSA notes, per the same reporting, that firmware signatures and hardware roots of trust are hard to update once fielded. Short-lived TLS authentication certificates are a lower priority than key exchange.

## What the December 2026 lattice result changes

The new public result is a quantum algorithm for certain module-lattice problems, the mathematics under ML-KEM and ML-DSA. It is worth reading carefully, because it is easy to over- or under-state.

- [CIRG](https://cirg.org/statements/1/) says the attack needs large-scale quantum computation and, at the NIST parameters, resources it calls "galactic". The asymptotic gain applies as the ring degree grows, while ML-KEM and ML-DSA fix the ring degree at 256 and raise security by increasing the rank. The result therefore does not directly apply to them. CIRG expects the attack to be improved, and says it is not yet clear whether improvements would lower the cost of breaking the standards.
- [Cloudflare](https://blog.cloudflare.com/pq-is-still-safe/) estimates it would need at least billions of logical qubits, against current machines with thousands of qubits, and a cost of roughly 2^x with x above 1,000, against a 2^128 target for the smallest ML-DSA instance. It calls the work purely theoretical. It also notes that quantum computers are more likely to break elliptic curves and RSA than lattices.
- The [UK NCSC](https://www.ncsc.gov.uk/news/ncsc-statement-on-recent-post-quantum-cryptography-research) says there is no threat to the deployed lattice standards and its advice is unchanged.

Read together: this is not a reason to avoid ML-KEM or ML-DSA, because the alternative, RSA and elliptic curves, is strictly weaker against quantum attackers. CIRG makes the same point, saying that delaying the transition prolongs reliance on algorithms that need far fewer quantum resources to break. It is a reason to use hybrids, to pick high parameter sets where affordable, to be able to swap algorithms, and to keep a hash-based signature scheme (SLH-DSA, or LMS and XMSS for firmware) in the toolbox as a conservative non-lattice option.

> **Warning.** What the NSA's private disclosures concern is not public. Whether they involve lattices, classical algorithms such as RSA and elliptic curves, or something else, no source we have read says. Do not assume either way.

## A rule of thumb: Mosca's inequality

Michele Mosca's inequality gives a way to reason without knowing the date. If the time your data must stay secret (x) plus the time your migration will take (y) is longer than the time until a cryptographically relevant quantum computer exists (z), you are already late.

> [Diagram: Mosca's inequality]

Data that must stay secret for 15 years, in a migration that will take 5, is exposed if a capable machine could appear within 20 years. You do not need to believe it will. You need to decide whether you can accept the exposure. Try your own numbers in the [risk timeline](https://postquantumplan.com/en/lab/risk-timeline).

## What to take from this

1. Public-key key exchange is the urgent piece, because recorded traffic can be attacked later.
2. Signatures matter most where trust is long-lived and hard to replace.
3. Symmetric cryptography and hashes are fine at AES-256 and SHA-384 or better.
4. The replacements exist and are standardized. The [next chapters](https://postquantumplan.com/en/learn/nist-pqc-standards) cover them and how to move.

## Next steps

See the difference in sizes and behaviour yourself in the [key exchange playground](https://postquantumplan.com/en/lab/kem-playground), then read [harvest now, decrypt later](https://postquantumplan.com/en/learn/harvest-now-decrypt-later). To discuss how this applies to your systems, contact a specialist via [/en/contact](https://postquantumplan.com/en/contact).
