Documentation

CslibFrontier.Crypto.Computational.MLDSA.QuantumCommitmentRegister

Coherent access to the ML-DSA commitment digest register #

Draw the SHAKE256 digest prefixes on all raw words of the FIPS commitment length as independent bit strings before key generation. The joint distribution of the register and the full raw XOFs is preserved. A placed coherent gate on the resulting SHAKE pair uses two XOR queries to this register, with one fixed reversible response computation between them.

The digest widths and little-endian packing follow [NIST24a], Algorithms 7 and 8, and [NIST15a], Appendix B.1. The finite oracle decomposition and gate comparison are original.

Install a literal digest prefix on every SHAKE256 word of the FIPS commitment length, including words that are also queried in another role. Long-read suffixes and SHAKE128 remain in the supplied XOF pair.

The key seed, short-vector nonces and encoded public keys read by Algorithm 6 lie outside the commitment register at each parameter set. The whole key pair and setup failure are consequently independent of the values installed there.

Digest bits at a raw commitment-length input, in SHAKE's little-endian order.

Evaluating Xofs.readDigestRegister packs the first digestBytes s SHAKE256 bytes at x in little-endian bit order.

Reading all commitment prefixes from the current streams and reinstalling them preserves every raw query, including SHAKE256 output beyond the digest.

Draw all SHAKE256 commitment-length digest prefixes independently before key generation. The register and the resulting full raw oracle pair have exactly their joint law in the finite random-XOF experiment, including all cross-role and longer coherent reads.

Generate the actual key pair before sampling the independent commitment digest register. The forger, signer and final verification all use the same installed pair of raw XOFs.

FIPS 204 signing and verification read precisely the installed digest at their packed commitment. The representative may contain any 512 bits.

The digest address decoded from a coherent device input. Queries at other lengths, at malformed addresses and to SHAKE128 ignore the loaded digest.

Compute the native SHAKE response using one loaded digest. The same raw query decoder handles both variants, shorter requests, suffixes and missing delimiters.

Realize the actual placed SHAKE XOR gate by two queries to the independent digest register. The same two scratch registers return to zero for every placement, including when the native state is entangled across the addressed and unused wires.