Lesson 5 of 5 Cryptographic Solutions

Quantum Computing and Post-Quantum Cryptography

Large quantum computers would break today's public key algorithms. This lesson explains the threat and the post-quantum standards that address it.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain how quantum computing threatens public key cryptography.
  • Identify the NIST post-quantum standards and their purposes.
  • Prioritise systems for post-quantum migration.

The quantum threat

Shor's algorithm, running on a sufficiently large quantum computer, would efficiently factor large numbers and compute discrete logarithms, breaking RSA, Diffie-Hellman and elliptic curve cryptography. Grover's algorithm speeds up searching for symmetric keys, effectively halving their strength, so AES-128 provides about 64-bit security against a quantum attacker while AES-256 remains strong. Hash functions are similarly affected and remain secure with larger outputs.

No such quantum computer exists publicly yet, but attackers can record encrypted traffic now and decrypt it later ("harvest now, decrypt later"), so data that must remain confidential for many years is already at risk.

The following diagram shows why long-lived data is at risk today.

Why data that must stay confidential for decades needs post-quantum planning now. Data protected with keys exchanged by RSA or elliptic curve methods can be intercepted and stored today and decrypted later if a large quantum computer breaks them. The response is to migrate key establishment to ML-KEM, often in hybrid mode, keep AES-256 for bulk encryption and build crypto agility, starting with the longest-lived data.
This threat is known as harvest now, decrypt later.
Sort into groups

Broken or weakened by quantum?

Exam skills 3.6.2

Decide how a large quantum computer would affect each algorithm.

Log in to try this activity Interactive activities are free with an account.

Post-quantum standards

In August 2024, NIST published the first post-quantum cryptography standards, based on mathematical problems believed to resist quantum attack. They are summarised in the following table.

StandardAlgorithmPurpose
FIPS 203ML-KEM (from CRYSTALS-Kyber)Key encapsulation (key establishment)
FIPS 204ML-DSA (from CRYSTALS-Dilithium)Digital signatures
FIPS 205SLH-DSA (from SPHINCS+)Hash-based digital signatures

NIST is also developing FN-DSA (from FALCON) as a further signature standard and selected HQC in 2025 as a backup key encapsulation algorithm. Organisations prepare by inventorying where they use public key cryptography, prioritising long-lived sensitive data, building crypto agility and adopting hybrid schemes that combine classical and post-quantum algorithms during the transition.

A key encapsulation mechanism works differently from Diffie-Hellman, although it achieves the same goal. The recipient publishes an ML-KEM public key. The sender uses it to generate a random shared secret together with a ciphertext that encapsulates it, and sends the ciphertext. Only the holder of the matching private key can recover the shared secret, which both sides then use to derive symmetric session keys. The bulk data is still encrypted with AES, so the post-quantum change affects key establishment and signatures, not the symmetric layer.

A hybrid scheme runs a classical key exchange, such as elliptic curve Diffie-Hellman, and ML-KEM together, and combines both results into the session key. An attacker must break both to recover the key. This protects against a future quantum computer while guarding against the possibility that a new algorithm has an undiscovered weakness. Post-quantum keys and signatures are also considerably larger than their elliptic curve equivalents, which can affect protocols, constrained devices and certificate sizes, and is one reason why migration needs testing rather than a simple switch.

The following steps summarise a typical migration programme.

  1. Inventory

    Find every use of RSA, Diffie-Hellman and elliptic curve cryptography, including in suppliers' products.

  2. Prioritise

    Rank systems by how long their data must stay confidential and how long signatures must be trusted.

  3. Build agility

    Make algorithms configurable so that they can be changed without redesign.

  4. Pilot hybrid modes

    Test hybrid key establishment on high-priority links and measure the performance impact.

  5. Migrate and retire

    Move systems to post-quantum or hybrid algorithms and switch off classical-only options.

Put in order

A post-quantum migration

Exam skills 3.6.2

Arrange the stages of a post-quantum migration programme.

Log in to try this activity Interactive activities are free with an account.

Quantum key distribution

Quantum key distribution (QKD) is a separate idea: it uses quantum properties of photons so that any eavesdropping on the key exchange disturbs the signal and is detected. QKD needs specialised hardware and dedicated optical links or satellites, works over limited distances and still requires authenticated channels. Post-quantum cryptography, which runs on ordinary computers and networks, is the main migration path for most organisations.

Worked example

Prioritising migration

A bank asks which of its systems should migrate to post-quantum cryptography first: a public website for marketing, internal payroll messages retained for one year, or archived customer financial records that must stay confidential for 25 years and are replicated between data centres over encrypted links.

The archived records replicated over links protected by classical key exchange face the highest risk from harvest-now-decrypt-later, because their confidentiality must outlast the likely arrival of capable quantum computers. Their key establishment should migrate first, to ML-KEM or a hybrid scheme. The marketing website has little confidentiality value, and one-year payroll data is unlikely to remain sensitive long enough to be at risk.

Check yourself

Which NIST standard specifies ML-KEM, and what is it used for?

Show answer

FIPS 203; ML-KEM is used for key encapsulation (key establishment).

Exam Tips

Remember for the exam

  • Shor breaks RSA and ECC; Grover halves symmetric strength.
  • FIPS 203 ML-KEM, FIPS 204 ML-DSA, FIPS 205 SLH-DSA (2024).
  • Prioritise data that must stay secret for many years.
  • AES-256 remains strong against quantum attacks.