Skip to content

The new standards: ML-KEM, ML-DSA, SLH-DSA and friends

What NIST standardised in FIPS 203, 204 and 205, what is still coming (FN-DSA, HQC), parameter sets, key and signature sizes, and the IETF work that puts them into protocols.

Part 05 of 09Intermediate 9 min read
On this page

In August 2024, after an eight-year public competition, NIST published the first three post-quantum cryptography standards. This article explains what each one is for, how to choose parameters, how big the keys and signatures are, what's still in the pipeline, and how the IETF is wiring them into TLS, SSH, certificates and JOSE.

The competition in brief

NIST launched its Post-Quantum Cryptography Standardization process in 2016 and received 69 complete first-round submissions. Over several public rounds, cryptographers worldwide attacked the candidates; several were broken or weakened along the way (Rainbow and SIKE most famously, both by classical attacks in 2022). In July 2022 NIST announced its first selections, and in August 2024 it published the final standards:

StandardNameBased onJobOrigin
FIPS 203ML-KEM (Module-Lattice-Based Key-Encapsulation Mechanism)Module latticesKey establishmentCRYSTALS-Kyber
FIPS 204ML-DSA (Module-Lattice-Based Digital Signature Algorithm)Module latticesSignaturesCRYSTALS-Dilithium
FIPS 205SLH-DSA (Stateless Hash-Based Digital Signature Algorithm)Hash functionsSignaturesSPHINCS+

The final standards differ in small but important ways from the competition submissions (domain separation, encodings, key formats), so "Kyber" and "ML-KEM" are not interoperable. Early deployments used a draft X25519Kyber768Draft00 TLS group; it has been replaced by X25519MLKEM768. If a library or config still says "Kyber", it's pre-standard.

Security categories

NIST rates post-quantum parameter sets in five security categories, each defined by comparison with an attack on a well-understood symmetric primitive:

CategoryAt least as hard to break asRough classical equivalent
1Key search on AES-128~128-bit
2Collision search on SHA-256—
3Key search on AES-192~192-bit
4Collision search on SHA3-384—
5Key search on AES-256~256-bit

Category 1 is broadly comparable to today's 128-bit classical security (X25519, P-256). Most general deployments choose category 3; national-security systems under the NSA's CNSA 2.0 require category 5.

ML-KEM (FIPS 203): key encapsulation

A KEM (key-encapsulation mechanism) is the post-quantum replacement for Diffie-Hellman-style key agreement. The interface is slightly different:

  Receiver                                   Sender
  (ek, dk) = KeyGen()
  ── encapsulation key ek ──────────────────►
                                             (shared_secret, ct) = Encaps(ek)
  ◄────────────────────────── ciphertext ct ──
  shared_secret = Decaps(dk, ct)

Instead of both sides contributing equally, the sender generates a random secret and "encapsulates" it to the receiver's public key. Both end with the same 32-byte shared secret, which then feeds a key-derivation function as usual. Protocols like TLS 1.3 fit this naturally: the client's key share is an encapsulation key, and the server's key share is the ciphertext.

ML-KEM's security rests on the Module Learning With Errors (MLWE) problem: given a set of noisy linear equations over polynomial rings, recover the secret. Without the noise it's simple linear algebra; with it, no efficient classical or quantum algorithm is known.

Parameter setCategoryEncapsulation keyDecapsulation keyCiphertextShared secret
ML-KEM-5121800 B1,632 B768 B32 B
ML-KEM-76831,184 B2,400 B1,088 B32 B
ML-KEM-102451,568 B3,168 B1,568 B32 B

For comparison, an X25519 public key is 32 bytes. ML-KEM is fast, often faster than X25519 in CPU terms, but the bytes on the wire are much larger.

Which to use: ML-KEM-768 is the default choice for general use and what TLS (X25519MLKEM768) and SSH (mlkem768x25519-sha256) use. ML-KEM-1024 is required under CNSA 2.0. ML-KEM-512 is allowed but has the thinnest margin.

Practical notes:

  • The decapsulation key can be stored as a 64-byte seed and expanded when needed; many libraries support seed-based private keys, and it's the recommended storage format in RFC 9935 (ML-KEM in X.509).
  • ML-KEM uses implicit rejection: decapsulating a tampered ciphertext returns a pseudorandom value instead of an error. Protocols detect the mismatch later (for example, the TLS Finished message fails).

ML-DSA (FIPS 204): the general-purpose signature

ML-DSA is the main replacement for RSA and ECDSA signatures. It's also lattice-based (MLWE plus a related problem, Module-SIS) and uses a "Fiat-Shamir with aborts" design: the signer repeatedly tries to produce a signature that doesn't leak information about the key, and restarts when one would.

Parameter setCategoryPublic keyPrivate keySignature
ML-DSA-4421,312 B2,560 B2,420 B
ML-DSA-6531,952 B4,032 B3,309 B
ML-DSA-8752,592 B4,896 B4,627 B

Compare Ed25519 (32-byte public key, 64-byte signature) or ECDSA P-256 (64-byte signature). ML-DSA signatures are roughly 40–70× larger. Signing and verifying are fast, though.

Which to use: ML-DSA-65 is a common general-purpose choice; ML-DSA-44 is popular where size matters (it's what OpenSSH's hybrid ssh-mldsa44-ed25519 hybrid key type uses: experimental in OpenSSH 10.4, enabled under its final name in 10.6); ML-DSA-87 is required under CNSA 2.0.

Variants and details worth knowing:

  • Hedged vs deterministic. The default ("hedged") mode mixes fresh randomness into each signature, which helps against fault and side-channel attacks. A deterministic mode exists for constrained cases.
  • Context strings. FIPS 204 lets you pass a short context string (up to 255 bytes) that binds a signature to an application or protocol, preventing cross-protocol reuse.
  • Pure vs pre-hash. "Pure" ML-DSA signs the message itself (internally hashing it with a key-dependent prefix). HashML-DSA signs a pre-computed hash, which is useful for huge messages or HSMs, but produces different signatures and isn't interchangeable. Many protocols (including RFC 9881 for X.509) use pure ML-DSA; for large data, FIPS 204 also allows computing the internal "mu" value externally.
  • Private key as seed. Like ML-KEM, ML-DSA keys can be stored as a 32-byte seed.

SLH-DSA (FIPS 205): the conservative signature

SLH-DSA (formerly SPHINCS+) builds signatures entirely from hash functions, combining many one-time signatures in a large tree structure. Its security depends only on the hash function (SHA-2 or SHAKE), which makes it the most conservative option: if lattices turn out to be weaker than believed, SLH-DSA is unaffected.

The cost is size and speed. There are 12 parameter sets: SHA2 or SHAKE, three security levels (128, 192, 256), and "s" (small signatures, slow signing) or "f" (fast signing, bigger signatures):

Parameter setCategoryPublic keySignature
SLH-DSA-*-128s132 B7,856 B
SLH-DSA-*-128f132 B17,088 B
SLH-DSA-*-192s348 B16,224 B
SLH-DSA-*-192f348 B35,664 B
SLH-DSA-*-256s564 B29,792 B
SLH-DSA-*-256f564 B49,856 B

(* is SHA2 or SHAKE.) Signing with the "s" variants can take hundreds of milliseconds or more.

Where it fits: places where signatures are rare, verification is common and long-term confidence matters more than size: firmware and secure boot, root CA keys, software release signing, archival documents. It's a poor fit for TLS handshakes.

Stateful hash-based signatures: LMS and XMSS

Before FIPS 205, NIST approved two stateful hash-based schemes in SP 800-208: LMS (RFC 8554) and XMSS (RFC 8391). They have small signatures and are fast, but each key can sign only a fixed number of messages, and the signer must never reuse a one-time key, which means carefully tracking state (a counter) even across backups and failovers. CNSA 2.0 allows them for software and firmware signing, where a single well-controlled signer (often an HSM) makes state management feasible.

What's still coming

FN-DSA (expected FIPS 206). Based on Falcon, a lattice signature using NTRU lattices and fast Fourier sampling. Its selling point is size: Falcon-512 has an 897-byte public key and signatures around 666 bytes, much smaller than ML-DSA. The catch is that secure signing needs careful floating-point arithmetic that's hard to implement in constant time. NIST submitted the FIPS 206 draft for approval in August 2025, but at the time of writing (December 2026) the final standard had not been published; check NIST's PQC project page for the current status before relying on it.

HQC. In March 2025 NIST selected HQC (Hamming Quasi-Cyclic), a code-based KEM, as a backup to ML-KEM, so that a break in lattice maths wouldn't leave the world without a standardised KEM. In its announcement NIST said it expected a draft standard (to be FIPS 207) in about a year and a final standard in 2027; check NIST for the current status before relying on a date.

More signatures. NIST is running an additional signature "on-ramp" to find schemes with smaller signatures or different maths; candidates are still being evaluated.

Others outside NIST. Classic McEliece (code-based, enormous public keys around 255 KB–1.3 MB, tiny ciphertexts) and FrodoKEM (conservative unstructured lattices) are being standardised by ISO and are recommended by some European agencies.

Into the protocols: the IETF work

Algorithms alone don't secure anything; protocols need to carry them. The status as of December 2026:

AreaSpecificationStatus
TLS 1.3 hybrid key exchange (X25519MLKEM768, SecP256r1MLKEM768, SecP384r1MLKEM1024)RFC 10024Published (Proposed Standard), August 2026
SSH hybrid key exchange (mlkem768x25519-sha256 and NIST-curve variants)RFC 10042Published (Informational), August 2026
ML-DSA in X.509 certificatesRFC 9881Published, October 2025
ML-KEM in X.509 certificatesRFC 9935Published, March 2026
ML-DSA in JOSE and COSE (ML-DSA-44/65/87, AKP key type)RFC 9964Published, May 2026
Post-quantum OpenPGP (ML-KEM + X25519, ML-DSA + Ed25519)RFC 9980Published, June 2026
X-Wing hybrid KEM (X25519 + ML-KEM-768)draft-connolly-cfrg-xwing-kemInternet-Draft
Composite ML-DSA signatures for X.509 and JOSELAMPS / JOSE draftsInternet-Drafts

TLS hybrid key exchange is the most deployed by far: Chrome, Edge, Firefox and Safari all send X25519MLKEM768, and a large share of HTTPS traffic through big CDNs already uses it. Post-quantum certificates are much earlier: browsers' root programs do not yet accept ML-DSA certificates from public CAs, and Chrome has said it is pursuing a different approach (Merkle Tree Certificates) to keep handshake sizes down. Private PKIs can issue ML-DSA certificates today with OpenSSL 3.5+ and other libraries.

Choosing, at a glance

You need...Default choiceHigher assurance / CNSA 2.0Notes
TLS key exchangeX25519MLKEM768 (hybrid)SecP384r1MLKEM1024Usually a runtime / config upgrade
SSH key exchangemlkem768x25519-sha256—Default in OpenSSH 10+
Encrypting to a public key (envelope, HPKE)ML-KEM-768 (often hybrid)ML-KEM-1024
General signatures (tokens, documents, APIs)ML-DSA-65 or ML-DSA-44ML-DSA-87Expect ~2.4–4.6 KB signatures
Firmware, roots, archivesSLH-DSA, or LMS/XMSS with an HSMLMS/XMSS per CNSA 2.0Slow or stateful, but very conservative
Smallest PQ signaturesFN-DSA when standardised—Not final yet

pqe's scanner reports which of these each finding maps to; npx -y pqe-cli explain ml-kem-768 (or any algorithm id) prints the details from this knowledge base.

Next: Hybrid cryptography: why we combine old and new algorithms during the transition.