← Back to section · Security Risk & Assessment
The Precise Boundaries of the Shor Threat: Which Algorithms and Key Lengths Are Actually Affected
Shor's algorithm is not a universal threat to all cryptography; it precisely targets public-key systems based on integer factorization and discrete logarithms. This article draws the boundary: why RSA, Diffie-Hellman and elliptic curves fall completely, why symmetric ciphers and hashes are out of range, and why longer keys cannot save RSA but can save AES.
When the quantum threat is discussed, the most common misreading is to treat “quantum computers can break cryptography” as a statement that holds indiscriminately. In fact, the quantum threat has a fairly precise map: some cryptosystems would be destroyed outright, others only mildly weakened, and others are not in range at all. Drawing this map accurately is the first step of any serious risk assessment — otherwise an organisation either panics indiscriminately across all its systems or lets the truly fatal exposures drown in noise. This article does one thing: it draws the boundary of Shor’s algorithm.
Completely hit: three public-key families
The core capability of Shor’s algorithm (1994) is solving the period-finding problem efficiently on a quantum computer, and both integer factorization and the discrete logarithm problem reduce to it. That yields an explicit “total loss” list:
- RSA: its security rests on the hardness of factoring large integers, which Shor’s algorithm breaks directly. Whether the modulus is 2048, 3072 or 4096 bits affects only how many quantum resources are needed, not whether the break is possible.
- Finite-field Diffie-Hellman and DSA: these rest on the discrete logarithm modulo a prime, likewise covered by period-finding, including the traditional DH groups still used in TLS, SSH and VPNs.
- Elliptic-curve cryptography (ECC): ECDH key exchange and ECDSA/EdDSA signatures rest on the elliptic-curve discrete logarithm, to which Shor’s algorithm also applies — and because ECC keys are shorter, the quantum resources per target are actually smaller.
These three families share one trait: they make up nearly the whole of today’s Internet public-key infrastructure — certificates, key exchange, digital signatures, code signing, identity authentication. “The public-key layer must be migrated wholesale” is therefore not rhetoric; it is the direct corollary of this list.
Why longer keys cannot save them
The instinctive response of classical cryptographic engineering is to lengthen keys: if RSA-1024 is not enough, move to RSA-2048, then to 4096. That works against classical attacks, because the complexity of classical factoring grows super-polynomially with the number of bits. It does not work against Shor’s algorithm: its running time grows polynomially with key size, so doubling the bits raises the quantum resource requirement by a polynomial factor rather than by the orders of magnitude seen classically.
In other words, for the systems Shor targets, key length is a “cost parameter”, not a “security parameter”: it can make the attacker’s bill larger, but it cannot turn an attack from feasible back into infeasible. That is why standards bodies recommend deprecation rather than enlargement for RSA and ECC — NIST’s migration roadmap sets deprecation and disallowance dates for these algorithms instead of recommending bigger parameters.
Out of range: symmetric ciphers and hashes
In contrast to the public-key families stand symmetric ciphers and hash functions. The security of AES and ChaCha20 does not depend on factorization or discrete-logarithm structure, and Shor’s algorithm has no purchase on them; they face only the square-root weakening of Grover search (whose real magnitude is treated in a companion article on this site). Likewise, the preimage resistance of SHA-2 and SHA-3 takes only a square-root discount from Grover, and the quantum weakening of collision resistance is more limited still.
This distinction has direct engineering consequences: the migration battlefield is only the public-key layer. An organisation does not need to replace AES or abandon its hash functions; at most it should raise symmetric keys from 128 to 256 bits for margin. Spending resources on a wholesale replacement of the symmetric layer is a misreading of the threat map.
Within the same list, urgency is not uniform
There is a further distinction, often overlooked, inside the “total loss” list: the targets are not equally hard to break, and that directly affects migration ordering. Because elliptic-curve systems have short keys and compact arithmetic, breaking a 256-bit elliptic-curve key requires fewer logical qubits and gate operations than breaking 2048-bit RSA — which means that, along the ramp of quantum hardware capability, ECC targets come into reach first, and large-parameter RSA later. The irony is that ECC originally displaced RSA precisely by offering “the same classical strength with shorter keys”, while on the quantum scale, short means broken first.
A second ordering variable is a key’s “lifetime and mode of exposure”. Long-lived root certificates, code-signing keys held for many years, and device keys burned into hardware that cannot be replaced should be dealt with first even if their algorithm sits lower on the list, because they cannot be swapped at short notice when the threat draws near. Short-lived ephemeral key exchange, though equally on the list, presents a different ordering logic, since the risk to past sessions comes mainly from harvest-now-decrypt-later recording. The boundary map answers “is it affected”; urgency requires overlaying two more layers of information — resource scaling and asset properties.
The grey zone at the boundary
A few kinds of object sit near the boundary and deserve separate mention. First, pairing-based cryptography rests on variants of the elliptic-curve discrete logarithm and is likewise covered by Shor; do not assume it is safe because it is niche. Second, legacy finite-field systems with short parameters: traditional 768-bit and 1024-bit DH groups already carry realistic classical risk, and the quantum threat merely removes any suspense about their retirement. Third, the weakest link in hybrid deployments: even if parts of a system have migrated to post-quantum algorithms, as long as an RSA/ECC path remains in key establishment or signature verification, the system’s overall security is still rated by its unmigrated parts.
Conclusion: inventory by this map first
Once the Shor boundary is drawn clearly, the sequence of risk-assessment actions becomes clear: the first question is not “how many systems do we have” but “where are our RSA, DH and ECC used, what do they protect, and who holds the keys”. The inventory of public-key-layer exposure is the master list of quantum risk; the symmetric and hash layers need only routine parameter hardening. Sorting these two kinds of work separately, and budgeting them separately, is how an organisation concentrates its migration resources on the layer that will actually be broken.
Tags: Shor's algorithmRSAelliptic curvesthreat boundary