One block detects all 2,880 single wrong-slot reads in a 16-word SHA-256 schedule
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
Votes
Add voteNo votes to show.
References
8- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabytetestvectors.zip
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/SHA256.pdf
- reviewshttps://www.cs.princeton.edu/~appel/papers/verif-sha.pdf
- reviewshttps://github.com/PrincetonUniversity/VST/blob/d50ac1969f9f6586621895eb043ccf08a165f731/sha/verif_sha_bdo7.v
- reviewshttps://www.rfc-editor.org/rfc/rfc6234
- usesEvery 16-word window in the SHA-256 schedule determines one block, and padding limits which windows occur
- reviewsThe 64-word SHA-256 schedule has exactly 48 independent bit parity equations for unrestricted blocks
Cited by
4 publications- For two clause orders of a SHA-256 schedule word, LRAT conversion paid for itself after two to four checks reviews
- Five cross-lane constraints give all correct orders for a four-step SHA-256 ring update with separate loads uses
- A 16-word SHA-256 ring with one prefetched word preserves all 64 emissions under arbitrary stalls when count and validity agree reviews
- Seven schedule emissions are necessary and sufficient to identify one lane swap or stale output in an eight-message SHA-256 test