White Paper 2 of 7 · Quantum-Safe Security Series
Post-Quantum Cryptography Explained
What Replaces RSA — and Why It Works
In this paper
In White Paper 1, we established the threat: Shor’s algorithm can break RSA, Diffie-Hellman, and Elliptic Curve Cryptography on a sufficiently powerful quantum computer, and “harvest now, decrypt later” attacks mean the clock is already running. This paper answers the obvious next question: what replaces them?
The answer is Post-Quantum Cryptography — a family of algorithms that run on ordinary classical hardware, require no quantum infrastructure, and are based on mathematical problems that neither classical nor quantum computers can efficiently solve. These are not provisional fixes or stopgaps. As of 2024, NIST has finalized the first federal PQC standards. The migration is not a future project. It is a present-tense engineering program.
This paper explains the mathematics behind PQC at an intuitive level, walks through the standardized algorithm families, maps the regulatory mandates engineers in defense and federal environments are already accountable to, and closes with an honest assessment of what PQC does — and does not — solve.
1. What Makes a Cryptosystem Quantum-Safe?
All practical cryptography is built on computational hardness — the idea that certain mathematical problems are easy to create but extraordinarily difficult to reverse. RSA, for instance, relies on the fact that multiplying two large primes is trivial, but factoring the product back into those primes is computationally infeasible. That asymmetry is the security.
Quantum computers do not break all hard problems. They break specific categories of them. Shor’s algorithm efficiently solves the Hidden Subgroup Problem, which covers integer factorization and discrete logarithms — the foundations of RSA, Diffie-Hellman, and ECC. Grover’s algorithm provides a quadratic speedup for unstructured search, weakening symmetric encryption. But neither algorithm provides any meaningful advantage against a different class of hard problems: those based on lattices, error-correcting codes, hash functions, and certain algebraic structures.
This is the insight that makes PQC possible. You do not have to redesign cryptography from scratch. You have to swap the mathematical foundation — replace problems that Shor’s algorithm can solve with problems it cannot. The broader security model — public/private key pairs, digital signatures, key exchange protocols — remains architecturally intact. The underlying math changes. The systems built on top of it do not have to.
A quantum-safe cryptosystem must satisfy two conditions. First, no known quantum algorithm solves the underlying hard problem efficiently. Second, the problem must remain hard on classical computers as well — a quantum-resistant algorithm that is easily broken classically provides no security. The NIST standardization process, described in the next section, tested candidate algorithms against both classical and quantum cryptanalysis over eight years before selecting standards.
2. The Standardization Landscape: NIST and CNSA 2.0
The NIST PQC Process (2016–2024)
In 2016, NIST launched a public competition to identify and standardize quantum-resistant cryptographic algorithms. Eighty-two candidates were submitted from research teams around the world. Over the following eight years, the global cryptography community subjected them to rigorous public cryptanalysis — trying, systematically, to break each one. Some fell. In 2022, SIKE, a finalist based on isogeny mathematics, was broken by a classical attack running on a laptop in under an hour. That failure was not a flaw in the process; it was the process working exactly as intended.
In August 2024, NIST published the first three finalized standards:
- FIPS 203 (ML-KEM, formerly CRYSTALS-Kyber) — key encapsulation, the mechanism used to establish shared encryption keys
- FIPS 204 (ML-DSA, formerly CRYSTALS-Dilithium) — digital signatures for authentication and software signing
- FIPS 205 (SLH-DSA, formerly SPHINCS+) — hash-based digital signatures, a conservative alternative based solely on hash function security
A fourth standard, FIPS 206 (FN-DSA, formerly FALCON), was finalized in late 2024 as a second lattice-based signature option with smaller signature sizes. NIST IR 8547 establishes the deprecation schedule: RSA and elliptic-curve algorithms are deprecated for new federal systems after 2030 and disallowed entirely — including for legacy interoperability — after 2035.
CNSA 2.0 — The NSA’s Mandate for National Security Systems
Operating in parallel with NIST is a separate, stricter mandate. In September 2022, the NSA published the Commercial National Security Algorithm Suite 2.0 (CNSA 2.0), a cybersecurity advisory that specifies the quantum-resistant algorithms required for all National Security Systems — DoD networks, Intelligence Community systems, and the cleared defense contractors that support them.
CNSA 2.0 closely mirrors NIST’s selections but imposes tighter parameter requirements and harder deadlines. Only the highest NIST security levels are permitted. ML-KEM-512 or ML-DSA-44, for example, are not CNSA 2.0 compliant; the standard requires ML-KEM-1024 and ML-DSA-87. The required algorithm suite is:
- ML-KEM-1024 (FIPS 203) — key establishment
- ML-DSA-87 (FIPS 204) — digital signatures for all general use cases
- LMS / XMSS (NIST SP 800-208) — hash-based signatures specifically for firmware and software signing
- AES-256 (FIPS 197) — symmetric encryption; already quantum-safe
- SHA-384 / SHA-512 (FIPS 180-4) — hashing
Notably, CNSA 2.0 does not permit SLH-DSA (FIPS 205) for NSS use, creating a concrete divergence from the civilian federal standard. Engineers working across both NSS and FCEB environments need to track both. The CNSA 2.0 FAQ, updated to Version 2.1 in December 2024, provides detailed implementation guidance.
CNSA 2.0 Transition Timeline
CNSA 2.0 stages its deadlines by system type, reflecting different risk profiles and engineering complexity:
- Software and firmware signing: Transition immediately. Prefer CNSA 2.0 by 2025; exclusively use by 2030.
- Web browsers, servers, and cloud services: Prefer CNSA 2.0 by 2025; exclusively use by 2033.
- Network equipment (VPNs, routers): Prefer CNSA 2.0 by 2026; exclusively use by 2030.
- Operating systems: Prefer CNSA 2.0 by 2027; exclusively use by 2033.
- Constrained devices, large PKI systems: Prefer CNSA 2.0 by 2030; exclusively use by 2033.
Starting January 1, 2027, all new NSS acquisitions must support CNSA 2.0 by default — a procurement gate that vendors supplying hardware and software to national security customers are already accountable to. Organizations in the defense supply chain operating under DFARS clauses and CMMC requirements are within CNSA 2.0’s scope even if they are not themselves federal agencies.
The practical read: if your systems touch NSS, classified networks, or DoD supply chains, the CNSA 2.0 deadlines are not aspirational targets. They are contract requirements.
3. The Algorithm Families
Encryption key exchange has never been static. It has always evolved in response to increasing computational power and emerging threat models. Finite-Field Diffie-Hellman (FFDH) established the principle of two parties agreeing on a shared secret over an untrusted channel. As classical computing advanced, FFDHE introduced ephemeral keys to provide forward secrecy — ensuring that compromise of a long-term key could not retroactively decrypt past sessions. Elliptic Curve Diffie-Hellman Ephemeral (ECDHE) achieved the same security guarantees with dramatically smaller keys, enabling practical deployment across constrained environments and high-throughput systems. Each step was driven by the same imperative: maintain confidentiality and forward secrecy as adversarial capabilities grow. ML-KEM is the next step in that same progression. The goal has not changed — secure key agreement with forward secrecy. What has changed is the threat model: the adversary now includes a quantum computer. The algorithms below represent the mathematical foundations that keep that goal achievable under this new constraint.
NIST’s final standards draw from two primary mathematical families: lattice-based and hash-based. Two additional families — code-based and isogeny-based — appear in the broader PQC landscape and are worth understanding, particularly as cautionary context.
Lattice-Based Cryptography (ML-KEM, ML-DSA)
Lattice-based algorithms are the primary workhorses of the NIST standards and the backbone of CNSA 2.0. Both ML-KEM and ML-DSA are built on a problem called Learning With Errors (LWE), introduced by Oded Regev in 2005.
A lattice, in this context, is a regular grid of points in very high-dimensional space — think of a checkerboard, but extended to hundreds or thousands of dimensions. Certain geometric problems on these lattices are extraordinarily hard to solve: finding the shortest vector in the lattice, or finding the lattice point closest to an arbitrary target point, does not yield to any known classical or quantum algorithm when the dimensions are large enough.
LWE translates this geometric hardness into an algebraic form. The key generation process produces a structured equation, then deliberately adds a small amount of random noise — a perturbation. The public key is the noisy equation. Recovering the secret from it requires solving a system of noisy linear equations, which is as hard as the underlying lattice problem. Easy to create; computationally infeasible to invert. This is the same asymmetry that powers RSA — but on mathematical ground where Shor’s algorithm has no foothold.
ML-KEM uses a ring-structured variant called Module-LWE to achieve compact key and ciphertext sizes suitable for key encapsulation — the mechanism by which two parties establish a shared secret over an untrusted channel. It is a drop-in functional replacement for ECDH key exchange.
ML-DSA applies a related construction for digital signatures, enabling authentication of messages, software, and firmware. It is designed to replace ECDSA and RSA signatures.
The primary engineering tradeoff: lattice-based keys and signatures are larger than their classical counterparts. An ML-KEM-1024 public key is 1,568 bytes — compared to 64 bytes for a P-256 ECDH key. Signature sizes for ML-DSA-87 run to approximately 4,627 bytes versus 64 bytes for ECDSA P-256. For most applications, these sizes are manageable. For constrained devices and high-throughput systems, they require careful evaluation.
Hash-Based Signatures (SLH-DSA / SPHINCS+)
Hash-based signature schemes are the most conservative option in the PQC portfolio — and deliberately so. SLH-DSA’s security rests entirely on the collision resistance of cryptographic hash functions, which is among the most thoroughly studied and trusted properties in all of cryptography.
The construction chains together many one-time signature keys using a Merkle tree structure. Each leaf of the tree is a one-time key pair; the tree root serves as the public key. Signing a message uses one leaf and reveals the authentication path up the tree. Security holds as long as the hash function is collision-resistant — a property that Grover’s algorithm weakens only quadratically, making SHA-256 or SHA-3 with sufficient output length quantum-safe.
The tradeoffs: signature sizes are large (SLH-DSA-SHA2-256f produces signatures of about 49 kilobytes), and signing is computationally slower than lattice-based alternatives. SLH-DSA is best suited as a conservative fallback or for applications where trust in the underlying math matters more than performance. It is not included in CNSA 2.0 for NSS, though it is an approved option under NIST standards for civilian federal use.
Code-Based Cryptography
Code-based cryptography is among the oldest post-quantum proposals. The McEliece cryptosystem, introduced in 1978, is based on the difficulty of decoding a general linear error-correcting code — a problem with no known efficient classical or quantum solution.
Its age is both its strength and its limitation. Decades of cryptanalysis have not broken the underlying problem, making it one of the most battle-tested PQC foundations. The limitation is key size: a McEliece public key can be several hundred kilobytes to over a megabyte, depending on the parameter set. This makes it impractical for many deployment scenarios. NIST selected Classic McEliece as an alternate key encapsulation candidate but did not include it in the initial standardization round. It remains relevant as a conservative backup, particularly in applications with relaxed bandwidth constraints.
Isogeny-Based Cryptography — and a Critical Lesson
Isogeny-based cryptography, built on maps between elliptic curves, was once considered among the most promising PQC families due to its compact key sizes. SIKE (Supersingular Isogeny Key Encapsulation) was a NIST finalist. In July 2022, it was broken by a classical attack — not a quantum attack — developed by a single researcher in a few days, running on an ordinary laptop.
The SIKE break is an essential lesson for engineers evaluating PQC. New mathematical problems do not have the decades of cryptanalytic scrutiny that RSA and ECC have accumulated. A problem that appears hard today may fall to an unexpected classical technique tomorrow. This is precisely why NIST ran an eight-year public competition rather than selecting algorithms quickly — and why cryptographic agility, the ability to swap algorithms without replacing entire systems, is a design requirement, not a nice-to-have.
4. How Lattice Math Actually Works: An Engineer’s Intuition
Formal mathematical treatments of lattice cryptography require graduate-level linear algebra. This section does not attempt that. Instead, it builds the intuition that lets an engineer understand why lattice problems are hard, why Shor’s algorithm cannot touch them, and why they make a sound foundation for cryptography.
The Geometry of the Problem
Picture a two-dimensional grid — a perfectly regular lattice of points, like graph paper. Now pick a point near the origin of that grid but not exactly on it. The “closest vector problem” (CVP) asks: which lattice point is closest to your target? In two dimensions, this is trivially easy to solve by eye. Extend the lattice to 500 or 1,000 dimensions, and the problem becomes computationally intractable. You cannot visualize it, and no known algorithm — classical or quantum — solves it efficiently at high dimensions.
This high-dimensional hardness is the geometric foundation of lattice cryptography. The secret key corresponds to knowing the “short” basis vectors of the lattice — the ones that make navigation easy. The public key corresponds to a complicated, scrambled description of the same lattice using very long basis vectors. Anyone holding the scrambled description can use the public key, but recovering the short basis — the secret — from it requires solving a hard lattice problem.
Why Shor’s Algorithm Cannot Help
Shor’s algorithm works by finding hidden periodicity — it exploits the fact that modular exponentiation, the operation underlying RSA and discrete logarithm problems, has a periodic structure that a quantum Fourier transform can efficiently detect. Strip away the mathematics, and Shor’s is fundamentally a period-finding algorithm.
Lattice problems have no such periodicity to exploit. The closest vector problem and the Learning With Errors problem are not periodic functions. They are geometric and algebraic problems whose hardness comes from high-dimensional structure, not from cyclic group arithmetic. Shor’s quantum Fourier transform finds nothing useful. No other known quantum algorithm provides meaningful advantage against these problems either — and despite significant research incentive, none has emerged in the decades since lattice cryptography was proposed.
Learning With Errors: A Concrete Picture
Imagine you receive a message that says: “The answer to question 1 is 14. The answer to question 2 is 7. The answer to question 3 is 23.” Each answer is a linear combination of a secret set of numbers — but each one has a small random error added. You have many such equations, all slightly wrong. Recovering the underlying secret from this noisy system is the Learning With Errors problem.
Constructing the system is easy: pick a secret, compute the linear combinations, add noise, publish the results. Inverting it — recovering the secret from the noisy equations — is hard in exactly the same way that solving the closest vector problem in a high-dimensional lattice is hard. The connection is provably tight: an efficient algorithm for LWE would yield an efficient algorithm for hard lattice problems, and vice versa.
This tightness matters for cryptographers because it means the security of ML-KEM and ML-DSA is not resting on ad hoc hope. It reduces to a well-studied geometric problem with decades of failed attacks behind it.
5. Implementation Reality: What the Migration Actually Looks Like
Understanding the mathematics is necessary but not sufficient. Engineers deploying PQC face concrete implementation decisions that are independent of algorithm selection. This section covers the four that matter most.
Cryptographic Agility
The SIKE break demonstrated that mathematical assumptions can fail unexpectedly. The engineering response is cryptographic agility: designing systems so that algorithms can be swapped without requiring full rewrites of the systems built on top of them.
In practice, this means abstracting cryptographic operations behind interfaces rather than hardcoding specific algorithm implementations throughout a codebase. A system that calls “key_encapsulate()” and lets configuration determine whether that means ML-KEM-768 or ML-KEM-1024 is agile. A system with raw Kyber API calls scattered across a thousand source files is not. CNSA 2.0’s FAQ explicitly notes that future updates to the standard are expected as the field matures — systems without agility will face significant rework costs when those updates arrive.
Hybrid Deployment During Transition
The current best practice for PQC deployment is not to replace classical algorithms but to run them in parallel — a hybrid approach that establishes keys or signatures using both a classical algorithm and a PQC algorithm, with security depending on both. A connection secured by both ECDH P-256 and ML-KEM-768 is broken only if both algorithms fail simultaneously.
This matters for two reasons. First, it provides a safety net against unexpected PQC failures during the transition period, when the new algorithms have less real-world deployment history than their classical counterparts. Second, it satisfies compliance in environments where existing standards still require classical algorithm support while newer guidance mandates PQC.
Major technology platforms have already deployed hybrid PQC in production. Google, Cloudflare, and AWS have been running hybrid TLS key exchange using X25519 + ML-KEM in their infrastructure since 2023. The IETF has published draft RFCs for hybrid key exchange in TLS 1.3 and IKEv2, which are tracking toward finalization in 2026–2027.
Performance Tradeoffs
PQC algorithms impose real costs that engineers must evaluate for their specific deployment contexts:
- Key and ciphertext size: ML-KEM-1024 public keys are approximately 1,568 bytes; ML-DSA-87 signatures are approximately 4,627 bytes. Both are substantially larger than ECDH/ECDSA equivalents. In TLS handshakes, certificate chains, or bandwidth-constrained environments, this matters.
- Computational performance: On modern hardware, ML-KEM key generation and encapsulation are fast — comparable to or faster than ECDH. ML-DSA signing is slower than ECDSA but still in the range of milliseconds on standard server hardware. Hash-based SLH-DSA is significantly slower for signing.
- Constrained devices: IoT devices, embedded systems, and hardware security modules with limited RAM and processing power face the greatest challenges. Larger key sizes may require hardware redesigns or extended migration timelines.
TLS and PKI Implications
For most organizations, the most visible manifestation of PQC migration will be in TLS certificates and public key infrastructure. Certificate authorities are beginning to issue ML-DSA certificates; browsers and servers are negotiating ML-KEM key exchange. The larger signature sizes affect certificate chain validation time and TLS handshake bandwidth. Intermediate CAs and root stores will need updating. OCSP and CRL infrastructure will carry larger signatures.
Organizations should audit their TLS stack, their certificate management workflows, and their PKI dependencies as a first step — these are typically the most visible and most auditable cryptographic surfaces.
6. What PQC Doesn’t Solve
Post-quantum cryptography is a necessary component of a quantum-safe security posture. It is not a complete solution by itself, and engineers should understand its limits before treating migration as a closed problem.
PQC does not address past harvest. Switching to quantum-resistant algorithms today protects data encrypted from this point forward. It does nothing for ciphertext already collected by adversaries under “harvest now, decrypt later” operations. For organizations with long-lived sensitive data, the damage from HNDL is accumulating in real time, and no amount of future migration will undo it. The urgency of starting now is precisely that delay increases the exposure window for data that is already in the wild.
PQC does not solve key distribution security. PQC replaces the mathematical hardness underlying key exchange — but it does not change the fundamental model: two parties exchange a shared secret using a mathematical trapdoor. The security is computational, meaning it holds as long as the assumed hard problem remains hard. Quantum Key Distribution (QKD), covered in White Paper 3, takes a fundamentally different approach: it makes key exchange provably secure using the laws of physics rather than computational assumptions. PQC and QKD address the same threat from different directions and are most powerful when deployed together, which White Paper 4 addresses.
PQC does not eliminate cryptographic risk. The SIKE break is a reminder that mathematical assumptions can fail. The NIST standards have been extensively analyzed, but they do not have the four decades of real-world deployment history that RSA and ECC accumulated. Cryptographic agility, diverse algorithm selection, and ongoing monitoring of the cryptanalytic literature are prudent risk management practices, not optional extras.
Looking Ahead
The migration to post-quantum cryptography is the largest cryptographic transition the industry has undertaken since the adoption of public-key cryptography in the 1970s. It is also more tractable than it sometimes appears. PQC runs on classical hardware. The standards are finalized. The algorithms are shipping in major TLS libraries, cloud platforms, and operating systems. The math is sound.
What remains is an engineering program: inventory, prioritize, test, deploy, and monitor. For organizations in or adjacent to the national security space, the CNSA 2.0 procurement gates at January 2027 and the exclusive-use deadlines through 2033 provide a concrete sequencing guide. For everyone else, NIST’s 2030 and 2035 deprecation milestones mark the outer boundary.
White Paper 3 examines Quantum Key Distribution — the physics-based approach to key security that complements PQC. White Paper 4 will show how the two work together in a hybrid quantum-safe architecture.
References
[1] NIST. (2016–2024). Post-Quantum Cryptography Standardization Project. National Institute of Standards and Technology. Available at: csrc.nist.gov/projects/post-quantum-cryptography
[2] NIST. (2024). FIPS 203 (ML-KEM), FIPS 204 (ML-DSA), FIPS 205 (SLH-DSA). Federal Information Processing Standards. Available at: nist.gov/pqcrypto. [FIPS 206 (FN-DSA / FALCON) finalized late 2024.]
[3] NSA. (2022, September 7). Announcing the Commercial National Security Algorithm Suite 2.0. NSA Cybersecurity Advisory CSA-22. Updated Ver. 2.1, December 2024. Available at: media.defense.gov
[4] NSA CNSA 2.0 FAQ. (2024, December). U/OO/194427-22 | PP-24-4014. Ver. 2.1. Available at: media.defense.gov/2022/Sep/07/2003071836/-1/-1/0/CSI_CNSA_2.0_FAQ_.PDF
[5] Bernstein, D.J., et al. (2019). SPHINCS+: Stateless Hash-Based Signatures. NIST PQC Submission. [Standardized as FIPS 205 / SLH-DSA in 2024.]
[6] McEliece, R.J. (1978). “A Public-Key Cryptosystem Based on Algebraic Coding Theory.” DSN Progress Report 42-44. Jet Propulsion Laboratory.
[7] Castryck, W. & Decru, T. (2022). “An Efficient Key Recovery Attack on SIDH.” IACR Cryptology ePrint Archive, Report 2022/975. [Classical attack breaking SIKE, a NIST PQC finalist.]
[8] Bossert, D. et al. (2023). “X25519Kyber768 hybrid post-quantum key agreement.” Google Security Blog / Cloudflare Blog. Also: IETF draft-ietf-tls-mlkem (tracking toward RFC finalization, 2026–2027).
[9] Regev, O. (2005). “On lattices, learning with errors, random linear codes, and cryptography.” Proceedings of the 37th Annual ACM Symposium on Theory of Computing. doi:10.1145/1060590.1060603
[10] NIST IR 8547. (2024). Transition to Post-Quantum Cryptography Standards. National Institute of Standards and Technology. [Establishes deprecation of RSA/ECC: new systems after 2030; all use after 2035.]
This white paper is part of the Quantum-Safe Security series. Related title: Quantum Computing for Engineers ISBN 978-1-947019-97-0.