Lesson 8 of 8 · 5 min read
Post-Quantum Cryptography: Threats, Algorithms and Trust
In this lesson
TL;DR: A sufficiently capable quantum computer would undermine RSA and discrete-logarithm public-key schemes. Post-quantum cryptography replaces the vulnerable mathematical assumptions while still running on ordinary computers. Protect recorded secrets through suitable key establishment, and protect future trust decisions through signature migration; neither task replaces authentication or access control.
Before you read
Pick an answer before you read further. The lesson below explains it, and guessing first, right or wrong, helps the explanation stay with you.
1A service uses AES-256 but exchanges its session key with classical ECDHE. Is the recorded session necessarily resistant to a future quantum adversary?
What a quantum attacker changes
The asset is information that must remain confidential, or a decision that depends on an authentic signature. An observer may retain encrypted exchanges and public keys now. A future adversary with a cryptographically relevant quantum computer could recover some private keys or shared secrets using algorithms that are infeasible on current classical hardware. No precise arrival date is needed to identify a long migration lead time.
Shor's algorithm addresses factoring and discrete logarithms. That threatens RSA, finite-field Diffie-Hellman, ECDH, ECDSA and EdDSA at commonly deployed sizes. Increasing an RSA modulus is not a general post-quantum migration. Classical forward secrecy protects past sessions against later theft of a long-term authentication key; it does not stop a quantum adversary from solving a recorded ephemeral exchange.
Grover's algorithm gives a generic quadratic query advantage for unstructured search. Practical hardware and parallelism costs matter. It does not justify saying that all encryption is broken, or that every hash security property is simply halved. Preimage search, collision resistance and key search are different problems. The NIST PQC FAQ, checked November 2026, permits continued use of current AES key sizes under existing guidance. AES-256 can be a conservative long-lifetime choice, but fixing public-key exposure is a separate task.
Three operations that must stay separate
Authenticate
Whose public key is this?
Establish secret
KEM or protocol key agreement
Derive traffic keys
Protocol-defined KDF and context
Protect records
AEAD with nonce discipline
A key encapsulation mechanism (KEM) has three operations. The recipient generates an encapsulation public key and a decapsulation private key. The sender uses the public key to produce a ciphertext and a shared secret. The recipient decapsulates the ciphertext to obtain the same secret. The secret itself is not sent. This is not an API for encrypting an arbitrary document.
An authenticated protocol binds those operations to identities, negotiates algorithms and derives purpose-specific keys. Its record layer then encrypts application data with an authenticated symmetric cipher. Authenticating only the certificate does not establish which key-exchange group was negotiated; recording only the group does not establish the peer identity.
A digital signature protects a different claim: particular bytes were signed using a private key corresponding to a trusted public key. Verification does not encrypt the bytes or establish that the signer was authorized to release them. The system must decide which key is trusted, for what purpose, at what time and under which revocation policy.
The standardized families
Algorithm status checked November 2026. Use final algorithm names and encodings, rather than assuming older research implementations interoperate.
| Family | Operation and underlying idea | Implementation consequence |
|---|---|---|
| ML-KEM, FIPS 203 | Module-lattice KEM; noisy algebraic relations support key establishment | Choose an approved parameter set and protocol integration; do not use its internal encryption component as an application cipher |
| ML-DSA, FIPS 204 | Module-lattice signature scheme | Budget for public keys and signatures; verify the complete signed message and intended context |
| SLH-DSA, FIPS 205 | Stateless hash-based signatures | Offers a different mathematical foundation, with substantial signature-size and performance tradeoffs |
ML-KEM has 512, 768 and 1024 parameter sets; these names are not AES-equivalent key lengths. ML-DSA uses 44, 65 and 87 parameter-set names. SLH-DSA offers multiple hash families and size/speed choices. A protocol profile, security requirement and measured platform constraints should determine the selection. Copying the largest name into every service does not establish a sound deployment.
The NIST project overview separately identifies Falcon/FN-DSA and the code-based HQC family as ongoing standardization work. Selection, a final algorithm standard, library implementation, protocol support and a validated cryptographic module are distinct milestones. Check each rather than borrowing assurance from another milestone. Lattice hardness and hash assumptions are studied security foundations, not mathematical guarantees against every future discovery.
Hybrid means a specified combination
A classical/post-quantum hybrid key exchange combines two contributions through a protocol-defined construction. Its intended protection depends on the combiner and protocol retaining security when a component fails. Concatenating secrets in an application and choosing a hash yourself is not a reviewed hybrid protocol.
There is another use of “hybrid encryption”: public-key setup plus symmetric bulk encryption. That older usage does not imply post-quantum resistance. State which meaning you intend. Likewise, a hybrid transport group with a classical certificate improves key-establishment resistance but does not turn the certificate signature into a post-quantum signature.
The migration unit is a dependency
Inventory where keys establish confidentiality and where signatures grant trust. Include reverse proxies, backup wrappers, stored encrypted archives, firmware loaders, signing services, recovery media and the oldest supported verifier. A new connection setting cannot protect ciphertext already recorded under a vulnerable exchange.
For an illustrative service retaining confidential research for twelve years and requiring four years to replace clients, the exposure horizon is sixteen years. This arithmetic is a planning input, not a prediction that a quantum computer arrives in year sixteen. A device fleet with an immutable verification root may demand immediate signature engineering even while transport migration proceeds.
PQC is also different from quantum key distribution. These algorithms run in software on classical machines; they do not require a quantum communication link. They still need good randomness, reviewed implementations, key custody, authenticated peers and recovery controls.
Put the distinction to work
The implementation guide compares library routes and a staged adoption plan. The migration course uses local KEM/signature exercises and a fictional rollout packet. Practice defending the priorities in planning a post-quantum migration and crypto agility and downgrade resistance.
Say it in 30 seconds: Post-quantum migration changes public-key assumptions and their protocol integrations. I inventory confidential data lifetimes and long-lived verification roots, choose maintained implementations of standardized schemes, test both identity and negotiated behavior, and control fallback. I do not treat an algorithm name as an end-to-end security result.
Check yourself
Say or write your answer first, then reveal. Explaining it from memory, in your own words, is the skill an interviewer is checking.
1Does successful ML-KEM decapsulation authenticate the sender?
2Why can a firmware fleet make signature migration urgent?
3Is algorithm conformance the same as FIPS module validation?