Algorithms
ML-KEM vs ML-DSA vs SLH-DSA
NIST’s three published post-quantum algorithms do different jobs. ML-KEM agrees keys; ML-DSA and SLH-DSA sign. Here is how they compare and where each one fits.
The short answer
All three are published NIST standards; our guide to NIST’s post-quantum standards covers the dates for retiring the algorithms they replace.
- ML-KEM is for agreeing keys: it replaces RSA key transport and Diffie-Hellman, for example in TLS and VPNs.
- ML-DSA is for signing: it replaces RSA, ECDSA and EdDSA signatures in certificates, code signing and documents.
- SLH-DSA is also for signing, built only on hash functions: slower and larger, but a conservative alternative to ML-DSA.
So ML-KEM is not an alternative to the other two; most systems need one key-establishment method and one signature method. The real choice is between ML-DSA and SLH-DSA for signatures.
Side by side
| ML-KEM | ML-DSA | SLH-DSA | |
|---|---|---|---|
| Standard | FIPS 203 | FIPS 204 | FIPS 205 |
| Used for | Key establishment | Digital signatures | Digital signatures |
| Replaces | RSA key transport, Diffie-Hellman, ECDH | RSA, ECDSA, EdDSA signatures | RSA, ECDSA, EdDSA signatures |
| Based on | Module lattices | Module lattices | Hash functions only |
| Parameter sets | ML-KEM-512, -768, -1024 | ML-DSA-44, -65, -87 | 12 sets: SHA-2 or SHAKE, at 128, 192 or 256-bit security, each “s” (small) or “f” (fast) |
| Example sizes | ML-KEM-768: public key 1,184 bytes, ciphertext 1,088 bytes | ML-DSA-65: public key 1,952 bytes, signature 3,309 bytes | SLH-DSA-SHA2-128s: public key 32 bytes, signature 7,856 bytes |
| Strengths | Fast, compact; NIST’s default is ML-KEM-768 | Fast signing and verifying; good general-purpose choice | Relies only on well-studied hash functions |
| Trade-offs | Larger than the elliptic-curve keys it replaces | Signatures much larger than ECDSA’s | Large signatures and slow signing |
Sizes are from the parameter tables in each FIPS. Larger keys and signatures matter on constrained devices and in protocols with tight message limits, so test before you switch.
Which to use where
| Use case | Typical choice |
|---|---|
| TLS, VPN and other key exchange | ML-KEM, often as a hybrid with a classical method during the transition (for example X25519 with ML-KEM-768) |
| Certificates and authentication | ML-DSA |
| Code and document signing | ML-DSA for most uses; SLH-DSA where the most conservative assurance matters |
| Long-lived roots of trust and firmware | SLH-DSA, or the stateful hash-based LMS and XMSS (NIST SP 800-208), which the NSA requires for firmware signing in national security systems |
| US national security systems | The NSA’s CNSA 2.0 sets the strongest settings: ML-KEM-1024 and ML-DSA-87 |
What about FN-DSA and HQC?
Two more algorithms are on the way. FN-DSA, based on FALCON, will be a lattice signature with smaller signatures than ML-DSA. HQC will be a backup to ML-KEM built on different mathematics. NIST lists both as standards still in development, so plan around ML-KEM, ML-DSA and SLH-DSA today.
Checking your own systems
Knowing the algorithms is the first step. The next is finding where your systems use quantum-vulnerable cryptography today, which rules and dates apply to each, and which of these replacements fits. That is what a PQC readiness assessment does.
Sources
- NIST FIPS 203, Module-Lattice-Based Key-Encapsulation Mechanism Standard (ML-KEM)
- NIST FIPS 204, Module-Lattice-Based Digital Signature Standard (ML-DSA)
- NIST FIPS 205, Stateless Hash-Based Digital Signature Standard (SLH-DSA)
- NIST IR 8547, Transition to Post-Quantum Cryptography Standards (final, October 2026)
- NIST: NIST Selects HQC as Fifth Algorithm for Post-Quantum Encryption (March 2025)
- NSA: The Commercial National Security Algorithm Suite 2.0 and Quantum Computing FAQ