Post-quantum algorithm selection guide: ML-KEM, ML-DSA, SLH-DSA, LMS
Pick by use case, not by hype. Highest parameter set you can afford, hybrids by default, hash-based signatures for roots of trust.
Selection matrix
| Use case | Use now | Notes |
|---|---|---|
| Web/API TLS key exchange | X25519MLKEM768 (RFC 10024) | Default in major browsers and CDNs |
| High-assurance / government TLS | SecP384r1MLKEM1024 or pure ML-KEM-1024 | CNSA 2.0 alignment |
| VPN / IPsec | ML-KEM via IKEv2 additional key exchange | PQ auth for IPsec still being standardized |
| SSH | mlkem768x25519-sha256 or sntrup761x25519-sha512 |
Recent OpenSSH releases |
| General signatures / certificates | ML-DSA-65 (ML-DSA-87 for CNSA) | Composite with ECDSA where the ecosystem needs it |
| Firmware / secure boot / code signing | LMS or XMSS, or SLH-DSA | Stateful schemes need strict state management in HSMs |
| Root CA / long-lived trust anchors | SLH-DSA or ML-DSA-87 | Conservatism beats size here |
| Bandwidth-constrained signatures | Plan for FN-DSA, ship ML-DSA now | Don't ship FN-DSA before FIPS 206 is final |
| Data at rest | AES-256-GCM; wrap keys with ML-KEM (or hybrid) | HPKE with ML-KEM for app-layer encryption |
| Highest-value secrets (decades) | Hybrid + highest parameter set; plan PQ/PQ with HQC | Math diversity |
Sizes you'll actually feel
Key exchange (bytes)
| Algorithm | Public key | Ciphertext | Shared secret | NIST level |
|---|---|---|---|---|
| X25519 (classical) | 32 | 32 | 32 | — (quantum-broken) |
| ML-KEM-512 | 800 | 768 | 32 | 1 |
| ML-KEM-768 | 1,184 | 1,088 | 32 | 3 |
| ML-KEM-1024 | 1,568 | 1,568 | 32 | 5 |
| X25519MLKEM768 | 1,216 (client) | 1,120 (server) | 64 | 3 + classical |
Signatures (bytes)
| Algorithm | Public key | Signature | NIST level | Notes |
|---|---|---|---|---|
| ECDSA P-256 | 64 | ~64–72 | — | Quantum-broken |
| RSA-2048 | 256 | 256 | — | Quantum-broken |
| ML-DSA-44 | 1,312 | 2,420 | 2 | |
| ML-DSA-65 | 1,952 | 3,309 | 3 | Common default |
| ML-DSA-87 | 2,592 | 4,627 | 5 | CNSA 2.0 |
| FN-DSA-512 (draft) | ~897 | ~666 | 1 | Floating-point sampling is hard to do safely |
| FN-DSA-1024 (draft) | ~1,793 | ~1,280 | 5 | |
| SLH-DSA-128s | 32 | 7,856 | 1 | Slow signing, tiny keys |
| SLH-DSA-128f | 32 | 17,088 | 1 | Faster signing, bigger sigs |
ML-KEM is fast — often faster than ECDH. The cost is bytes on the wire. Signatures are the harder engineering problem: an ML-DSA chain can add ~10–15 KB to a handshake.
Hybrid vs. pure
- Hybrid (PQ/T): default for 2026–2030. Secure if either component holds; hedges implementation bugs and new cryptanalysis.
- Composite signatures: classical + PQ in one cert. Smooths PKI migration; standards maturing in IETF LAMPS.
- Pure PQ: CNSA 2.0 end state for National Security Systems.
- PQ/PQ: e.g., ML-KEM + HQC once FIPS 207 is final — for crown-jewel data.
Europe's BSI and ANSSI favor hybrids; NSA accepts them only as transitional. If you sell into both, support both.
Don't
- Ship non-standardized PQC in production.
- Write your own hybrid combiner.
- Buy "quantum-safe" products that can't name the FIPS algorithm and parameter set.
- Treat QKD as a PQC substitute (no authentication, special hardware, poor interop).
After December 2026: the AI-derived quantum attack on structured lattices is impractical at any real parameter size, but it's a long-term signal. Use ML-KEM-768 minimum (1024 where possible), ML-DSA-65/87, and keep hash-based signatures in the portfolio.