ML-DSA hint generation and use #
ML-DSA compresses a commitment to its high-order bits. The signer supplies one hint bit per
coefficient saying whether a short correction changes those bits, and the verifier uses that bit
to move by one high-order bucket in the direction determined by the low bits. These are Algorithms
39 (MakeHint) and 40 (UseHint) of [NIST24a].
Main definitions #
Cslib.Crypto.MLDSA.makeHint: whether adding a correction changes the high bits.Cslib.Crypto.MLDSA.useHint: adjust the high bits by the supplied hint.Cslib.Crypto.MLDSA.hintResidual: the short residual between the hinted high part and the original coefficient.Cslib.Crypto.MLDSA.makeHintVec,Cslib.Crypto.MLDSA.useHintVec: coefficientwise forms.
Main results #
Cslib.Crypto.MLDSA.useHint_makeHint: the recovery property in Lemma 1(1) of the Dilithium specification.Cslib.Crypto.MLDSA.useHint_nonneg,Cslib.Crypto.MLDSA.useHint_lt: the output range.Cslib.Crypto.MLDSA.useHint_injective: distinct hint bits give distinct adjusted high bits.Cslib.Crypto.MLDSA.useHint_mul_eq_add_hintResidual,Cslib.Crypto.MLDSA.abs_hintResidual_valMinAbs_le: the residual identity and bound in Lemma 1(2) of the Dilithium specification.Cslib.Crypto.MLDSA.useHintVec_makeHintVec: coefficientwise recovery.
The printed output bound of Algorithm 40 is non-strict, but NIST's potential-updates spreadsheet
(identified 2026-02-27) records the strict range 0 ≤ r₁ < (q - 1) / (2 γ₂) used by w1Encode.
The range theorem below states this corrected bound.
References #
The hinted high part is the original coefficient plus its residual. This is the scalar identity used in Equation (9) of Section 6.2.1 of the Dilithium v3.1 specification.
Arbitrary-hint residual bound. For every hint bit and coefficient, the centered residual
between r and 2 γ₂ · UseHint(h, r, 2 γ₂) has magnitude at most 2 γ₂ + 1. This is the scalar
norm statement in Lemma 1(2) of the Dilithium v3.1 specification. The vector lemma additionally
states that only set-hint positions can exceed γ₂; that sparsity refinement is separate.
Hint recovery. If |z| ≤ γ₂, using the hint made from z and r recovers the high bits
of r + z. This is the scalar form of Lemma 1(1) in the Dilithium v3.1 specification, with its
α specialized to 2 γ₂.