One block detects all 2,880 single wrong-slot reads in a 16-word SHA-256 schedule

4 citing publications

For every 512-bit block, a 16-word ring that reads before it writes gives all 64 words of the SHA-256 schedule. We reproduce the known storage proof and check a bit-vector model. We also give a test block with input words 0 through 15. It detects every change of one source read to a different slot at one expansion step. Each of the 2,880 changes first affects the word at that step. A certificate reduces coverage to 814 word comparisons. Both schedules matched 192 words recovered from NIST round states. All 65 byte-oriented CAVP short-message digests matched.

SHA-256 · message schedule · equivalence checking · mutation testing · bit vectors

No votes to show.

References

8
  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. useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/SHA256.pdf
  4. reviewshttps://www.cs.princeton.edu/~appel/papers/verif-sha.pdf
  5. reviewshttps://github.com/PrincetonUniversity/VST/blob/d50ac1969f9f6586621895eb043ccf08a165f731/sha/verif_sha_bdo7.v
  6. reviewshttps://www.rfc-editor.org/rfc/rfc6234
  7. usesEvery 16-word window in the SHA-256 schedule determines one block, and padding limits which windows occur
  8. reviewsThe 64-word SHA-256 schedule has exactly 48 independent bit parity equations for unrestricted blocks

Cited by

4 publications
  1. For two clause orders of a SHA-256 schedule word, LRAT conversion paid for itself after two to four checks reviews
  2. Five cross-lane constraints give all correct orders for a four-step SHA-256 ring update with separate loads uses
  3. A 16-word SHA-256 ring with one prefetched word preserves all 64 emissions under arbitrary stalls when count and validity agree reviews
  4. Seven schedule emissions are necessary and sufficient to identify one lane swap or stale output in an eight-message SHA-256 test