Key takeaways:
- Public-key cryptography is the real quantum risk. A large, fault-tolerant quantum computer running Shor’s algorithm would break RSA, Diffie-Hellman, DSA and elliptic-curve cryptography.
- Symmetric cryptography is not a practical concern. Grover’s algorithm speeds up brute-force key search in theory. In practice it is too slow and parallelizes too poorly to threaten AES.
- Prioritize migrating public-key systems. TLS, SSH, IPsec and PKI (authentication, document and code signing) should be first in line. NIST’s ML-KEM and ML-DSA are the standardized replacements.
- AES-256 is a sensible upgrade, not an urgent one. Use it in new systems that need long-term security, but don’t let it distract from the public-key migration.
- Watch for symmetric keys protected by public-key cryptography. If an AES key is exchanged or wrapped using RSA or elliptic curves, it is only as safe as that public-key layer.
The analysis
A common misconception is that quantum computers work exponentially faster than classical computers, and will be able to solve essentially any hard problem. This is not true. In fact, most problems that are hard for classical computers are assumed to also be hard for quantum computers.
However, there are some important problems that a quantum computer is exponentially faster at solving, and these include the problems that lie at the core of most of the public-key cryptography that is used worldwide.
Other problems see much smaller gains. The difference is best understood through two algorithms: Shor’s and Grover’s. This distinction should drive how organizations prioritize their post-quantum migration. We examine each algorithm below.
Why Shor threatens public-key cryptography
In the mid-1990s, Peter Shor developed an algorithm - famously known as Shor’s algorithm - that can efficiently solve the hard problems (namely the discrete log and factoring problems) lying at the heart of the most widely used public-key cryptography. Importantly, Shor’s algorithm can break RSA, finite-field Diffie-Hellman and DSA, and conventional elliptic curve schemes such as ECDH, ECDSA and EdDSA.
A sufficiently powerful quantum computer running Shor’s algorithm could break these widely used schemes, putting secure communications and digital signatures at risk. This means that today’s public-key cryptography needs to be replaced with public-key cryptography that is resilient to quantum attacks.
Fortunately, we do have public-key cryptosystems that to the best of our knowledge are resilient to generalizations of Shor’s algorithm and quantum attacks in general. NIST has standardized some of these, and the ML-KEM (key establishment / encryption) and ML-DSA (digital signatures) algorithms are both based on lattice problems that are assumed to be hard for quantum computers.
What Grover changes for AES
Cryptography in use in modern systems also includes other algorithms like AES for symmetric encryption, and hash functions. In general, symmetric primitives (block and stream ciphers, and cryptographic hash functions) are affected much less severely than today’s public-key cryptography and in most cases are actually not vulnerable in practice to quantum attacks.
This can get confusing since there is a general quantum algorithm - called Grover’s algorithm - that works in general including on symmetric cryptography. A quantum computer running Grover’s algorithm solves general “search problems” in square-root of the time that it would otherwise take on a classical computer.
For example, AES-128 has 2128 possible different keys and a brute-force search over them on a classical computer would require testing 2128 keys, which is way beyond the capability of even the most powerful computers and organizations today. In an idealized model, Grover’s algorithm can reduce this to square-root of the cost of the search, which is 2128=264. Although 264 is still a very large number, a computation of that size is something that a large computing cluster can carry out in reasonable time.
Indeed, an encryption scheme that could be broken by classical computers in that amount of time is considered completely broken. However, this does not mean that a quantum computer running time in 264 is a threat in practice.
The reason for this is that quantum computing architecture is expected to run at a much slower clock speed than modern classical computers. Furthermore, and far more importantly, classical computers can only achieve 264 time by running an enormous number of machines in parallel.
For example, a single M4 chip has 10 cores and runs at the rate of up to 4.5 GHz which means 4.5 billion clock ticks per second per core (or 45 billion overall). Now, clearly multiple clock ticks are needed for every operation, but for the sake of simplicity we will assume that a single key can be tested in a single clock tick.
In order to carry out 264 operations, it would take 114 hours on 1,000 computers running at this speed. Although an expensive operation, it is clearly feasible to carry out (in reality, it would be at least 10 times slower, but that’s not important for our discussion). In contrast, a single core running at the same speed (4.5 billion operations per second) would take over 1.13 million hours, or 130 years!
The important point to know is that Grover’s algorithm cannot be spread out over multiple different quantum computers, and must be run entirely on a single machine. Thus, even if a quantum computer is built that can carry out 4.5 billion operations per second, it would take 130 years to find a single key.
Furthermore, in reality, it would take much much longer since each operation in Grover’s algorithm would require many basic qubit operations, and current clock speeds are at least 500 times slower than this. The cost of such an attack is therefore so high that this is not a reasonable concern. As a result of the above, the accepted approach is to not consider Grover’s algorithm a realistic threat.
Of course, one can move from AES-128 to AES-256 and this is certainly not a bad thing to do. However, it should be far lower on priorities, and the focus should be on classical asymmetric cryptography including RSA and elliptic curve cryptography (and finite field cryptography, if used).
The bottom line
In summary, quantum computers will not make every difficult computational problem easy. However, a sufficiently large, fault-tolerant quantum computer running Shor’s algorithm would break the mathematical foundations of RSA, finite-field Diffie-Hellman and DSA, and conventional elliptic-curve cryptography.
Symmetric cryptography and hash functions are affected less severely. Grover’s algorithm provides a quadratic speedup for exhaustive search, but its sequential depth and poor parallel scaling make it impractical for the foreseeable future. AES-256 is a prudent choice for new systems requiring long-term security, but replacing vulnerable public-key cryptography is the higher priority.
Migration implications
Public-key systems should be the primary focus of post-quantum migration. Thus, applications like TLS, SSH, IPsec and so on are vulnerable, as is our PKI as used for authentication, document and code signing, and so on.
In contrast, symmetric encryption - for example, application-level AES encryption in a database does not need to be a priority. Of course, if a symmetric key is wrapped with a classic public key and sent, for example, over a public communication channel, then that symmetric key is also exposed.
Learn more about Q.security’s PQC remediation platform here.
%20%E2%80%94%20In-page%20%E2%80%94%20Dark%20%E2%80%94%201200%C3%97630.jpg)