With the standard IV and 40-byte messages, register copies generate all constant parities across SHA-256 states 8 through 11
We determine all bit parities that are constant across four consecutive SHA-256 working states. We use all messages of exactly 40 bytes with standard padding and the standard initial value. After 8 through 11 updates, six copied words per update give 576 independent equations on 1,024 positions. A certificate from 449 valid messages gives rank 448 on the remaining coordinates. This proves that the copy equations generate every constant parity in this window. With 64 independent uniform messages, an exact 5% binomial test of one fair bit rejects with probability 3.28%. Counting its four occurrences as independent raises this probability to 26.04%.
SHA-256 · affine hull · register copies · parity masks · rank certificate · binomial test
Votes
Add voteNo votes to show.
References
9- doi:10.6028/NIST.FIPS.180-4
- https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabytetestvectors.zip
- https://eprint.iacr.org/2008/131
- https://pure.tugraz.at/ws/portalfiles/portal/2784802/sha2eurocrypt.pdf
- https://srfp311t1.com/sha256inv
- doi:10.1007/s00145-018-9308-x
- 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
- usesThe SHA-256 schedule has binary affine dimension 1744 for all 32-byte messages with FIPS padding
- usesFor uniform 55-byte messages with the last bit flipped, a 95% band places mean SHA-256 bit change within 0.005 of one half from round 20 through the digest
Cited by
5 publications- In one SHA-256 round with a uniform state and a fixed word, old d and the two new words first show dependence at 19 low bits each
- Six copied SHA-256 registers leave exactly 2^160 ambiguous records at state 9 with a gap of one or two rounds on one-block messages reviews
- With the standard IV and two free message words, the eight SHA-256 output words after two rounds and feedforward have binary affine dimension 124 uses
- Copy shifts leave 64 to 112 words free in a 64-round SHA-256 trace with one register observed per round and a known IV uses
- Four bits per word sum of squares isolate six copy candidates in 65,536 SHA-256 traces at rounds 20 and 21 reviews