Eight of 129 NIST byte tests are necessary and sufficient to detect one fixed bit swap between adjacent SHA-256 output words
Use full SHA-256 with one fixed output fault. The fault exchanges two bits in neighboring words of the eight-word digest. The offset in each word is free. We used 129 NIST short and long byte messages. Exactly 8 messages are necessary and sufficient. All 99,949,406,400 seven-message choices leave a legal pair equal on every test. We stopped the eight-row search once a witness passed a direct check. The number of successful eight-row suites remains unknown. When cost is the number of padded blocks, nine are necessary and sufficient. Tables give an undetected pair for any failed suite. With unrestricted fixed permutations, the same 8 messages leave 114 bit pairs tied. An earlier eleven-message suite separates all 256 bit positions.
Votes
Add voteNo votes to show.
References
6- usesAny eight of 129 NIST SHA-256 byte tests admit at least 33,554,432 fixed output bit permutations, and eleven selected tests identify the wiring
- reviewsFour extra NIST byte tests protect an eleven-test SHA-256 wiring certificate against the loss of any one response
- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabytetestvectors.zip
- reviewsdoi:10.1007/s10107-003-0414-6
- reviewshttps://csrc.nist.gov/pubs/journal/2018/09/finding-bugs-in-cryptographic-hash-function-implem/final