A software supplier wants to replace the RSA key transport that sets up session keys in its product with a post-quantum standard.
Quantum computers and the methods that survive them
Every cryptographic method belongs to a family, and each family rests on a different hard problem. A quantum computer is a new kind of machine that would solve some of those problems quickly, so it threatens some families badly and others hardly at all. No background beyond the earlier cryptography is assumed. A security manager must know which protections would fail, which data is already at risk, and what replaces the methods that fail.
By the end of this unit you will be able to:
- Tell apart the families of cryptographic method and what each one is used for
- Explain what Shor's and Grover's algorithms would do to each family
- Choose the post-quantum standard for key establishment and for signatures
- Explain harvest now, decrypt later and decide which data it puts at risk today
- Tell apart post-quantum cryptography and quantum key distribution
Adoption records that must stay sealed for a lifetime
An illustrative example
A county council scans its adoption files and sends them to a records archive over the internet. The connection uses current public key methods to agree its keys, and the files are kept encrypted with AES.
The law says these files stay closed for a hundred years. A newspaper article claims that someone could record the transfer today and read it in twenty years with a quantum computer. The records manager asks whether the article is right, and whether anything should change now.
Which part of the protection would a quantum computer threaten: the key agreement, the AES encryption, or both?
The cryptographic methods side by side
A cryptographic method is a family of that share one way of working and one hard problem. Five families matter.
- Symmetric
- One shared key and . AES is the standard. Fast, and used for the bulk of all data.
- Asymmetric
- A public key and a private key. RSA rests on factoring; Diffie-Hellman and DSA rest on the discrete logarithm. Used to agree keys and to sign.
- Elliptic curve
- An family built on the points of a curve. It gives equal strength with far shorter keys, so it suits phones and cards.
- Hash function
- No key at all. It turns any data into a short fixed-length fingerprint, the digest, and cannot be run backwards.
- Post-quantum
- New asymmetric algorithms built on problems that neither an ordinary nor a quantum computer is known to solve quickly.
Real systems combine families. A secure web connection uses an asymmetric or elliptic curve method to agree a key, then for the data, with and signatures checking that nothing was changed. A weakness in any one family weakens every system that relies on it.
What a quantum computer does to each family
A quantum computer is a machine that uses the physics of very small particles to calculate in a different way from an ordinary computer. For most work it offers no advantage. For a few kinds of problem it would be enormously faster. Today's machines are small and make frequent errors. One large and reliable enough to break current is called a cryptographically relevant quantum computer.
Two methods for such a machine explain the whole threat.
- Shor's algorithm (1994)
- Shor's algorithm solves factoring and the discrete logarithm efficiently. Those are the two problems under RSA, Diffie-Hellman, DSA and elliptic curve cryptography, so all four would be broken outright.
- Grover's algorithm
- Grover's algorithm speeds up a blind search. A search needing 2^128 tries would need about 2^64 steps: the square root. It halves the strength of a symmetric key, measured in bits.
| Family | Examples | Effect | Response |
|---|---|---|---|
| Symmetric | AES | Grover halves the strength in bits | Longer keys: AES-256 keeps about 128 bits |
| Hash | SHA-2, SHA-3 | Searches for matches become faster | Longer digests; SHA-256 and above stay in use |
| Asymmetric | RSA, Diffie-Hellman, DSA | Shor solves the hard problem: broken | Replace with post-quantum algorithms |
| Elliptic curve | ECDH, ECDSA | Shor solves the hard problem: broken | Replace with post-quantum algorithms |
| Post-quantum | , ML-DSA, SLH-DSA | No fast quantum attack is known | The replacement |
Common misconception
“A quantum computer will break all encryption, so AES will have to be replaced.”
Shor's algorithm breaks the public key families. Against AES, Grover's algorithm only halves the strength in bits, and doubling the key length restores the margin. AES with long keys stays.
Post-quantum cryptography: the replacements
Post-quantum cryptography is ordinary software, running on ordinary computers, whose security rests on mathematical problems that no quantum algorithm is known to solve quickly. It replaces the public key families for their two jobs: establishing shared keys and making signatures. NIST, the United States standards body, published the first three standards on 13 August 2024 and urged organisations to begin moving at once.
| Standard | Algorithm | Job | Built from |
|---|---|---|---|
| FIPS 203 | ML-KEM | Establishing a shared key. The main standard for general encryption | Lattice problems; formerly CRYSTALS-Kyber |
| FIPS 204 | ML-DSA | . The main signature standard | Lattice problems; formerly CRYSTALS-Dilithium |
| FIPS 205 | SLH-DSA | Digital signatures. A backup in case ML-DSA proves weak | Hash functions; formerly SPHINCS+ |
ML-KEM is a key-encapsulation mechanism: the sender uses the recipient's public key to create a fresh shared secret and a sealed copy of it that only the recipient's private key can open. Both sides then use the secret as a symmetric key. It does the job that Diffie-Hellman and RSA key transport do today.
A hybrid scheme runs a post-quantum algorithm and a traditional one of the same type together, so the result stays secure while either one holds. Several web browsers already agree keys this way, pairing ML-KEM with a traditional key exchange. Hybrids cost more effort and run slower, and they ease a phased move.
Harvest now, decrypt later
Harvest now, decrypt later is the attack of recording encrypted traffic today and keeping it until a quantum computer can break the key agreement that protected it. Once that key agreement falls, the session key is recovered and the stored data can be read. The attack needs nothing more than storage and patience, so the to long-lived secrets exists now.
Storing large amounts of data for decades is costly, so the attack is aimed at information that will still be valuable many years from now: state secrets, health and adoption records, long-term .
Add the years the data must stay secret to the years the move to post-quantum methods will take. If a quantum computer could exist within that total, the data is at risk today.
Signatures face a different timing. Forging a signature needs the quantum computer at the moment of the forgery, so signatures made today are safe until then. Keys meant to last decades, such as a root 's key, should still be planned with that end in view.
- : find every system, product and supplier that uses public key cryptography, and record what data each protects and for how long.
- Prioritise: move first where data must stay secret longest, or where a key must be trusted longest.
- Migrate: adopt ML-KEM and ML-DSA, often through hybrids, and test each change.
- Build agility: design systems so that an algorithm can be swapped without rebuilding them.
Quantum key distribution is not post-quantum cryptography
Quantum key distribution (QKD) uses physics, not mathematics, to share a key between two points over special equipment. Any attempt to observe the key on the way disturbs it and can be detected. It is often called quantum cryptography.
Its limits are severe. QKD does not prove who is at the other end, so it still needs an authentication method, which must itself be quantum-resistant. It needs specialised hardware and dedicated links, and the hardware brings its own weaknesses. The United Kingdom's National Cyber Security Centre will not support QKD for government or military use and names post-quantum cryptography as the best defence.
| Point | Post-quantum cryptography | Quantum key distribution |
|---|---|---|
| Rests on | Mathematical problems | The laws of physics |
| Runs on | Existing computers and networks, as software | Specialised hardware and dedicated links |
| Jobs it does | Key establishment and signatures | Key sharing only |
| Proves identity | Yes, through post-quantum signatures | No. It needs a separate authentication method |
| Standing | NIST standards since 2024 | Niche; not supported by the UK NCSC for government use |
Worked example: What a recorded transfer would reveal
The council's transfer used an elliptic curve Diffie-Hellman exchange to agree a 256-bit AES key, then encrypted the files with that key. An eavesdropper recorded every byte. Twenty years later the eavesdropper has a large quantum computer.
- The key exchange rests on the discrete logarithm on an elliptic curve. Shor's algorithm solves that problem, so the eavesdropper recovers the shared secret from the recording.
- The shared secret gives the AES key directly. The files decrypt without any attack on AES at all.
- Had the eavesdropper attacked AES-256 instead, Grover's algorithm would cut the work from 2^256 to about 2^128 steps, which is still far beyond reach.
- The files must stay closed for a hundred years, far longer than any plausible wait for such a machine. The data is at risk today.
- The fix is to change the key agreement, by moving the transfer to ML-KEM, alone or in a hybrid. AES-256 can stay.
The weak point is the key agreement, not the encryption of the files. Long-lived data sent today needs post-quantum key establishment today.
A question, worked through
A security manager at a pharmaceutical company protects drug research that must stay confidential for at least twenty-five years. Research files travel between laboratories over the internet using TLS with an elliptic curve key exchange and AES-256. The board has approved a programme to prepare for quantum computers, and its first quarter's budget covers one project.
Which project should the security manager fund FIRST?
Decide on your answer, then open the reasoning
- The question asks for the first step of a migration, with data that must stay secret for decades.
- Rule out b. AES-256 already keeps about 128 bits of strength against Grover's algorithm. The exposed part is the key agreement.
- Rule out c. Quantum key distribution needs special links and gives no authentication; the UK's NCSC advises post-quantum cryptography instead.
- Between a and d: d acts before anyone knows where the risk lies, and starts with signatures, which a future quantum computer cannot forge in the past.
- The long-lived research files are exposed through key agreement. An inventory finds those systems so they move first. Option a is the answer.
Answer: A. An inventory of every system that uses public key cryptography and the data each protects
Choosing between good answers
- A question asks what a quantum computer does to AES or to a hash
- choose longer keys or longer digests. Grover's algorithm halves strength in bits; it does not break the family.
- A question asks what a quantum computer does to RSA, Diffie-Hellman or elliptic curve cryptography
- they are broken by Shor's algorithm and must be replaced by post-quantum algorithms.
- Options offer quantum key distribution and post-quantum cryptography as the defence against quantum attack
- choose post-quantum cryptography. It runs on existing systems, covers signatures and authentication, and is standardised.
- A scenario has data that must stay secret for many years
- treat harvest now, decrypt later as a present risk and prioritise post-quantum key establishment for that data.
Check your understanding
4 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.
These questions are drafts that no named reviewer has approved yet.
Question 1 of 4
What to remember
- The families are symmetric, asymmetric, elliptic curve, hash and post-quantum. Each rests on a different hard problem.
- Shor's algorithm breaks RSA, Diffie-Hellman, DSA and elliptic curves. Grover's algorithm halves symmetric strength, so AES-256 keeps about 128 bits.
- ML-KEM (FIPS 203) establishes keys. ML-DSA (FIPS 204) signs. SLH-DSA (FIPS 205) is a hash-based signature backup.
- Harvest now, decrypt later makes long-lived data sent today a present risk. Migration starts with an inventory.
- Quantum key distribution is physics, needs special hardware and gives no authentication. It is not post-quantum cryptography.
Say it from memory
Name the families of cryptographic method and say what a large quantum computer would do to each.
Symmetric (AES) and hash functions: Grover's algorithm halves strength in bits, so use longer keys and digests. Asymmetric (RSA, Diffie-Hellman, DSA) and elliptic curve: Shor's algorithm breaks them, so replace them. Post-quantum (ML-KEM for keys, ML-DSA and SLH-DSA for signatures): the replacements. Quantum key distribution is physics-based key sharing, not post-quantum cryptography.
How do the five cryptographic method families combine in a secure web connection?
The families are symmetric, asymmetric, elliptic curve, hash function and post-quantum. A web connection uses an asymmetric or elliptic curve method to agree a key, then symmetric encryption for the data, with hashes and signatures checking nothing was changed. A weakness in any one family weakens every system that relies on it.
What do FIPS 203, 204 and 205 standardise, and what is a key-encapsulation mechanism?
FIPS 203 is ML-KEM, for establishing a shared key. FIPS 204 is ML-DSA, the main signature standard. FIPS 205 is SLH-DSA, a hash-based backup signature. A key-encapsulation mechanism uses the recipient's public key to create a fresh shared secret and a sealed copy only the recipient's private key can open.
How do you judge whether data is at risk from harvest now, decrypt later, and why are signatures timed differently?
Add the years the data must stay secret to the years the move to post-quantum methods will take. If a quantum computer could exist within that total, the data is at risk today. Forging a signature needs the quantum computer at the moment of the forgery, so signatures made today are safe until then.
How does quantum key distribution differ from post-quantum cryptography?
Quantum key distribution rests on physics, needs specialised hardware and dedicated links, shares keys only and does not prove identity. Post-quantum cryptography rests on mathematical problems, runs as software on existing computers and networks, and does key establishment and signatures. The UK NCSC does not support QKD for government use.
Sources
- NIST IR 8105: Report on Post-Quantum Cryptography, NISTShor's algorithm solving factoring and discrete logarithms so that RSA, DSA and elliptic curve systems are no longer secure, Grover's quadratic speed-up requiring larger symmetric keys and hash outputs, doubling the key size being sufficient, and post-quantum cryptography being distinct from quantum key distribution.
- NIST Releases First 3 Finalized Post-Quantum Encryption Standards, National Institute of Standards and TechnologyThe release on 13 August 2024 of FIPS 203 ML-KEM, FIPS 204 ML-DSA and FIPS 205 SLH-DSA, their origins in CRYSTALS-Kyber, CRYSTALS-Dilithium and SPHINCS+, SLH-DSA as a backup to ML-DSA, and NIST's call to begin moving at once.
- FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard, NISTML-KEM as a key-encapsulation mechanism.
- FIPS 204: Module-Lattice-Based Digital Signature Standard, NISTML-DSA as a digital signature algorithm.
- FIPS 205: Stateless Hash-Based Digital Signature Standard, NISTSLH-DSA as a stateless hash-based digital signature algorithm.
- Next steps in preparing for post-quantum cryptography, UK National Cyber Security CentreThe risk of data collected and stored today being decrypted later, its relevance to long-lived high-value data, the timing of the threat to signatures and long-lived trust anchors, AES with keys of at least 128 bits remaining usable, and the definition and costs of post-quantum traditional hybrid schemes.
- NCSC: Post-quantum cryptography migration timelines, NCSCMigration beginning with a discovery exercise of the services that depend on cryptography, a record of the data held and its expected lifetime, and browsers agreeing keys with a hybrid that uses ML-KEM.
- Quantum networking technologies, UK National Cyber Security CentreQuantum key distribution resting on physics, detecting eavesdroppers, providing no authentication, needing specialised hardware, not supported by the NCSC for government or military use, and post-quantum cryptography as the best mitigation.