Adaptive programming at ML-DSA signing commitments #
The signer runs the bounded retry loop of [NIST24a], Algorithm 7, with independent ideal masks. Signing and direct digest queries use a shared classical lazy random oracle on algebraic high bits and message representatives. The fresh-overwrite hybrid programs every attempted commitment, including those whose signatures are rejected. The digest returned on success is retained alongside its polynomial expansion in the algebraic signature.
For a fixed matrix, the distance between these executions is bounded by the largest commitment atom times the number of pairs of queries that could collide. The bound covers arbitrary interleavings and early termination of the signing loop. Erasing the writes of rejected trials costs at most the number of trial/direct-query pairs times the same largest atom. Replacing the remaining accepted responses with the full-public-key simulator preserves their joint law. For a partial digest expander the simulator also records the terminal failed attempt, with a fresh commitment drawn from the public matrix. This preserves expansion errors exactly.
The transcript of the partial simulator identifies the newest writer at the verifier’s actual digest read. Either a direct oracle call supplied the digest or the signing history contains an accepted response on the same representative. In the latter case a fresh signature gives the ordinary Module-SIS witness of [BDK+21], §6.2.2, equation (8).
The algebraic input to the commitment hash: high bits of the mask commitment and a message
representative, in the order used by MLDSA.Hash.
The shared signing and digest-query interface. Successful signing replies retain the digest
and the compressed algebraic signature, and a bounded signing loop may return none.
The primitive trial interface. none asks for another trial. A terminal value of type
Reply may itself report a fatal error from a partial digest expansion.
Expand each signing request into up to K attempts on its message, stopping at the first
terminal trial. Direct digest requests pass through unchanged.
Run an adaptive program from an empty digest table. Under overwrite = false the signer
reads the ordinary lazy hash at every trial commitment. Under overwrite = true it samples a
fresh digest and writes it there, including on rejected attempts. The entire final digest table
is retained.
For S adaptive signing queries and H direct hash queries, at most T = S K trial
commitments are programmed. The honest and fresh-overwrite executions, including the final
table, are within (T H + choose(T,2)) times the largest commitment atom for the actual matrix.
Run a signer that samples a digest and an optional transcript independently of the cache at each attempt. Only accepted commitments are written. Direct hash queries use the same table, and the bounded retry loop ends at the first success.
For every adaptive signing and hash program, the accepted-write hybrid using the real masked response has exactly the law of the simulator using only the full public key. The equality includes all retry outcomes and the final table of accepted commitments and hash queries.
Adaptive classical-ROM simulation of bounded ML-DSA signing with ideal masks, for a fixed
key and a digest law whose expansion is sparse. The simulator uses the full public key. For
T = S K internal attempts and H direct queries, prior hash collisions cost
(T H + choose(T,2)) δ and later reads of erased rejected commitments cost T H δ, where
δ is the largest commitment atom for the actual matrix. The adversary sees only its output.
Route a signing request to the bounded trial loop. A terminal trial carries either a signature or an expansion error. After the loop the caller gets the signature, or one error value for either expansion failure or exhaustion of the trial budget.
Honest signing in the classical digest ROM with a partial challenge expander. An expansion error stops this signing request, even when further retries remain. A norm or hint rejection advances to the next fresh ideal mask.
One attempt of the partial-expansion signing simulator. An outer none requests another
mask. A terminal outcome records the programmed commitment and either the error or the
digest and signature returned to the adversary.
A fresh verifying response at a commitment written by the partial signing simulator yields Dilithium's ordinary MSIS witness (v3.1, §6.2.2, equation (8)). Successful expansion of the programmed raw digest rules out a terminal signing error. The simulator's own response supplies the second short witness, including for arbitrary uniform public vectors.
Simulate bounded signing against the public matrix and full public vector with the same partial digest expander. On an expansion error, independently sample a mask, program the terminal trial's commitment, and return the public error. Successful expansions use the fresh-transcript simulator.
The adaptive signing-oracle simulation bound for partial challenge expansion. Expansions may fail with arbitrary probability. Both experiments propagate that stopping event exactly in the fresh-digest hybrid, including the attempted commitment written to the hash table. Only queries colliding with earlier or erased commitments contribute to the error bound.
A digest cache write records the direct hash reply or the terminal answer of a signing request. A signing error is a terminal write, while an erased rejection makes no entry.
- ambient {Digest Reply : Type} (raw : Digest) : SigningWrite Digest Reply
First direct query at an unassigned point.
- signing {Digest Reply : Type} (raw : Digest) (reply : Reply) : SigningWrite Digest Reply
Terminal signing trial, including a possible expansion error in
reply.
The raw digest that a later lookup observes.
Execute the partial signing simulator, recording the last writer at each cache entry and the actual outward query/reply transcript. Both lists are newest first. Retry attempts are internal to a signing query and do not appear in the outward transcript.
Forgetting write annotations and the outward transcript recovers the original joint law of the adversary's output and the complete simulated digest cache.
A candidate forgery in the compressed signing ROM: a message representative, a transmitted commitment digest, and a decoded compressed signature.
The message representative bits.
- digest : Digest
The commitment digest carried by the candidate signature.
- signature : CompressedSignature P
The response, hint vector, and sparse challenge.
Append the verifier's commitment-digest query to the forger, using its output message representative and the high bits recovered from its output response. Return the candidate and the oracle answer so that verification compares the transmitted digest with the actual read.
At a fresh verifying lookup in the adaptive simulator, the newest entry is either a direct oracle answer or a signing reply on this same message representative. In the latter case the reply is in the outward transcript and subtracting it from the forgery gives an ordinary MSIS solution. Overwritten entries, signing errors and exhausted retries require no freshness assumptions. A first read by the verifier is covered by the direct-oracle case.