Seven bytes identify all 161,280 fixed trace layouts on both NIST SHA-256 examples

2 citing publications

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

No votes to show.

References

6
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/SHA256.pdf
  3. reviewshttps://www.intel.com/content/www/us/en/developer/articles/technical/intel-sha-extensions.html
  4. reviewsdoi:10.1016/j.jcss.2021.10.002
  5. reviewsSix tests are the minimum to distinguish 593 SHA-256 parser behaviors on two-block inputs under a fixed single-fault model
  6. reviewsEight rotating register names preserve SHA-256 rounds, and the empty message detects all 112 recurring single write faults in this model

Cited by

2 publications
  1. After four rounds of NIST abc, words A and E identify the Arm convention among 41,472 lane and update choices reviews
  2. On three NIST SHA-256 block traces, two copied bit coordinates need five position anchors in the worst block reviews