|lattice⟩ · b = A·s + e (mod q)

Post-quantum locks with no pattern to find

Shor's algorithm works because RSA and elliptic curves hide a repeating pattern. Post-quantum algorithms are built on problems where no such pattern is known, for classical or quantum computers. They are ordinary software: they run on the servers, phones and HSMs you already have.

|standards⟩

The new toolkit

NIST ran an open competition from 2016. Cryptographers around the world attacked the candidates in public, and some fell: SIKE and Rainbow were broken in 2022, on ordinary computers. The survivors became standards. The full story.

ML-KEM

FIPS 203 · Aug 2024

Key encapsulation: two parties agree on a shared secret over an open network.

Replaces
RSA key transport, ECDH, DH
Hard problem
Module learning with errors (lattices)
Parameter sets
ML-KEM-512 · 768 · 1024
Status
Final standard. In OpenSSL 3.5, JDK 24, Go 1.24, .NET 10

ML-DSA

FIPS 204 · Aug 2024

General-purpose digital signatures for certificates, code, documents and tokens.

Replaces
RSA, ECDSA and EdDSA signatures
Hard problem
Module lattices (MLWE and MSIS)
Parameter sets
ML-DSA-44 · 65 · 87
Status
Final standard. Arriving in libraries, HSMs and cloud KMS

SLH-DSA

FIPS 205 · Aug 2024

Stateless hash-based signatures. Large and slow, but they rest only on the hash function.

Replaces
Signatures where long-term assurance matters most
Hard problem
Security of the hash function
Parameter sets
SHA2 / SHAKE · 128 · 192 · 256 (s and f)
Status
Final standard

FN-DSA

FIPS 206 · in preparation

Compact lattice signatures (from Falcon), useful where every byte counts.

Replaces
RSA and ECDSA where size is critical
Hard problem
NTRU lattices
Parameter sets
FN-DSA-512 · 1024
Status
Standard in preparation

HQC

selected Mar 2025

A second key-encapsulation method built on error-correcting codes, as a backup to ML-KEM.

Replaces
Same role as ML-KEM, different mathematics
Hard problem
Decoding random quasi-cyclic codes
Parameter sets
HQC-128 · 192 · 256
Status
Standard in preparation

LMS · XMSS

SP 800-208 · 2020

Stateful hash-based signatures for firmware and code signing, where the signer tracks every signature.

Replaces
RSA and ECDSA firmware and boot signing
Hard problem
Security of the hash function
Parameter sets
LMS / HSS, XMSS / XMSS^MT
Status
Approved; required by CNSA 2.0 for firmware

|learning-with-errors⟩

Find the nearest point, if you can

A lattice is a regular grid of points. Take a secret point, nudge it by a small random error, and publish where it landed. Recovering the secret means finding the nearest grid point. With a short, square set of directions (the private key) that is easy. With a long, skewed set describing the same grid (the public key), rounding goes wrong. Here the grid has 2 dimensions; ML-KEM-768 works in 768, with numbers modulo 3,329, and no algorithm, classical or quantum, is known to solve that efficiently.

Found it. With the short basis, rounding lands on the secret point.

An intuition, not the exact ML-KEM construction. Score so far: private basis 0 of 0, public basis 0 of 0.

Read: lattice cryptography, explained →

|why-it-holds⟩

Why a quantum computer does not help

No period to find

Shor's speed-up needs a hidden repeating structure. Lattice and hash problems have none that anyone has found in decades of looking.

Only small speed-ups

The best known quantum attacks shave a modest amount off the work, Grover-style. Parameter sets already include that margin.

Attacked in public

Years of open cryptanalysis broke weaker candidates. What remains has survived the best attempts of the field.

Different bets

Lattices (ML-KEM, ML-DSA) and hashes (SLH-DSA) fail for different reasons, and HQC adds error-correcting codes. A break in one family leaves the others standing.

|hash-based⟩

Signatures made of hashes

The simplest quantum-safe signature dates from 1979. Make two random secrets per message bit and publish their hashes. To sign, reveal one secret of each pair according to the bit. Such a key can sign only once. Try signing twice and watch what leaks. Read: hash-based signatures.
message 1
secret 0secret 1publicH(·)H(·)H(·)H(·)H(·)H(·)H(·)H(·)

One signature reveals exactly one secret from each pair (gold). Anyone can hash them and compare with the public key, but nobody learns the other half.

|bytes⟩

The price is size

Post-quantum keys and signatures are larger. Speed is mostly fine; ML-KEM is often faster than RSA. Size is what breaks things: packet limits, certificate chains, database columns, smart-card memory and HSM buffers. This is why inventory comes first.
Bytes, from the FIPS standards and common encodings. Bars use a logarithmic scale. FN-DSA is not yet a final standard.
AlgorithmUseSignature / ciphertextSize
X25519key exchange32
Ed25519signature64
ECDSA P-256signature64
RSA-2048both256
ML-KEM-512key exchange768
ML-KEM-768key exchange1,088
ML-KEM-1024key exchange1,568
FN-DSA-512signature666
ML-DSA-44signature2,420
ML-DSA-65signature3,309
ML-DSA-87signature4,627
SLH-DSA-128ssignature7,856
SLH-DSA-128fsignature17,088

|hybrid⟩

Belt and braces: hybrid key exchange

The migration does not have to bet everything on new mathematics. A hybrid handshake runs X25519 and ML-KEM together and mixes both secrets into the session key, so an attacker has to break both. Browsers and servers already negotiate it. Read: hybrid key exchange.

X25519

classical secret · falls on Q-day

ML-KEM-768

post-quantum secret · newer mathematics

key derivation

both secrets mixed with a hash

session key

still secret

Hybrid key exchange: an attacker must break both the classical and the post-quantum exchange.

|choose⟩

Which one, where

UseTodayTargetReadiness
TLS key exchangeX25519, P-256, RSAX25519MLKEM768 → ML-KEMfix available
SSHcurve25519-sha256mlkem768x25519-sha256fix available
VPN and IPsecDH groups 14–21IKEv2 with ML-KEM (RFC 9370)upgrade required
Private PKI and mTLSRSA-2048, ECDSAML-DSA-65 certificatesupgrade required
Public web certificatesRSA, ECDSAML-DSA, when browsers and CAs agreewaiting for standard
Code and firmware signingRSA-3072, ECDSALMS / XMSS, ML-DSA-87upgrade required
API tokens (JWT)RS256, ES256ML-DSA in JOSE (draft)waiting for standard
Data at restAES-128, RSA key wrapAES-256, ML-KEM key wrapfix available

Crypto-agility is the lasting lesson: keep algorithms in configuration, not code, so the next change is a setting. Read: crypto-agility and the CBOM.

Next: find out where your own cryptography stands.

Your journey →