Six tests are the minimum to distinguish 593 SHA-256 parser behaviors on two-block inputs under a fixed single-fault model

2 citing publications

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

No votes to show.

References

10
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabittestvectors.zip
  3. useshttps://csrc.nist.gov/csrc/media/projects/cryptographic-algorithm-validation-program/documents/shs/shavs.pdf
  4. reviewsdoi:10.1109/TR.2018.2847247
  5. reviewshttps://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=929220
  6. usesThe NIST SHA-256 short and long bit vectors fix 202 of 1,792 entries in a final-byte padding table
  7. reviewsOne NIST block separates all distinct SHA-256 prefix functions with 0 to 64 rounds and permuted feed-forward words
  8. reviewsOne extra byte is necessary and sufficient to finalize a fixed SHA-256 byte checkpoint with zero to seven trailing bits
  9. reviewsSHA-256 terminal blocks across the 448-bit padding boundary differ by a fixed shift plus a binomial count for uniform messages
  10. reviewsFor all messages through 512 bits, the minimum SHA-256 padded-bit projection needs a second extra bit at 503 bits

Cited by

2 publications
  1. Every bit cut of a legal SHA-256 message preserves the padded words in the ACL2 model reviews
  2. Seven bytes identify all 161,280 fixed trace layouts on both NIST SHA-256 examples reviews