Refreshing a signing digest after adaptive quantum and signing queries #
The prefix can measure the adversary's state, answer measured signing calls and resume coherent XOR queries on the same digest table. Capped signing uses Algorithm 7's actual ExpandMask loop. All SHAKE256 roles read the same prefix-consistent XOF, including calls to expand masks and challenges that are eventually rejected.
At the distinguished attempt an independent uniform signing mask is drawn after the representative has been chosen. The retained mask and digest go through SampleInBall, the response and hint checks, and signature encoding. Refreshing the digest for the attempt and all subsequent operations costs the prefix's query disturbance times the FIPS commitment entropy factor. For an erased rejected write, a second bound counts future signer queries and the following measured quantum interaction without revealing the rejected mask. The numerical estimate averages over a uniform coefficient matrix and a fresh independent mask at the distinguished trial. The joint seeded key and ExpandMask law and the full reduction are tracked in #4987 and #5683.
The single-trial bound is an original finite-query estimate. Rejected-transcript oracle entries are central to the CMA-to-NMA arguments of [BBD+23] and [FFH25].
Capped FIPS signatures have exactly this finite outward register, including the error.
The literal digest register values of any chosen SHAKE256 stream.
Serve a raw SHAKE256 read by consulting the coherent table once for its stored digest prefix and using the fixed underlying XOF bytes for the rest.
A raw SHAKE256 read needs at most one query to the shared digest-prefix register.
A signing request on the same raw SHAKE256 table as coherent queries. The finite reply register carries the entire encoded signature or the FIPS error.
At every table, the measured request returns exactly Algorithm 2's bytes under the shared pair of XOFs, including malformed inputs, XOF exhaustion and exhausting the retry cap.
Append the actual external signing service to an interaction. Each message and context can depend on all previous measurements and complete signing replies. The explicit hedging tape may be fixed first and averaged independently.
The measured call charges the two initial SHAKE256 reads and at most ℓ + 2 per trial.
Finish a signing request from the current mask. The mask determines the commitment; the selected XOF table determines the digest, the challenge expansion and all retries.
Supplying the mask derived from the real seed and nonce recovers the entire remaining Algorithm 7 loop, including errors and all subsequent retries. The fresh ideal mask in the refresh estimate replaces exactly this value.
The three commitment-table treatments for the distinguished trial.
- ambient : TrialRefresh
Read the ambient table.
- persistent : TrialRefresh
Overwrite this entry and keep it on every outcome.
- eraseRejected : TrialRefresh
Overwrite, and restore the previous entry if the mask is rejected and the signer retries.
Final decision after a measured interaction, one distinguished fresh-mask trial, the remaining capped signing trials and an adaptive measured continuation. Only the complete signing reply reaches the adversary. The distinguished trial uses the key recorded by its prefix. The mode selects the table for retries and later queries.
Compare an honest read with a fresh digest that persists only on a terminal trial. On mask rejection the digest is restored before the signer retries. Earlier measured signing calls, coherent reads, the remaining retries and the actual adaptive continuation all contribute to the bound. The coefficient matrix is uniformly sampled at the designated FIPS level.