Quantum threat to encryption: what breaks and what holds
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.
Chapter 2Published 5 min readBy Imad Ez
On this page
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 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.
Broken by Shor's algorithm
Replace
- RSAencryption, signatures
- Diffie-Hellman (DH)key exchange
- ECDH, X25519key exchange
- ECDSAsignatures
- EdDSA (Ed25519)signatures
- secp256k1the curve behind Bitcoin and Ethereum signatures
Weakened modestly by Grover's algorithm
Keep, with larger keys
- AES-128prefer AES-256
- AES-256adequate
- SHA-256adequate
Post-quantum
Adopt
- ML-KEM (FIPS 203)key establishment
- ML-DSA (FIPS 204)signatures
- SLH-DSA (FIPS 205)hash-based signatures
| 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. 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.
- 1. TodayRecord
An adversary copies encrypted traffic as it crosses the network.
- 2. TodayStore
The ciphertext is kept. Storage is cheap; nothing needs to be read yet.
- 3. Years laterA quantum computer exists
A cryptographically relevant quantum computer becomes available. Its date is unknown.
- 4. ThenDecrypt
The key exchange is broken after the fact and the stored traffic becomes readable.
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 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 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 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.
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.
x + y > z
- x
- How long the data must stay secret
- y
- How long migration takes
- z
- Time until a cryptographically relevant quantum computer exists
If x + y is greater than z, the data is at risk.
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.
What to take from this
- Public-key key exchange is the urgent piece, because recorded traffic can be attacked later.
- Signatures matter most where trust is long-lived and hard to replace.
- Symmetric cryptography and hashes are fine at AES-256 and SHA-384 or better.
- The replacements exist and are standardized. The next chapters cover them and how to move.
Next steps
See the difference in sizes and behaviour yourself in the key exchange playground, then read harvest now, decrypt later. To discuss how this applies to your systems, contact a specialist via /en/contact.