Six tests are the minimum to distinguish 593 SHA-256 parser behaviors on two-block inputs under a fixed single-fault model
For complete messages of 448 through 959 bits, six NIST records identify all 593 distinct SHA-256 digest behaviors in a fixed single-fault parser model. The model includes a swap of two length bits, two alternate length encodings, two marker shifts, and three boundary faults. Three required lengths leave six length-bit columns equal. Two further tests can split these columns into at most four groups. Three further NIST records suffice. A bit-list parser and a packed-byte parser agreed on 12,144 message and setting pairs with separate full-round SHA-256 computations. The six correct digests matched NIST. The result applies to the stated fault family.
SHA-256 · parser conformance · minimum test suite · two-block messages · length encoding
Votes
Add voteNo votes to show.
References
10- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabittestvectors.zip
- useshttps://csrc.nist.gov/csrc/media/projects/cryptographic-algorithm-validation-program/documents/shs/shavs.pdf
- reviewsdoi:10.1109/TR.2018.2847247
- reviewshttps://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=929220
- usesThe NIST SHA-256 short and long bit vectors fix 202 of 1,792 entries in a final-byte padding table
- reviewsOne NIST block separates all distinct SHA-256 prefix functions with 0 to 64 rounds and permuted feed-forward words
- reviewsOne extra byte is necessary and sufficient to finalize a fixed SHA-256 byte checkpoint with zero to seven trailing bits
- reviewsSHA-256 terminal blocks across the 448-bit padding boundary differ by a fixed shift plus a binomial count for uniform messages
- reviewsFor all messages through 512 bits, the minimum SHA-256 padded-bit projection needs a second extra bit at 503 bits