How ML-DSA works
A signer answers a challenge about its secret using a fresh masking vector. The verifier reconstructs enough of the original commitment to check that the challenge belongs to this message.
Program status. FIPS 204 defines ML-DSA-44, ML-DSA-65 and ML-DSA-87. Its source design was CRYSTALS-Dilithium. NIST program history
See what Anthropic’s lattice papers mean for ML-DSA.
What the signature convinces a verifier of
The public key describes a matrix calculation with small secret inputs. Anyone can check a proposed answer once the challenge is fixed. A forger must not be able to choose a convenient challenge after constructing an answer. The signer first commits to a fresh mask. A hash of the commitment and the message then chooses the challenge. To change the message later, a forger would have to make a different hash calculation agree.
A second difficulty is privacy. Each answer contains a small contribution from the secret. If answers were always released, their statistical distribution could betray the secret across many messages. Signing discards candidates near prescribed bounds before releasing an answer. This is the role of rejection sampling in ML-DSA.
What cancels in verification
t = A s₁ + s₂; w = A y; z = y + c s₁
With a full unrounded t, the verifier could form Az − ct = Ay − cs₂. The large term containing s₁ has canceled. The scheme actually publishes only the high bits of t. The verifier works with that rounded value and uses a small signed hint, constrained by strict checks, to recover the high bits of w used in the challenge hash.
All these calculations use degree-below-256 polynomials modulo X²⁵⁶ + 1, with coefficient modulus 8380417. Module-LWE helps explain the hiding of the short secrets. Producing a suitable short response with a self-consistent challenge involves short integer relations in module lattices. Learning a public key’s secret and producing one valid forgery are different mathematical objectives.
Worked example
In a one-coordinate identity modulo 17, take A = 4, s₁ = 2, s₂ = 1, y = 3 and c = 1. Then t = 9, w = 12 and z = 5. Both Az − ct and w − cs₂ equal 11 modulo 17. This illustrates cancellation only. It omits the hash, rounding, hints and release tests that make a signature meaningful.
How a signature is made and checked
- Generate
Expand the key-generation seed into the matrix seed, small secrets and other private material. Encode the public matrix seed and the high part of t.
- Sign
Bind the message representation to the public key. Derive the mask, compute the commitment, hash its high bits with the message representative, and form a response. Restart when the response, intermediate values or hint exceed the permitted bounds.
- Verify
Parse the response and hint, enforce their formats and bounds, recover the high part of the commitment, and hash it with the same message representative. Compare the resulting challenge bytes with the ones in the signature.
Which details belong to the signature
The suffixes 44, 65 and 87 refer to the matrix dimensions of the parameter sets. They are not security-bit counts. Implementations must also agree on the pure or prehash interface and the context string. An ordinary file hash passed to the wrong interface changes the bytes that the signer authenticates. Protect the secret mask computation as well as the stored key. A valid signature authenticates the message against a public key whose owner the enclosing system must establish.
Using an ML-DSA signature in private credentials
A research prototype lets a holder prove possession of a valid ML-DSA-44 signature while keeping the signed message private. The result measures the proof added to the credential protocol.
Primary sources
Construction and program sources reviewed .
- FIPS 204
Sections 3 to 6, especially Algorithms 6 to 8, and the parameter tables.
- NIST post-quantum cryptography project
Published standards and algorithms selected for future standards.