Level 7 · Capstone Topics

Post-Quantum Cryptography: What Shor Breaks, What Survives, and the NIST Standards (ML-KEM, ML-DSA, SLH-DSA)

About 5,520 words · roughly 25 minute read · sources checked December 2026

Almost every secure connection you make today, from a bank login to a messaging app, starts with public-key cryptography. Two computers that have never met agree on a secret key, and one of them proves its identity with a digital signature. The mathematics behind those two jobs is mostly the difficulty of factoring large numbers or computing discrete logarithms. In 1994 Peter Shor showed that a large enough quantum computer solves both problems efficiently. That single result is the reason an entire field, post-quantum cryptography (PQC), now exists.

Post-quantum cryptography is easy to confuse with quantum cryptography, so it is worth stating the difference at once. Post-quantum cryptography means ordinary algorithms, running on ordinary computers, designed so that even a quantum computer is not known to break them. Nothing quantum is needed to use them. Quantum cryptography, such as the BB84 key exchange, uses quantum physics itself and needs special hardware. This lesson is about the first kind, the one that will actually be deployed on the internet.

We will go through what exactly is at risk, why the symmetric side of cryptography is far less affected, how the leading replacement idea (lattices) works with a small computed example you can check by hand, what the three finalized NIST standards are, how big their keys and signatures are, and how to reason about when to migrate. Everything cited comes from pages I opened in this project, and where I am giving my own arithmetic or simulation I say so.

What you will learn

  • Which cryptographic tools are broken by a large quantum computer and which are only weakened
  • Why Grover's algorithm does not force AES to be replaced, with the arithmetic
  • How lattice-based cryptography hides a secret behind noise, shown with a computed toy example
  • What FIPS 203, FIPS 204 and FIPS 205 are, with real key and ciphertext sizes
  • Mosca's inequality for deciding when to migrate, with worked cases
  • What 'harvest now, decrypt later' means and what is and is not known about it

Helpful first: Shor's Algorithm, Grover's Algorithm, Quantum Cryptography.

What exactly is at risk

Cryptography has two broad families. Symmetric cryptography, such as AES, uses one shared secret key for both locking and unlocking. Asymmetric or public-key cryptography uses a pair of keys, a public one that anyone may see and a private one that stays secret. Public-key tools solve two problems that symmetric tools cannot solve alone: agreeing on a shared key over an open network, and proving who sent a message.

Today those two jobs are done mainly by three families: RSA (based on the difficulty of factoring), Diffie-Hellman (based on the discrete logarithm problem in a finite field) and elliptic-curve cryptography, ECC (the discrete logarithm problem on an elliptic curve). Shor's algorithm, covered in the Shor lesson of this course, runs in polynomial time on a quantum computer for factoring and for discrete logarithms in both settings. So a large enough fault-tolerant quantum computer breaks all three at once. Making the keys longer does not rescue them in any practical sense, because the attack is polynomial, not exponential.

ToolJobHard problem behind itEffect of a large quantum computer
RSAEncryption, key transport, signaturesFactoringBroken by Shor
Diffie-Hellman (finite field)Key agreementDiscrete logarithmBroken by Shor
ECDH, ECDSA, EdDSAKey agreement, signaturesElliptic-curve discrete logarithmBroken by Shor
AESBulk encryptionNo known structure to exploit beyond searchWeakened by Grover, not broken (see next section)
SHA-2, SHA-3HashingCollision and preimage resistanceWeakened by Grover and related attacks, not broken

Which classical tools a large quantum computer breaks. The NIST report discussed below states that AES, SHA-2 and SHA-3 at 128 bits or more are not expected to need replacement.

The NIST Internal Report 8547, titled “Transition to Post-Quantum Cryptography Standards”, which I opened in full text, makes the practical consequence explicit. It says that the quantum-vulnerable signature and key-establishment schemes (RSA, ECDSA, EdDSA, finite-field and elliptic-curve Diffie-Hellman, and MQV) are to be deprecated after 2030 and disallowed after 2035. The document I opened is dated October 2026, and its text does not label itself a draft or a final version, so check the NIST site for its current status before quoting it as final.

Quantum cryptography versus post-quantum cryptography

Post-quantum cryptography is classical software designed to resist quantum attackers. Quantum key distribution is a different technology that needs quantum hardware. The standards in this lesson are all of the first kind, which is why they can be deployed through software updates.

Why the problem is urgent even though the machine does not exist yet

There is no quantum computer today that can run Shor's algorithm at the scale needed to break RSA-2048 or a standard elliptic curve. So why migrate now? There are two separate reasons, and it helps to keep them apart.

  1. Confidentiality has a long shelf life. Some data must stay secret for decades: medical records, state secrets, long-lived commercial agreements. An adversary who records encrypted traffic today and stores it could decrypt it later if a quantum computer becomes available. This is the concern usually called harvest now, decrypt later. The NIST report cites it as a reason to move key establishment first. I have not seen public proof that any particular actor is doing this at scale, so the right statement is that it is a risk that planners must account for, not an established fact about any named attacker.
  2. Migration is slow. Replacing the cryptography across operating systems, browsers, servers, embedded devices, smart cards, certificate authorities and protocols takes many years. Software that is deployed today may still be in use in fifteen years. If the migration starts only after a breaking machine is announced, it will be too late for everything that is slow to change.

Signatures are a slightly different case. A forged signature is only useful if the attacker can forge it before the signature is checked. Recorded signatures do not become dangerous in the harvest-now sense, but long-lived signatures (root certificates, firmware signing keys, documents that must be verifiable for decades) have a similar long-term concern, and the migration time is just as long.

Why AES and hashes mostly survive

Grover's algorithm, covered earlier in this course, searches an unstructured space of N items in about √N steps. Applied to a block cipher with a k-bit key, there are 2^k possible keys, so a quantum brute-force search takes about 2^(k/2) iterations. This is a quadratic speed-up, not an exponential one, and that difference decides everything.

CipherKey bits kClassical brute force (about 2^k)Grover iterations (about 2^(k/2))
AES-1281282^1282^64
AES-1921922^1922^96
AES-2562562^2562^128

Grover's square-root speed-up applied to key search. The exponents are exact halves; they do not include the cost of running one AES evaluation inside a fault-tolerant circuit, which makes real attacks more expensive.

Reading the table: against AES-256 a Grover attack still needs about 2^128 sequential iterations, which is the same order as the classical cost of attacking AES-128. So the usual summary is that doubling the key length restores the margin. Two further points make the real picture even more comfortable than the table suggests. First, Grover's iterations are inherently sequential, so you cannot split the work over a million machines without losing most of the advantage. Second, each iteration needs a full reversible AES circuit run inside error-corrected hardware, and that is a very large and slow computation compared with a classical chip doing the same evaluation.

This is why the NIST report states that AES, SHA-2 and SHA-3 with at least 128 bits are not expected to require replacement. The practical advice that follows is modest: do not panic about symmetric cryptography, prefer 256-bit keys where it costs little, and spend the migration effort on the public-key parts.

Worked example

How many Grover iterations is that?

  1. Take 2^64 iterations for AES-128. Suppose, optimistically, that a machine could do one million iterations per second, each one including a complete error-corrected AES evaluation. Then 2^64 ≈ 1.8 × 10^19 iterations would need about 1.8 × 10^13 seconds, which is roughly 580,000 years on a single machine. Even if you imagine a thousand independent machines, you do not divide by a thousand; splitting Grover's search over M machines gives only a √M reduction in time, so a thousand machines would shorten the time by about a factor of 32. The point of this arithmetic is scale, not prediction: the numbers are my own illustration with assumed speeds, not a published attack estimate.

How big a machine would it take?

A fair question is how far today's quantum computers are from the scale needed. Published resource estimates answer it, and they have changed a lot. In 2019 an estimate for factoring a 2048-bit RSA number needed about 20 million noisy physical qubits and about 8 hours. In May 2025, Craig Gidney's paper (arXiv 2505.15917), whose abstract I opened, lowered the estimate to fewer than a million noisy qubits running for less than a week. The assumptions matter: a square grid of qubits with nearest-neighbour connections, a gate error rate of 0.1 percent, a surface-code cycle time of one microsecond and a reaction time of ten microseconds.

For elliptic curves, Roetteler, Naehrig, Svore and Lauter (arXiv 1706.06752, 2017) found that computing a discrete logarithm on an n-bit prime curve needs about 9n + O(log n) logical qubits, and they concluded that at comparable classical security, ECC is an easier quantum target than RSA, because the keys are shorter. Notice the unit difference: those are logical qubits, while Gidney's headline is physical qubits including error-correction overhead. The two numbers cannot be compared directly.

EstimateTargetQubitsTimeKey assumptions
2019 estimate (as cited by Gidney)RSA-2048about 20 million physicalabout 8 hoursSurface-code model of that paper
Gidney, May 2025RSA-2048fewer than 1 million physicalless than a weekSquare grid, 0.1% gate error, 1 µs cycle, 10 µs reaction time
Roetteler et al., 2017ECC over n-bit prime curveabout 9n + O(log n) logicalToffoli count cubic in n times a log factorLogical-level count, no error-correction overhead

Resource estimates for Shor-type attacks, as stated in the abstracts I opened. These are estimates under stated assumptions, not predictions of when a machine will exist.

For perspective, the largest machines announced to date have hundreds to a little over a thousand physical qubits with error rates well above the idealized assumptions, and none runs full error correction at scale. The gap between that and a million high-quality qubits is the whole story of the hardware lessons in this course. The honest summary is that nobody can responsibly state a date. What the estimates show is that the required machine has become steadily smaller as algorithms and error-correction methods improved, which is a reason to treat the migration as a planning problem rather than a prediction problem.

Mosca's inequality

The standard way to turn this uncertainty into a decision is a simple inequality attributed to Michele Mosca, and the NIST report cites it. Let x be the number of years your data must remain secret, y the number of years your organization needs to migrate to quantum-safe cryptography, and z the number of years until a cryptographically relevant quantum computer exists. If x + y > z, there is a period during which data protected by vulnerable cryptography is still sensitive and attackable. In plain words, you are in trouble if your secrecy requirement plus your migration time exceeds the time you have.

Casex (secrecy years)y (migration years)z (assumed years to machine)x + yExposed?
Web session tokens05105No (5 ≤ 10)
Customer records751012Yes (12 > 10)
Health records3081538Yes (38 > 15)
Short-lived firmware key32155No
Government archive50103060Yes

Worked cases for Mosca's inequality. The values of z are assumptions chosen to illustrate the test; nobody knows z, and the inequality is a way to see which kinds of data are sensitive to the choice.

The useful lesson from the table is not any single row. It is that the test is dominated by x and y, which you control or can measure, so a sensible organization can decide that its long-lived data must be protected with quantum-safe key establishment now, while short-lived sessions can wait a little longer. Changing the assumed z from 15 to 30 years rescues the customer-record case and the health-record case only if x + y is below the new z, which for health records (38) it is not. That is the practical meaning of a long secrecy requirement.

The leading idea: hiding a secret behind noise (lattices)

Most of the new standards rest on a different kind of hard problem from factoring. The key idea is called Learning With Errors, LWE, introduced by Oded Regev. Start with a system of linear equations modulo a number q. If I give you the equations exactly, you solve them by Gaussian elimination in a fraction of a second, even with hundreds of unknowns. Now add a small random error to each right-hand side. Suddenly the system has no exact solution, and finding the hidden secret vector from the noisy equations appears to be extremely hard, even for a quantum computer. As far as anyone knows, there is no equivalent of Shor's trick, because there is no hidden periodic structure to extract.

The NIST standard FIPS 203 says that the security of ML-KEM is based on the presumed hardness of the Module Learning with Errors (MLWE) problem. The word ‘presumed’ is honest: nobody has proved it hard, in the same way that nobody has proved that factoring is hard. The confidence comes from decades of failed attacks and from theoretical connections to worst-case lattice problems.

A toy example you can check by hand

The numbers below are my own calculation with a tiny, completely insecure parameter set, to make the mechanism visible. Take q = 17 and a secret vector s = (5, 11, 2). A public matrix A has five rows, and each row gives one equation. The exact value of each equation is the dot product of the row with s, taken modulo 17. The noisy value b adds a small error e, chosen from {−1, 0, 1}.

Row of AExact A·s mod 17Error ePublic b = exact + e mod 17
(3, 14, 6)11+112
(9, 2, 12)606
(15, 7, 1)1−10
(4, 4, 10)16+10
(8, 13, 5)606

A toy LWE instance (my computation, q = 17). The public key is the matrix A and the vector b = (12, 6, 0, 0, 6). The secret s and the errors e are private.

To check the first row: 3·5 + 14·11 + 6·2 = 15 + 154 + 12 = 181, and 181 mod 17 = 181 − 170 = 11. With error +1 the public value is 12. Without the noise, anyone could solve the five equations for the three unknowns. With it, an attacker faces a puzzle where every equation is slightly wrong and nobody knows which way.

I ran an exhaustive search over all 17³ = 4,913 possible secrets, accepting any guess whose residuals on all five equations lie within ±1. It found two such secrets: the true one (5, 11, 2) and another, (8, 3, 11). This shows that a toy this small is ambiguous and trivially searchable, which is exactly why real parameters are larger. In ML-KEM, from the parameter table of FIPS 203, n = 256 coefficients per polynomial, q = 3329 and k is 2, 3 or 4 for the three parameter sets, so the secret has 256k coefficients. For k = 3 that is 768 numbers modulo 3329, and the raw size of the search space is 3329^768, which is about 10^2705 by my arithmetic. A brute-force search is not how the best attacks work, so this number is a sense of scale, not a security level; the real security levels come from the best known lattice-reduction attacks and are summarized by the NIST categories.

Encrypting one bit with the toy

Here is how the same structure encrypts a bit, still with the toy numbers. The sender picks a random subset of the rows, say rows 1, 3 and 4 (counting from 1). They add up those rows of A to get u = (5, 8, 0) modulo 17 and add up the matching entries of b to get 12 + 0 + 0 = 12. To send the bit 1, they add q/2, rounded down to 8, and the ciphertext is (u, v) with v = 20 mod 17 = 3; to send the bit 0, v stays 12.

The receiver, who knows s, computes v minus the dot product of u and s. Here u·s = 25 + 88 + 0 = 113, and 113 mod 17 = 11. For the bit 0 they get 12 − 11 = 1, a small number close to 0. For the bit 1 they get 3 − 11 = −8, which is 9 modulo 17, a number close to 8 (half of q). The decision rule is simple: near 0 means 0, near q/2 means 1. The leftover is just the sum of the three errors used (+1 + (−1) + 1 = 1), which is why the receiver sees 1 rather than 0. The noise is small enough not to cause a wrong decision but large enough to hide s from anyone who does not know it.

Why noise matters twice

The noise is what makes the problem hard for an attacker, and it is also the reason decryption can fail if parameters are chosen badly. FIPS 203 lists decapsulation failure rates of 2^-138.8 for ML-KEM-512, 2^-164.8 for ML-KEM-768 and 2^-174.8 for ML-KEM-1024, so failure is astronomically unlikely by design.

A second experiment, also my own: with the larger toy parameters n = 8, q = 97 and 16 public equations, I encrypted 2,000 random bits using random subsets of rows and decrypted with the secret. All 2,000 were decoded correctly. That is a demonstration of the mechanism, not of security: n = 8 is far too small to resist any real attack.

Real schemes add two refinements. First, the module structure: instead of plain numbers, the entries are polynomials of degree below 256 with coefficients modulo 3329, and the matrices are small (2 by 2, 3 by 3 or 4 by 4 over those polynomials). This makes the keys much smaller and the arithmetic fast through a number-theoretic transform. Second, the Fujisaki-Okamoto transformation turns a basic encryption scheme into one that stays secure against an attacker who can submit tampered ciphertexts. I describe it only by name, because working through its details is beyond this lesson.

The NIST standards: FIPS 203, 204 and 205

NIST began a public competition to select quantum-resistant algorithms in 2016, with cryptographers around the world submitting candidates and attacking each other's proposals. On 13 August 2024 NIST released the first three finalized standards, according to its announcement that I opened. They are the foundation of everything that follows.

StandardNameOriginal nameJobMathematical idea
FIPS 203ML-KEM (Module-Lattice-Based Key-Encapsulation Mechanism)CRYSTALS-KyberEstablishing a shared secret keyModule learning with errors (lattices)
FIPS 204ML-DSA (Module-Lattice-Based Digital Signature Algorithm)CRYSTALS-DilithiumDigital signatures, the primary choiceLattices
FIPS 205SLH-DSA (Stateless Hash-Based Digital Signature Algorithm)SPHINCS+Digital signatures, a backup with different assumptionsHash functions only

The three NIST standards released on 13 August 2024, as described in NIST's announcement.

Notice a design principle in that table. ML-DSA and SLH-DSA do the same job on purpose. NIST describes SLH-DSA as a backup to ML-DSA that uses a different mathematical approach. If someone discovered a devastating attack on lattices, the world would still have a signature standard whose security depends only on hash functions. The same logic appears in the key-establishment side: on 11 March 2025 NIST announced that it had selected a fifth algorithm, HQC, as a backup to ML-KEM. HQC is based on error-correcting codes rather than lattices, and the announcement says it is larger and needs more resources; a draft standard was expected about a year later, with finalization planned for 2027.

There is also a standard in progress for a second lattice signature scheme, FN-DSA, based on the algorithm FALCON, which is more compact than ML-DSA but harder to implement safely. The August 2024 announcement described a draft of that standard as planned; I did not open the draft itself, so check its current status on NIST's site.

Key encapsulation instead of encryption

ML-KEM is a key-encapsulation mechanism rather than a general public-key encryption scheme. The distinction is small but practical. In a KEM, the sender runs an encapsulation that takes the receiver's public key and produces two things at once: a random shared secret (32 bytes in ML-KEM) and a ciphertext that lets only the holder of the private key recover the same secret. That shared secret then keys a fast symmetric cipher such as AES-256-GCM. So post-quantum cryptography slots into the same place Diffie-Hellman occupies in protocols like TLS: it agrees a key, and the symmetric cipher does the bulk work.

The real sizes

Sizes are the biggest practical cost of the new standards. The ML-KEM numbers below are copied from Table 3 of FIPS 203 (opened in this project). The ML-DSA numbers are from the Open Quantum Safe project's documentation page, which I opened; I did not open FIPS 204 itself, so treat those as reported by a secondary source until you check the standard.

ML-KEM parameter setNIST categoryEncapsulation key (bytes)Decapsulation key (bytes)Ciphertext (bytes)Shared secret (bytes)
ML-KEM-5121800163276832
ML-KEM-768311842400108832
ML-KEM-1024515683168156832

Sizes from Table 3 of FIPS 203, with the security categories from Section 3.2 of the same document.

ML-DSA parameter setNIST levelPublic key (bytes)Secret key (bytes)Signature (bytes)
ML-DSA-442131225602420
ML-DSA-653195240323309
ML-DSA-875259248964627

ML-DSA sizes as listed on the Open Quantum Safe project's documentation page (secondary source; verify against FIPS 204).

To feel the difference, compare with classical sizes. An X25519 key-exchange public value is 32 bytes and an Ed25519 public key is 32 bytes; a raw ECDSA P-256 signature is 64 bytes; an RSA-2048 signature is 256 bytes. These classical sizes are standard values that I am quoting from general knowledge, not from a page I opened. Then the ratios are my own arithmetic:

ItemClassical sizePost-quantum sizeRatio (my arithmetic)
Key-exchange public value32 bytes (X25519)1184 bytes (ML-KEM-768 encapsulation key)37 times
Key-exchange reply32 bytes (X25519)1088 bytes (ML-KEM-768 ciphertext)34 times
Signature64 bytes (ECDSA P-256 raw)2420 bytes (ML-DSA-44)37.8 times
Signature256 bytes (RSA-2048)2420 bytes (ML-DSA-44)9.45 times
Public key for signatures32 bytes (Ed25519)1312 bytes (ML-DSA-44)41 times

Size ratios between classical and post-quantum primitives. The classical sizes are standard values from general knowledge.

In a hybrid ML-KEM-768 key exchange, the extra bytes on the wire are about 1184 + 1088 = 2272, which is small compared with a modern web page but significant for tiny devices, for protocols with strict packet limits and for certificate chains. A simplified chain that carries three signatures and two public keys would add about 3 × 2420 + 2 × 1312 = 9,884 bytes with ML-DSA-44, compared with roughly 3 × 64 + 2 × 64 = 320 bytes with raw ECDSA P-256 values (my simplified count, ignoring certificate formatting). That factor of about 31 is one of the main reasons the signature migration is considered harder than the key-exchange migration.

The speed is a different story. Lattice operations are mostly small integer arithmetic, and implementations of ML-KEM are generally fast, often faster than elliptic-curve operations on the same machine. I did not benchmark them in this project and do not quote numbers; check an independent benchmark for your platform.

Security categories

NIST describes security strength through categories rather than a single number of bits. The NIST report that I opened maps ML-KEM-512, 768 and 1024 to categories 1, 3 and 5, which correspond to the strength of searching for an AES key of 128, 192 and 256 bits respectively; and ML-DSA-44, 65 and 87 to categories 2, 3 and 5. The report names ML-KEM-768 as the recommended default. The practical advice is simple: use the default unless you have a specific policy that requires a higher category.

Signatures from hash functions alone: SLH-DSA

There is a completely different way to sign messages that does not need lattices or any number-theoretic problem. A hash function is a one-way scrambler that is believed to be hard to invert. Lamport showed in 1979 that a one-time signature scheme can be built from a hash function alone. The idea is easy to state. To sign one bit, you publish two hash values in your public key, one for 0 and one for 1, each the hash of a secret random string. To sign a 0 you reveal the secret string that hashes to the first value; to sign a 1 you reveal the other. A verifier hashes what you revealed and checks it against the public key. Because it only reveals one of the two secrets for each bit, the key can sign only one message safely.

To sign many messages you organize many one-time keys in a tree and sign with a different leaf each time; the public key is the root hash. SLH-DSA (based on SPHINCS+) uses a hyper-tree of such structures and, importantly, is stateless: the signer does not need to remember which leaves it has already used. That removes the biggest practical danger of older hash-based signatures, where reusing a one-time key by accident, for instance after restoring a backup, destroys security. The price is size and speed: signatures are large and signing is slow compared with ML-DSA. I did not open the FIPS 205 parameter tables in this project, so I do not quote its sizes here.

The NIST report that I opened also discusses two older stateful hash-based schemes, LMS and XMSS. They are smaller and faster but they require the signer to track state carefully, which is acceptable in controlled settings such as firmware signing from a hardware module and risky in general-purpose software. This is the reason the report points to them for firmware but not as a general replacement.

The case for diversity

Having both lattice and hash-based signatures standardized is deliberate. Lattice schemes are efficient and widely studied but rest on a young assumption. Hash-based signatures are bulky but rest on the most conservative assumption in cryptography. A cautious system can choose according to how long the signature must stay trustworthy.

Hybrid mode, crypto-agility and the migration timeline

Because lattice cryptography is much younger than RSA and elliptic curves, many engineers do not want to rely on it alone during the transition. The common answer is a hybrid: run a classical key exchange and a post-quantum key exchange side by side and combine both results into one key. An attacker must then break both. If the post-quantum scheme turns out to have a flaw, the classical one still protects against today's attackers; if a quantum computer arrives, the post-quantum part protects against it. The NIST report I opened permits hybrid approaches but describes them as generally temporary, a bridge rather than a destination.

The report also introduces the idea of crypto-agility, the ability of a system to swap algorithms without redesigning everything. In practice this means avoiding hard-coded algorithm identifiers, keeping key sizes and message formats flexible, and having an inventory of where cryptography is used. A system that can change an algorithm by configuration is far cheaper to migrate than one where RSA is buried in a hardware chip.

Date or milestoneWhat the document I opened saysStatus of my verification
13 Aug 2024FIPS 203, 204 and 205 released as the first finalized standards; NIST encourages integrating them nowNIST announcement opened
11 Mar 2025HQC selected as a backup key-encapsulation algorithm; finalization planned for 2027NIST announcement opened
After 2030RSA, ECDSA, EdDSA, finite-field and elliptic-curve Diffie-Hellman, MQV deprecatedNIST IR 8547 text opened; document dated October 2026, draft or final label not shown
After 2035The same quantum-vulnerable algorithms disallowedSame document
31 Dec 2030 and 31 Dec 2031Federal deadlines for post-quantum key establishment and signatures in priority systems, as cited by the NIST report from an executive order and an OMB memorandumI did not open those two documents; verify them before relying on the dates

A timeline assembled from the documents opened in this project, with a note on how well each item is verified.

Where to start

A realistic migration is a project with stages, and the order matters. The following sequence is my own synthesis of the NIST guidance; it is not an official checklist.

  1. Make an inventory. Find every place your systems use public-key cryptography: TLS endpoints, VPNs, SSH, code signing, document signing, certificates, hardware tokens, databases with encrypted fields, messaging, backups. You cannot migrate what you cannot see.
  2. Classify by lifetime. Using Mosca's inequality, mark data that must stay secret for many years. Those flows need quantum-safe key establishment first because of the harvest-now risk.
  3. Upgrade libraries and platforms. Many mainstream cryptographic libraries and TLS implementations have been adding ML-KEM, often as a hybrid. Check the version notes of your own stack rather than assuming; support differs between vendors and changes quickly.
  4. Plan signatures separately. Signature migration touches certificate authorities, trust stores, firmware and long-lived documents, and the larger sizes can break assumptions in protocols. Start by identifying where signatures are long-lived.
  5. Test for size problems. Larger handshakes can exceed packet limits, trigger fragmentation or break middleboxes that assume small messages. Test before rollout, not after.
  6. Keep symmetric strength sensible. Prefer AES-256 and SHA-256 or better; there is no need to replace them.

What an individual or a small team can do

Most people do not choose algorithms themselves; they choose software. The sensible actions for an individual are modest. Keep operating systems, browsers and apps updated, because post-quantum support arrives through updates. Prefer services that publish their post-quantum plans. Do not store secrets that must last decades in a form protected only by classical public-key encryption if you can avoid it. And be cautious of any product that sells ‘quantum-proof’ protection without naming a NIST-standardized algorithm. The name of a standard (ML-KEM, ML-DSA, SLH-DSA) is the thing to look for.

Developers who maintain their own systems should use a well-reviewed library rather than implementing any of these algorithms from a paper. Post-quantum schemes are subtle to implement; side-channel leaks, such as timing differences, have broken implementations of otherwise sound algorithms. The same advice applies to classical cryptography, but the newer code has had less time to be hardened.

Common misconceptions

  • “Quantum computers break all encryption.” They do not. Shor's algorithm breaks the public-key systems based on factoring and discrete logarithms. Symmetric encryption and hashing are only weakened by a quadratic factor, and the standard answer is to use large enough keys.
  • “Post-quantum cryptography needs a quantum computer.” It does not. It runs on ordinary hardware. Quantum key distribution is a different technology.
  • “Quantum-safe means provably unbreakable.” It does not. The new schemes are believed to resist known quantum attacks, but their security rests on assumptions that could, in principle, turn out to be wrong. This is why NIST standardizes alternatives from different mathematical families, and why hybrids are used during the transition. One cautionary example from the competition itself: some candidate schemes were broken by classical attacks during the evaluation, which is precisely the purpose of a long public process (this is general knowledge; I did not open a source for the details in this project).
  • “We can wait until a quantum computer is announced.” The migration is slow and the harvest-now risk applies to data recorded in the meantime. Mosca's inequality is the way to reason about this, and for long-lived data it says to start early.
  • “The date is known.” No one knows when a cryptographically relevant quantum computer will exist. Published estimates of the needed size have fallen over time, as the Gidney paper shows, and hardware progress is real but uneven. Treat any specific year you read as a forecast with a large uncertainty, not as a fact.

Check your understanding

Check yourself

Which two families of public-key cryptography does Shor's algorithm break, and what is the one-line reason that larger keys do not save them?

It breaks factoring-based systems (RSA) and discrete-logarithm-based systems (finite-field and elliptic-curve Diffie-Hellman and signatures). The attack runs in polynomial time, so lengthening the key increases the attacker's work only polynomially while the defender's work also grows; the security margin does not improve in the way it does against an exponential-time attack.

Grover's algorithm gives a square-root speed-up on key search. How many iterations does it need against a 256-bit key, and why is that not alarming?

About 2^128 iterations. That is comparable with the classical cost of attacking a 128-bit key, which is considered safe, and Grover's iterations are sequential, so adding machines helps only by a square-root factor.

In the toy LWE example, why does the receiver see 1 instead of 0 for the bit 0?

Because the three public values used by the sender each contained a small error (+1, −1 and +1 in the toy numbers), and their sum is 1. The receiver's result is the message bit times q/2 plus the total accumulated noise, and the decision rule tolerates small noise.

Apply Mosca's inequality: data must stay secret for 20 years, migration takes 6 years, and you assume a machine in 15 years. Are you exposed?

x + y = 26, which is greater than 15, so yes. The data is exposed for about 11 years under that assumption.

Why does NIST standardize both ML-DSA and SLH-DSA?

They rely on different mathematics (lattices versus hash functions). If a weakness is found in one family, the other remains available; SLH-DSA is described by NIST as a backup to ML-DSA.

A vendor advertises “quantum-proof encryption” without naming any algorithm. What should you ask?

Which NIST-standardized algorithm (for example ML-KEM for key establishment) is used, in which mode (hybrid or pure) and in which library version. Without a named standard, the claim cannot be checked.

References and further reading

Standards details were read from NIST pages and the FIPS 203 PDF opened in this project. Items I could not open directly are marked in the text.

  1. NIST Releases First 3 Finalized Post-Quantum Encryption Standards (NIST news, 13 August 2024) Opened. FIPS 203 (ML-KEM), FIPS 204 (ML-DSA), FIPS 205 (SLH-DSA); a draft FIPS for FN-DSA planned; advice to start integrating now.
  2. NIST Selects HQC as Fifth Algorithm for Post-Quantum Encryption (NIST news, 11 March 2025) Opened. HQC chosen as a code-based backup to ML-KEM; larger and more resource-hungry; finalization planned for 2027.
  3. FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard (NIST) Opened. Parameter table, key and ciphertext sizes, decapsulation failure rates, MLWE security statement.
  4. NIST IR 8547: Transition to Post-Quantum Cryptography Standards (NIST, document dated October 2026) Opened. Deprecation after 2030 and disallowance after 2035 of quantum-vulnerable algorithms; hybrids; crypto-agility; harvest now, decrypt later; security categories.
  5. How to factor 2048 bit RSA integers with less than a million noisy qubits (arXiv (C. Gidney, May 2025)) Abstract opened. Fewer than a million noisy qubits and under a week, versus 20 million qubits and 8 hours in 2019; stated assumptions.
  6. Quantum resource estimates for computing elliptic curve discrete logarithms (arXiv (Roetteler, Naehrig, Svore, Lauter, 2017)) Abstract opened. About 9n + O(log n) qubits for an n-bit prime curve; ECC an easier target than RSA at comparable classical security.
  7. ML-DSA in liboqs (Open Quantum Safe project) Opened. Secondary source for ML-DSA key and signature sizes; verify against FIPS 204.