Cryptography · PQC primer

Post-Quantum Cryptography

A sufficiently large quantum computer breaks RSA, Diffie-Hellman, and elliptic curves. We don't have one yet. We will, eventually, and the encrypted traffic adversaries are storing today will be readable when we do.

Everything that keeps the modern web confidential — TLS key exchange, signed software updates, signed firmware, SSH key authentication, code-signing, the entire PKI — runs on three families of math problems: integer factoring (RSA), discrete log (Diffie-Hellman), and elliptic-curve discrete log (ECDH, ECDSA). All three of those problems are easy for a sufficiently large quantum computer.

That computer does not exist yet. The largest quantum systems today have a few hundred to roughly a thousand noisy qubits; breaking RSA-2048 with Shor's algorithm needs millions of error-corrected qubits, which is several engineering revolutions away. But it's not impossible. And cryptographic transitions take a decade. So we start now.

Two quantum algorithms that matter

1. Shor's algorithm (1994)

Peter Shor showed that a quantum computer can factor large integers and compute discrete logarithms in polynomial time rather than the sub-exponential time classical computers need. The implication is immediate and total: RSA, Diffie-Hellman, and elliptic-curve cryptography all rely on these problems being hard. Shor's algorithm makes them easy — once you have a big enough quantum computer.

"Big enough" is the open question. Recent estimates put RSA-2048 at roughly 20 million noisy qubits with current quantum error-correction overhead, or about 4,000 logical (error-corrected) qubits. Real systems today have ~1,000 physical qubits with no usable error correction. The gap is large. It is also closing.

2. Grover's algorithm (1996)

Grover's gives a quadratic speedup for unstructured search. Concretely: brute-forcing an n-bit key takes 2^n classical operations but only 2^(n/2) quantum ones. The implication is subtler than Shor's:

The fix for Grover is also simple: double the key size. Symmetric crypto and hashes survive the quantum era essentially intact, just with bigger keys. This is why your TLS connection's AES bulk cipher is far less worrying than its RSA/ECDH key exchange.

What breaks, what doesn't

PrimitiveWhat it doesQuantum-era status
RSA (any size)Key exchange, signingBroken by Shor
Diffie-Hellman (finite field)Key exchangeBroken by Shor
ECDH (Curve25519, P-256, etc.)Key exchangeBroken by Shor
ECDSA, Ed25519SigningBroken by Shor
AES-128Symmetric encryptionWeakened to ~64-bit by Grover — upgrade to AES-256
AES-256Symmetric encryptionSafe (effective 128-bit)
ChaCha20Symmetric encryptionSafe (256-bit key already)
SHA-256 / SHA-3HashingSafe (128-bit collision/preimage)
HMAC-SHA-256Authenticated hashingSafe
Argon2, bcrypt, scryptPassword hashingSafe (memory-hard)

Notice the pattern: asymmetric crypto is the problem; symmetric crypto is mostly fine. That's why the entire post-quantum migration focuses on key exchange and signatures, not on the bulk encryption that follows them.

"Harvest now, decrypt later"

The threat that makes PQC urgent today. Adversaries are recording encrypted internet traffic now and storing it. When sufficiently large quantum computers exist — whether that's 2030, 2040, or 2050 — they will decrypt those recordings retroactively. Anything that needs to remain confidential for that long is already at risk.

For ephemeral data — a weather forecast, a stock ticker — harvest-now-decrypt-later is uninteresting. For data with multi-decade sensitivity:

For these, the migration timeline is now. Not in 2035. The cost of being slow is that every encrypted message sent today gets decrypted when capability arrives.

NIST's standards (finalized 2024)

NIST ran a public competition from 2016 to 2024, evaluating 82 submissions across multiple rounds of cryptanalysis. The final standards, published August 13, 2024:

FIPS 203 · Key Encapsulation (replaces RSA / ECDH for key exchange)

ML-KEM (Module-Lattice-Based Key Encapsulation, formerly CRYSTALS-Kyber)

Lattice-based. Hardness based on the Learning With Errors (LWE) problem — finding a "noisy" linear equation in a high-dimensional lattice. Believed quantum-resistant; no known polynomial-time quantum attack.

Public key
800 – 1,568 B
Ciphertext
768 – 1,568 B
Variants
ML-KEM-512/768/1024
FIPS 204 · Digital Signatures (replaces ECDSA / RSA-signing)

ML-DSA (Module-Lattice-Based Digital Signature, formerly CRYSTALS-Dilithium)

Lattice-based. Same family as ML-KEM. Larger signatures than ECDSA but fast verification — well-suited for software updates and code signing.

Public key
1,312 – 2,592 B
Signature
2,420 – 4,627 B
Variants
ML-DSA-44/65/87
FIPS 205 · Hash-Based Signatures (conservative backup signing standard)

SLH-DSA (Stateless Hash-Based Digital Signature, formerly SPHINCS+)

Built only on the security of hash functions — no number theory at all. Smallest attack surface; signatures are slow and large, but it survives even if lattice cryptography is later broken. The "belt and suspenders" choice for high-assurance signing.

Public key
32 – 64 B
Signature
7,856 – 49,856 B
Speed
~100× slower than ML-DSA

A fourth algorithm, FALCON (now FN-DSA), is in the pipeline as FIPS 206 for signature use cases needing smaller signatures than ML-DSA. NIST also continues evaluating additional KEM candidates as backups in case lattice schemes ever fall.

"Why not just one?"

A reasonable question. The answer: diversification. All three NIST standards rely on different mathematical foundations:

If a major flaw is found in lattice cryptography over the next decade (it has been heavily studied for 30 years, but nothing is certain), SLH-DSA remains intact. The fallback already exists, deployable, standardized. This is a cryptographer's defensive posture: never have one foundational assumption holding up everything.

Hybrid deployment

The recommended near-term pattern is hybrid: run a classical algorithm (X25519, P-256) and a post-quantum algorithm (ML-KEM) in parallel, combine the resulting keys. The connection is safe as long as either is unbroken. If ML-KEM is later found to have a flaw, the classical algorithm still protects you; if Shor arrives tomorrow, ML-KEM still protects you.

This is what TLS 1.3 deployments are doing in 2024–2025. Google deployed X25519MLKEM768 across Chrome and most Google properties starting in 2024. Cloudflare followed. Apple announced PQ3 for iMessage in early 2024 using a similar hybrid construction. Most TLS handshakes today are already post-quantum-hybrid.

A timeline

1994
Shor's algorithm published, demonstrating that quantum computers can factor and solve discrete logs in polynomial time.
1996
Grover's algorithm published — quadratic speedup for unstructured search.
2016
NIST opens the PQC standardization competition. 82 submissions.
2022
NIST announces selected algorithms: CRYSTALS-Kyber, CRYSTALS-Dilithium, FALCON, SPHINCS+.
2023
National Security Memorandum 10 directs US federal agencies to begin inventorying cryptography and planning migration.
2024
NIST publishes FIPS 203 (ML-KEM), FIPS 204 (ML-DSA), FIPS 205 (SLH-DSA) — final standards. Google enables hybrid X25519MLKEM768 in Chrome by default.
2025
CNSA 2.0 timeline: US national-security systems begin PQC-only deployments for software/firmware signing.
2030
CNSA 2.0 target: PQC preferred for all national-security systems.
2035
CNSA 2.0 mandate: classical algorithms (RSA, ECDH, ECDSA) deprecated for new US national-security deployments. Realistic horizon for general internet replacement.

What this means operationally

The point

Post-quantum cryptography is not science fiction. The math has been studied for 30 years. The standards are final. The first migrations are underway in browsers and operating systems. The CRQC (Cryptographically Relevant Quantum Computer) may arrive in 5 years or in 30 — nobody knows — but the harvest-now-decrypt-later problem makes it today's problem, not a future-Brian's problem.

The practical move for most organizations in 2025 is straightforward: inventory crypto, prefer agile APIs, enable hybrid TLS as it ships, and migrate long-lived signature roots to hash-based schemes. The technology is ready; the work is mostly logistical.

References

Formatted in APA 7.

  1. National Institute of Standards and Technology. (2024). FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard. https://csrc.nist.gov/pubs/fips/203/final
  2. National Institute of Standards and Technology. (2024). FIPS 204: Module-Lattice-Based Digital Signature Standard. https://csrc.nist.gov/pubs/fips/204/final
  3. National Institute of Standards and Technology. (2024). FIPS 205: Stateless Hash-Based Digital Signature Standard. https://csrc.nist.gov/pubs/fips/205/final
  4. National Security Agency. (2022). Announcing the Commercial National Security Algorithm Suite 2.0 (CNSA 2.0). https://www.nsa.gov/Press-Room/News-Highlights/Article/Article/3148990/
  5. Shor, P. W. (1997). Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. SIAM Journal on Computing, 26(5), 1484–1509. https://doi.org/10.1137/S0097539795293172
  6. Grover, L. K. (1996). A fast quantum mechanical algorithm for database search. Proceedings of the 28th Annual ACM Symposium on Theory of Computing, 212–219. https://doi.org/10.1145/237814.237866
  7. Cybersecurity and Infrastructure Security Agency. (2024). Post-quantum cryptography initiative. CISA. https://www.cisa.gov/quantum
  8. Google. (2024). Protecting Chrome traffic with hybrid Kyber KEM. Chromium Blog. https://security.googleblog.com/2023/08/protecting-chrome-traffic-with-hybrid.html