Sparse challenges at the digest inputs of the ML-DSA random oracle #
FIPS 204, Algorithm 29 reads a SHAKE256 prefix at the digest in the signature. Exchange these 221-byte rows with independent signed sparse polynomials simultaneously at every digest. The whole pair of raw oracles has its original distribution, so the exchange applies before key generation and also to coherent queries, including longer reads at the same addresses. The sparse table here is indexed by digest. In Dilithium v3.1, §6.1, SelfTargetMSIS indexes challenges by the full lattice product and message.
Install the sparse oracle's signed challenges in the 221-byte expansion prefixes at digest addresses. Exhausted rows retain their bytes. All uses of each raw address see one stream.
Native Algorithm 29 on the modified raw SHAKE256 oracle returns the supplied sparse challenge whenever the original byte row succeeds, with exactly the original exhaustion event.
With independent uniform seed rows and sparse challenges at all digest addresses, the complete programmed raw oracle pair is distributed as the original finite random XOFs.
The entire strong-forgery experiment can draw the digest-indexed sparse challenges before setup. The key generator, signing service, coherent raw queries and verifier use the same XOFs.
A sparse challenge in an XOR response register. The first 256 bits mark its nonzero coefficients and the next 256 bits mark its negative coefficients, both in coefficient order.
Compute a native raw SHAKE reply from the value loaded from the sparse digest oracle. Rows, the background XOFs and the wire address determine the rest of the response.
Two coherent XOR queries to the digest-indexed sparse polynomial oracle implement a placed native raw SHAKE query on arbitrary superpositions and clean both scratch registers.