Programming the SHAKE128 addresses used by ExpandA #
Algorithm 32 of FIPS 204 reads a different raw SHAKE128 input for each matrix entry. At a fixed public seed the experiment samples the prefixes at those inputs, holding the rest of the XOF fixed. Longer reads return the original stream after byte 894.
The SHAKE128 prefixes used by Algorithm 32, indexed by matrix row and column.
Install 894 bytes at each literal SHAKE128 matrix address for one public seed. The suffix at each such address and all reads at other inputs are supplied by the original XOF.
Programming SHAKE128 matrix prefixes leaves the SHAKE256 oracle unchanged.
Reading a programmed matrix address through the production SHAKE128 interface returns its full replacement followed by the original suffix, truncated at the requested byte count.
Every raw input outside the ρ || column || row grid retains all its SHAKE128 bytes.
Program all matrix prefixes using an external matrix in coefficient representation. At each address, exchange the accepted proposals with the forward NTT of that matrix entry.
The programmed XOF makes Algorithm 32 return the supplied coefficient matrix on each successful execution. It exhausts exactly when Algorithm 32 exhausts on the original prefixes.
Joint law of the full shared XOF and the optional matrix output of FIPS 204 Algorithm 32, for each public seed and each FIPS parameter set. Both experiments draw independent uniform 894-byte prefixes at the matrix addresses. The programmed experiment takes an independent uniform lattice challenge in coefficient form and reports it when the original prefixes suffice.