ML-DSA
NIST's primary post-quantum signature scheme, standardised in FIPS 204
Overview
ML-DSA is the Module-Lattice-Based Digital Signature Algorithm standardised by NIST in FIPS 204. It is the general-purpose default for post-quantum signatures, with fast signing and verification and signatures of a few kilobytes.
ML-DSA is derived from CRYSTALS-Dilithium, selected by NIST at the end of the third round of its post-quantum process. It follows the Fiat-Shamir with aborts paradigm: the signer commits to a masked random vector, derives a challenge by hashing the commitment with the message, and responds with a combination of the secret and the mask. If the response would leak information about the secret, it is discarded and the process restarts.
Security rests on Module-LWE, which protects the secret key, and Module-SIS, which prevents forgeries. All sampling is uniform or from small bounded ranges, so unlike Falcon the scheme needs no Gaussian sampling or floating-point arithmetic, which makes constant-time implementation comparatively straightforward. FIPS 204 supports hedged signing (fresh randomness mixed with a secret seed) by default, a deterministic option, context strings, and a pre-hash mode (HashML-DSA).
Three parameter sets are defined: ML-DSA-44 (category 2), ML-DSA-65 (category 3) and ML-DSA-87 (category 5). Public keys are 1312 to 2592 bytes and signatures 2420 to 4627 bytes. Private keys are 2560 to 4896 bytes. ML-DSA-65 is the most commonly recommended parameter set, and composite and hybrid certificates combining ML-DSA with ECDSA or EdDSA are being standardised at the IETF.
History
2016–2025NIST calls for post-quantum KEMs and signatures
NIST Post-Quantum Cryptography standardisationCRYSTALS-Dilithium submitted to NIST PQC
26 candidates advance to round 2
NIST Post-Quantum Cryptography standardisationRound 3 finalists and alternates announced
NIST Post-Quantum Cryptography standardisationDilithium selected by NIST
Draft FIPS 204 released
ML-DSA published as FIPS 204
HQC selected as a second KEM
NIST Post-Quantum Cryptography standardisation
How it works
- KeyGen expands a public matrix A from a seed and samples short secrets s1, s2; the public key is the high bits of t = A*s1 + s2.
- Sign samples a masking vector y, commits to the high bits of A*y and hashes them with the message to get a sparse challenge c.
- The response z = y + c*s1 is checked against norm bounds and rejected and resampled if it could leak the secret.
- Verify recomputes the commitment from z, c and the public key, using hints, and checks the challenge hash.
Security notes
ML-DSA is considered sound and is NIST's recommended general-purpose post-quantum signature. Implementations should protect against side channels and fault attacks on the rejection loop and secret-dependent operations; hedged signing reduces exposure to fault attacks compared with purely deterministic signing.
Typical uses
Variants in NextSSL
3| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| ML-DSA-44 ml-dsa-44 |
safe FIPS | pk 1312 · sk 32 · sig 2420 · seed 32 · ctx 0–255 | FIPS 204 | safe |
| ML-DSA-65 ml-dsa-65 |
safe FIPS | pk 1952 · sk 32 · sig 3309 · seed 32 · ctx 0–255 | FIPS 204 | safe |
| ML-DSA-87 ml-dsa-87 |
safe FIPS | pk 2592 · sk 32 · sig 4627 · seed 32 · ctx 0–255 | FIPS 204 | safe |
Frequently asked questions
Which ML-DSA variants does NextSSL include?
NextSSL registers 3 ML-DSA variants: ml-dsa-44, ml-dsa-65, ml-dsa-87.
Families with similar names
Other digital signatures
All 503Related
NIST's primary post-quantum key encapsulation mechanism, standardised in FIPS 203
CRYSTALS-Dilithium (Round 3)The Round 3 submission of Dilithium, predecessor of the ML-DSA standard
FN-DSAFFT over NTRU-Lattice-Based Digital Signature Algorithm, the draft FIPS 206 form of Falcon
SLH-DSAStateless hash-based signatures standardised in FIPS 205, relying only on hash functions
SHAKEThe extendable-output functions of FIPS 202, producing any length of output from Keccak