Myth 30 of 50 · Security and Cryptography
“Making RSA keys bigger is enough to protect against quantum computers”
The short answer
Shor's algorithm breaks RSA in polynomial time, so longer keys buy little. Keys would need to be absurdly large, around a terabyte, to resist a quantum attack, which is why the world is moving to different algorithms instead.
Where the myth comes from
The intuition comes from the history of RSA. When faster computers or better factoring methods threatened shorter keys, the response was to lengthen them: 512-bit keys gave way to 1,024, then 2,048 and 3,072 bits. It seems natural to expect the same answer to quantum computers: just double the key size again. Some security advice and even a few product descriptions suggest this, and for symmetric keys it is correct, since doubling an AES key length restores the security margin against Grover's algorithm.
For RSA and similar systems, however, the situation is different because of how Shor's algorithm scales.
Why bigger keys do not help much
The best classical algorithms for factoring, such as the general number field sieve, take time that grows sub-exponentially in the key length, so adding bits makes the attack costlier at an increasing rate, which is why moving from 1,024 to 2,048 bits was effective. Shor's algorithm takes time that grows only polynomially, roughly as the cube of the number of bits. Doubling the key size therefore increases the cost of the quantum attack by about a factor of eight, which is a small price for the attacker compared with the astronomical jump against classical methods. The attacker's hardware requirements grow, but moderately: the logical qubits needed scale roughly linearly with key size, so a 4,096-bit key needs about twice the logical qubits of a 2,048-bit key. Gidney and Ekerå's and Gidney's estimates for RSA-2048 would increase by modest factors for larger keys.
In the race between longer keys and better quantum computers, the quantum side wins easily once the machines exist, because the machines' capability is limited by hardware, not by the key length, while the cost of using longer keys grows too, in key generation, storage, and handshake size.
The terabyte RSA proposal
To make the point vivid, Bernstein, Heninger, Lou, and Valenta proposed in 2017 a scheme they called post-quantum RSA, which uses public keys of about a terabyte in size. The design chooses a modulus built from many large primes and arranges the system so that Shor's algorithm would require an impractically large quantum computer, with the aim of showing that RSA could in principle be made quantum-resistant, but at a cost that is ridiculous: generating and transmitting a terabyte key, and performing computations with it, is far beyond what any real system would accept. The paper is a research demonstration that illustrates the problem more than it offers a solution, and it shows that making RSA quantum-safe by size alone is possible only at absurd cost.
What the real solutions are
The practical solution is to use algorithms based on other mathematical problems for which no efficient quantum algorithm is known, such as lattice problems, code-based problems, and hash functions. NIST standardized ML-KEM, ML-DSA, and SLH-DSA in 2024, and chose HQC as a backup key-establishment scheme in 2025. The keys and signatures of these algorithms are bigger than those of elliptic curve cryptography, with public keys of about one to two kilobytes and signatures of two to several kilobytes, but they are tiny compared with terabyte RSA keys and they run quickly on ordinary hardware.
Elliptic curve cryptography is no better against Shor's algorithm. The attack on a 256-bit elliptic curve needs fewer logical qubits than RSA-2048, as Roetteler and coauthors showed, so switching to elliptic curves or to larger curves is not a solution either.
The grain of truth
In the transition period, key length still matters against classical attackers, and using 3,072-bit or longer RSA keys remains reasonable for current security. For symmetric cryptography, longer keys do solve the quantum problem. The error is in carrying that lesson over to public-key algorithms broken by Shor's algorithm.
A quick comparison of cost growth
A small table of how costs scale makes the difference plain. If the key length doubles, the classical factoring effort for the number field sieve grows by many orders of magnitude, from about 2 to the 112 operations at 2,048 bits to roughly 2 to the 150 at 4,096 bits, which is why 4,096-bit keys are considered safe against classical computers for the foreseeable future. For a quantum attacker, the cost grows only by a factor of a few in qubits and about eight in time. A machine that can break the smaller key in a week can break the larger one in a few weeks, with a machine somewhat larger than before. Since the quantum machine either exists or does not, the doubling of key size buys, at most, a short delay.
Why the myth matters
Believing that bigger keys suffice can delay the real migration. An organization may increase its RSA key sizes and consider the matter closed, and be exposed when a machine arrives, or to the recording of traffic in the meantime. It also wastes effort and slows systems. Understanding that the issue is an algorithmic one, not one of size, helps in planning the transition to post-quantum algorithms.
How to answer the myth
Explain that the cost of Shor's algorithm grows polynomially with key size, while classical attacks grow much faster, so size gives the defender little. Mention the terabyte RSA proposal as a thought experiment. Then point to the standardized replacements and the migration deadlines. If someone says to use a larger elliptic curve, note that elliptic curves are also broken by Shor's algorithm.
Our verdict
False. Longer RSA keys do not provide meaningful protection against a quantum computer running Shor's algorithm, except at impractical sizes. The solution is to adopt different algorithms, such as the NIST post-quantum standards.
Quick facts
- Shor's algorithm runs in time that grows polynomially, roughly as the cube of the key length.
- Bernstein and coauthors proposed terabyte-sized RSA keys in 2017 as a demonstration of impractical size.
- Elliptic curve cryptography is also broken by Shor's algorithm, with fewer logical qubits needed than for RSA-2048.
- NIST standardized ML-KEM, ML-DSA, and SLH-DSA in 2024.
How to spot and answer this myth
- Watch for advice that bigger keys are the answer to quantum computers.
- Ask whether the algorithm in question is symmetric or public-key.
- Check whether elliptic curves are suggested as a quantum-safe alternative.
- Look for references to NIST post-quantum standards.
Frequently asked questions
Is RSA-4096 safe against quantum computers?
No. It would need about twice the quantum resources of RSA-2048, which is a small increase.
Are bigger AES keys helpful?
Yes. Doubling the key length restores the security margin against Grover's algorithm.
What should replace RSA?
Post-quantum algorithms such as ML-KEM for key exchange and ML-DSA or SLH-DSA for signatures.
References
- Shor, P. W. (1997). Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. SIAM Journal on Computing, 26, 1484-1509.
- Bernstein, D. J., Heninger, N., Lou, P., & Valenta, L. (2017). Post-quantum RSA. PQCrypto 2017, LNCS 10346, 311-329.
- Gidney, C. (2025). How to factor 2048 bit RSA integers with less than a million noisy qubits. arXiv:2505.15917.
- Roetteler, M., Naehrig, M., Svore, K. M., & Lauter, K. (2017). Quantum resource estimates for computing elliptic curve discrete logarithms. ASIACRYPT 2017, LNCS 10625, 241-270.
- National Institute of Standards and Technology (2024). FIPS 203, FIPS 204, and FIPS 205.
- Bernstein, D. J., & Lange, T. (2017). Post-quantum cryptography. Nature, 549, 188-194.
Keep exploring
- Paper: Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer
- Paper: How to Factor 2048 Bit RSA Integers with Less than a Million Noisy Qubits
- Paper: How to Factor 2048 Bit RSA Integers in 8 Hours Using 20 Million Noisy Qubits
- Term: Post-Quantum Cryptography
- Forecast: Quantum Computing and the Future of Cybersecurity
This page summarizes published research and expert consensus as of 2026 for education. Details change as experiments and standards evolve, so check the references before citing. It is not investment, legal, or security advice.