← Back to section · Post-Quantum Cryptography

Why Quantum Computing Threatens RSA and Elliptic-Curve Cryptography

RSA's security comes from the hardness of factoring; ECC's from the hardness of discrete logarithms. This article explains the standing of these two problems, how Shor's algorithm breaks both at once, and which cryptographic components are not on the casualty list.

Published 22 November 2026 · 5 min read · PQ Frontier

Why Quantum Computing Threatens RSA and Elliptic-Curve Cryptography
AI-generated site artwork
Video explainer · Lattice cryptography basics

Behind almost every HTTPS connection, every digital certificate and every software-update signature today stands RSA or elliptic-curve cryptography (ECC). They have ruled public-key cryptography for nearly half a century, thanks to two mathematical problems that classical computers cannot crack. The quantum threat is so concrete precisely because a single algorithm can solve both of these problems at once — Shor’s algorithm. To understand the urgency of post-quantum migration, first understand the standing of these two problems, and why they fail together in front of a quantum computer.

Two problems: the two pillars of one lock

Integer factorization: multiplying two large primes is easy; splitting the product back into the two primes is extremely hard. An RSA-2048 modulus has 2048 bits, and factoring it with the best classical algorithm (the number field sieve) takes computation far beyond anything realistically feasible — security comes from exactly this “easy forward, hopeless backward” asymmetry.

The elliptic-curve discrete logarithm: given curve points P and Q = kP, finding k is hard. ECC reaches security comparable to RSA with much shorter keys (256-bit ECC is roughly equivalent to 3072-bit RSA), which made it the mainstream choice of the mobile era, present everywhere from TLS to instant messaging.

The two problems share something else: for decades, mathematicians found no classical method for either that is dramatically better than the “dumb” approaches. The entire public-key infrastructure — TLS, the certificate system, code signing, virtual private networks, secure shell — is built on trust in this hardness. Modern internet trust, one could say, stands on just these two load-bearing columns.

Where the classical safety margin comes from

The logic of classical defense is “open up a gap”: the attacker’s cost grows exponentially or sub-exponentially with key length, while the defender’s cost grows only polynomially. Factoring an RSA modulus with the number field sieve has sub-exponential complexity — slower than exponential, faster than polynomial — which means moving keys from 1024 to 2048 to 4096 bits raises the attack cost by orders of magnitude at each step, while users merely notice slightly slower handshakes. Public-key cryptography survived the last thirty years on exactly this “lengthen the key” arms race: the retirements of 512-bit and then 1024-bit RSA are footnotes on that curve.

On the elliptic-curve side, the best classical attacks (such as Pollard’s rho) cost exponentially in key length, so the same “longer means safer” logic applies. The whole system feels solid: as long as parameters keep up, the mathematics is on the defender’s side.

Shor’s algorithm: exponential problems become polynomial

In 1994, Peter Shor proved that both factoring and discrete logarithms can be reduced to a single structure — period finding — and that a quantum computer can find periods efficiently using the quantum Fourier transform. The consequence: on a quantum computer, both problems are solved in time that grows only polynomially with key length, not exponentially or sub-exponentially.

This yields a fatal corollary: you cannot save yourself by enlarging keys. Against classical attacks, moving RSA from 2048 to 4096 bits raises the attack cost enormously; against polynomial-time Shor, enlarging the key raises attack time only gently, while the defender’s own costs (computation, bandwidth, storage) break first. Likewise, ECC’s short-key advantage means nothing against quantum attacks — however elegant the curve, the discrete logarithm problem itself has been solved. This is not a flaw in some implementation but a wholesale failure at the algorithmic level: both load-bearing columns are sawn through by the same method.

What gets broken, and what does not

What breaks is, precisely, the entire core functionality of public-key systems. When key exchange (such as ECDH) fails, session keys can be derived and historical traffic decrypted in bulk, retroactively. When digital signatures (such as RSA signatures and ECDSA) fail, certificates, code signatures and identity authentication can all be forged. Together, the internet’s confidentiality and authenticity foundations shake at once — the attacker can both “eavesdrop on the past” and “impersonate the present.”

But not all cryptography falls. Symmetric encryption and hash functions face a different quantum algorithm — Grover’s search — which provides only a quadratic speedup: the effective cost of breaking AES-128 drops to roughly the 2^64 scale, and the countermeasure is simple and direct — switch to AES-256 and the safety margin is restored; hash outputs can be lengthened likewise. This is why post-quantum migration replaces public keys but not symmetric cryptography, and it is a good litmus test for “quantum threat” claims: any claim that “all encryption will be broken” is, in general, inaccurate.

The timing question: not “whether” but “when”

Honesty requires saying: today’s quantum computers are nowhere near running Shor’s algorithm at RSA-2048 scale — that demands large numbers of fault-tolerant qubits and long, stable runs, and published resource estimates show it remains an enormous engineering challenge whose arrival year nobody can state with certainty. But migration decisions cannot rest on precise predictions of when the adversary reaches the door: migration cycles run in decades, and data needing long-term secrecy is being collected and stored today. The rational posture is to prepare for the quantum threat as an event that is uncertain in timing but certain in direction — the basic logic behind standards bodies worldwide pushing post-quantum migration before quantum computers arrive.

A corollary: ECC is not more “quantum-resistant” than RSA

One might ask: since ECC keys are shorter and more efficient, might ECC hold out longer against quantum attacks? The opposite is true. In terms of Shor’s algorithm’s resource demands, solving a 256-bit elliptic-curve discrete logarithm requires no more quantum resources than factoring RSA-2048 — by several published estimates, fewer. In other words, the industry’s earlier migration from RSA to ECC for efficiency was an upgrade in the classical world but bought no extra time in the quantum world. The two algorithm families will not retire on staggered schedules because one has shorter keys; they face the same deadline. This is why the post-quantum standards bypassed “improved curves” entirely and started afresh from wholly new problems — lattices, hashes and codes.

Tags: RSAElliptic CurveShor's AlgorithmQuantum Threat