Documentation

CslibFrontier.Crypto.Computational.MLDSA.FIPS204ResponseBinding

Binding of FIPS 204 signature bytes at a repeated challenge digest #

Two accepted, distinct FIPS 204 triples with the same digest yield either a collision at two raw SHAKE256 inputs or the short integer kernel witness of [BDK+21], §6.2.2, equation (8). The extractor decodes the public bytes and both signatures. It handles different contexts and messages, including a collision in the 64-byte message representative.

The two outputs of extraction at a repeated digest.

Check a candidate against the shared SHAKE256 digest or the ordinary Hermite MSIS instance.

Extract from two byte triples with a repeated digest. All inputs are public, including the matrix. It first checks for a collision in the message representative. If the commitment addresses differ it returns them, and otherwise it subtracts the responses.

theorem Cslib.Crypto.MLDSA.FIPS204.extractRepeatedDigest_of_verify {H : Xofs} {s : Level} {bytes : List Byte} {A : PublicMatrix s} {f g : Forgery} (hA : H.expandA s (List.take 32 bytes) = some A) (distinct : f ≠ g) (hd : List.take (digestBytes s) f.signature = List.take (digestBytes s) g.signature) (first : H.verify s bytes f.message f.context f.signature = some true) (second : H.verify s bytes g.message g.context g.signature = some true) :

Two distinct accepted triples with one digest yield a valid computed witness for any shared XOF. The external messages, contexts and signature byte strings may differ.