Eight rotating register names preserve SHA-256 rounds, and the empty message detects all 112 recurring single write faults in this model

2 citing publications

For any eight initial words and any eight round words, a cycle of register names gives the scalar SHA-256 state at every phase. A symbolic check covers the last store and the return to the first register order. With the standard IV and padding, the empty message detects all 112 ways to redirect one store in an eight-round body that runs eight times. It also detects all 896 cases with a wrong store in one round only. A second program checks each final digest in logical coordinates. The model reads the old state before it stores the new a word and then the new e word.

SHA-256 · register renaming · functional equivalence · mutation testing

No votes to show.

References

9
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabytetestvectors.zip
  3. reviewshttps://github.com/openssl/openssl/blob/openssl-3.0.0/crypto/sha/sha256.c
  4. reviewshttps://device.report/m/6a7c3149aa356689b7b8da2ec583b0f7ba4aee534095695f785dba320a62410b
  5. reviewshttps://www.cs.princeton.edu/~appel/papers/verif-sha-2.pdf
  6. reviewshttps://eprint.iacr.org/2023/1861
  7. usesCopy shifts leave 64 to 112 words free in a 64-round SHA-256 trace with one register observed per round and a known IV
  8. usesFor any fixed SHA-256 block and uniform IV, each working state is uniform and its first four words are independent of those four words four rounds later
  9. reviewsTwo ways to group SHA-256 round outputs give word graphs of treewidth 25 and 24 at 64 rounds on 52-byte messages

Cited by

2 publications
  1. Three in-place stores preserve all 64 SHA-256 rounds, and a wrong register phase can match exactly on periodic states uses
  2. Seven bytes identify all 161,280 fixed trace layouts on both NIST SHA-256 examples reviews