Seven bytes identify all 161,280 fixed trace layouts on both NIST SHA-256 examples
A trace exporter can omit the order of eight words, the byte order in each word, and the bit order in each byte. We allow every fixed word permutation and two uniform choices for each order. Seven byte reads after round 0 identify all 161,280 layouts on the NIST abc example and on each block of its two-block example. Six reads leave at least two slots unread. Eight reads are necessary and sufficient when one byte can be erased. Fifteen are necessary and sufficient when one byte can be wrong. For individual bit reads on abc, 28 are necessary and sufficient when one slot is unavailable. With all eight slots available the minimum lies between 18 and 28. The result requires known message, block, round, and word boundaries.
SHA-256 · trace layout · byte order · bit order · test selection · register permutation
Votes
Add voteNo votes to show.
References
6- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/SHA256.pdf
- reviewshttps://www.intel.com/content/www/us/en/developer/articles/technical/intel-sha-extensions.html
- reviewsdoi:10.1016/j.jcss.2021.10.002
- reviewsSix tests are the minimum to distinguish 593 SHA-256 parser behaviors on two-block inputs under a fixed single-fault model
- reviewsEight rotating register names preserve SHA-256 rounds, and the empty message detects all 112 recurring single write faults in this model