What can ML-DSA verify without revealing the private key?
A software publisher signs an update file once, and everyone who downloads it can verify it independently. Each verifier has the publisher’s public key, the file, and the signature. The ML-DSA signature carries a response that someone who knows the secret can produce for that message. Dilithium, the scheme on which ML-DSA is based, uses lattices to construct this response and puts the challenge and the response together in one signature. Dilithium design background
Creating a challenge without a verifier present
- The signer samples a mask y for this signature and uses it to compute a commitment w. The mask hides the secret in the response.
- The signer hashes a value that incorporates the message and its context together with the high bits of w. The result is the seed for a challenge c. The verifier can reconstruct this challenge later.
- The signer combines c, the secret, and y to form the response z. The verifier uses z, the public key, and a hint in the signature to reconstruct the high bits of w and check that the challenge seed matches.
Suppose someone changes a signed message from “version 7” to “version 8.” The verifier’s hash now incorporates “version 8,” so it no longer matches the challenge seed the signer derived from “version 7.” Changing the context likewise changes the verifier’s input.
Why the public key is enough to check the response
In a simplified form with rounding omitted, the public key is based on t = A·s₁ + s₂, the commitment is w = A·y, and the response is z = y + c·s₁. A is a public matrix, and s₁ and s₂ are short secret vectors, meaning their polynomial coefficients are small. Expanding the verifier’s expression A·z − c·t cancels the terms involving s₁ and leaves w − c·s₂.
The public key stores the high bits of t. The hint in the signature lets the verifier correct the high bits of coefficients that cross a rounding boundary. The signer also samples a new mask whenever checks such as the bound on the size of the response fail. This rejection step helps keep biases in published responses from leaking information about the secret. The verifier checks the bounds on z and the format of the hint before comparing hashes.
- Signer · Hash the message and contextCompute μ using the public-key hash stored in the signing key and the formatted message.
- Sample a mask yUse a seed derived from the signing key, signing randomness, and μ.
- Compute the commitmentw = A·y
- Generate the challenge seed c̃Hash μ with the encoded high bits of w.
- Derive the challenge cSample c from c̃.
- Compute the responsez = y + c·s₁
- Check the response and the low bitsIf z or the low bits of w − c·s₂ are out of bounds, return to mask sampling with a fresh y.
- Make the rounding hint hMark the high bits that change when subtracting c·t₀ from w − c·s₂ + c·t₀. Here t₀ is the low part of t.
-
Correction or hint check failsIf c·t₀ is out of bounds or h has too many set bits, return to mask sampling with a fresh y.Checks passPublish the encoded signature (c̃, z, h) for verification.
-
Verifier · Message and public keyRecompute μ from the message formatted with its context and the hash of the trusted public key.Verifier · Received signatureDecode c̃, z, and h. Reject an invalid hint encoding or an out-of-bounds response.
- Regenerate the challenge cSample it again from the received c̃.
- Recover the high bits w₁′Apply h to A·z − c·(t₁·213). The public key provides the seed for A and the high part t₁ of t.
- Recompute the challenge seed c̃′Hash μ with the encoding of w₁′.
- Compare challenge seedsAccept if c̃′ equals the received c̃. Otherwise reject.
ML-DSA-44, ML-DSA-65, and ML-DSA-87 all follow this verification process. Changes in the matrix dimensions and other parameters affect how many coefficients the scheme handles, how long the signatures are, and the estimated security. Parameter sets and usage · FIPS 204 key generation, signing, and verification