ML-DSA: parameters, signing with aborts, verification and correctness #
This module states the CRYSTALS-Dilithium signature scheme ([DKL+18]), standardized as
ML-DSA in [NIST24a], over R_q = ℤ_q[X] / (X^n + 1) (coefficient vectors Fin n → ZMod q
with Cslib.negacyclicMul), and proves its correctness.
The model is the uncompressed-public-key scheme: the public key is (A, t) with
t = A s₁ + s₂, a signature is (z, c), and verification recomputes
w₁' = HighBits(A z - c t) and checks c = H(w₁', M).
This fixed hash-to-ball function compares challenge polynomials.
FIPS 204 Algorithm 8 checks equality of the full commitment digests, uses a rounded public vector
and hint, and hashes the message representative and encoded commitment. Its byte-level verifier
is in CslibFrontier.Crypto.Computational.MLDSA.FIPS204. Each signing attempt in this algebraic
model draws its masking vector y from an arbitrary ProbComp sampler.
- Parameters.
Paramsbundles(n, q, k, ℓ, η, γ₁, γ₂, τ, β);Params.mldsa44,Params.mldsa65andParams.mldsa87are the three parameter sets of [NIST24a] (Section 4), andParams.Validcollects the side conditions that correctness uses. - Challenges.
InBall τ csays thatchas coefficients in{-1, 0, 1}(read through centered representatives) and exactlyτnonzero coefficients. Multiplying anη-short polynomial by such a challenge gives aτ η-short polynomial (abs_valMinAbs_negacyclicMul_le). - Signing. One attempt (
signAttempt) computesw = A y,c = H(HighBits(w), M),z = y + c s₁, and accepts iff‖z‖_∞ < γ₁ - βand‖LowBits(w - c s₂)‖_∞ < γ₂ - β.signrepeats attempts with fresh masks, at mostKtimes (rejection sampling). - Correctness. Every accepted signature verifies (
verify_signAttempt,verify_sign): the verifier'sA z - c tequalsw - c s₂, whose high bits equal those ofwbecausec s₂isβ-short and the low bits ofw - c s₂are belowγ₂ - β(Cslib.Crypto.MLDSA.highBits_add_of_abs_lowBits_lt).
Main definitions #
Cslib.Crypto.MLDSA.Params,Cslib.Crypto.MLDSA.Params.Valid,Cslib.Crypto.MLDSA.Params.mldsa44,Cslib.Crypto.MLDSA.Params.mldsa65,Cslib.Crypto.MLDSA.Params.mldsa87: parameters.Cslib.Crypto.MLDSA.InBall: the challenge setB_τ.Cslib.Crypto.MLDSA.PublicKey,Cslib.Crypto.MLDSA.SecretKey,Cslib.Crypto.MLDSA.SecretKey.publicKey: keys, witht = A s₁ + s₂.Cslib.Crypto.MLDSA.Signature: signatures(z, c).Cslib.Crypto.MLDSA.signAttempt,Cslib.Crypto.MLDSA.sign,Cslib.Crypto.MLDSA.verify: signing with aborts and verification.
Main results #
Cslib.Crypto.MLDSA.abs_valMinAbs_negacyclicMul_le: challenge times short is short.Cslib.Crypto.MLDSA.verify_signAttempt,Cslib.Crypto.MLDSA.verify_sign: correctness.Cslib.Crypto.MLDSA.Params.valid_mldsa44,Cslib.Crypto.MLDSA.Params.valid_mldsa65,Cslib.Crypto.MLDSA.Params.valid_mldsa87: the standard parameter sets are valid.
References #
Parameters #
The side conditions used by correctness: q > 1, γ₂ > 0, the rounding range 2 γ₂
divides q - 1, the margin covers challenge-times-secret products (τ η ≤ β), and these
products have centered representatives (2 β < q). These conditions do not require
β < γ₁ or β < γ₂; without them every signing attempt aborts and correctness holds
vacuously. The standard parameter sets satisfy both.
Challenges #
Challenge times short is short. If c ∈ B_τ and ‖s‖_∞ ≤ η, then
‖c s‖_∞ ≤ τ η in R_q. Centered reduction modulo q cannot increase the norm, so a
no-wrap hypothesis is unnecessary.
Keys, signing and verification #
Signatures are compared field by field; unlike a derived instance, this one reduces under
decide.
One signing attempt with mask y: w = A y, c = H(HighBits(w), M), z = y + c s₁;
output (z, c) when ‖z‖_∞ < γ₁ - β and ‖LowBits(w - c s₂)‖_∞ < γ₂ - β, and abort otherwise.
Signing by rejection sampling: draw a mask from mask and run signAttempt, retrying after
an abort, at most K times in total; none means that all K attempts aborted.
Correctness #
The verifier's commitment for an honest response:
A (y + c s₁) - c (A s₁ + s₂) = A y - c s₂.
Once the low-bits rejection test succeeds, subtracting the challenge times a short secret preserves the high bits of the original commitment.
Correctness of one attempt. If ‖s₂‖_∞ ≤ η and the hash takes values in B_τ, every
signature output by signAttempt verifies under the matching public key.
Correctness of signing. Under the hypotheses of verify_signAttempt, every signature that
sign can output verifies, whatever the mask sampler and the retry bound.