For four-byte messages at the standard IV, 14,428,224 additive differences can match both XOR differences after one SHA-256 round

10 citing publications

We counted the XOR masks that result from a fixed addition to a uniform 32-bit word. A mask with k set bits below its top bit has probability zero or 2 to the power minus k. We then counted the messages that give the same specified mask in two words that differ by a fixed offset. With four-byte messages and the standard SHA-256 initial value, exactly 14,428,224 of the 4,294,967,296 additive differences can equal the XOR differences in both updated words after the first round. Every additive difference can match in either word alone. Two exact recurrences agreed on the full count by weight. Exhaustive tests covered widths up to 10 bits for one word and 6 bits for two words. The result concerns internal words before feed-forward.

SHA-256 · modular addition · XOR difference · carry · exact probability

No votes to show.

References

11
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. useshttps://csrc.nist.gov/Projects/Cryptographic-Algorithm-Validation-Program/Secure-Hashing
  3. useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabytetestvectors.zip
  4. reviewshttps://www.cits.ruhr-uni-bochum.de/imperia/md/content/magnus/dissmd4.pdf
  5. reviewshttps://diglib.tugraz.at/download.php?id=576a7a85b2dc5&location=browse
  6. reviewshttps://people.eecs.berkeley.edu/~daw/papers/twofish-aes98.pdf
  7. reviewshttps://eprint.iacr.org/2022/135
  8. reviewshttps://eprint.iacr.org/2026/232
  9. usesExact affine models of the first SHA-256 round need at least 139,221 subspaces to cover all four-byte messages at the standard IV
  10. reviewsWith the standard SHA-256 IV, adding one to the second message word cannot make both second-step output sums wrap
  11. reviewsFinal carries preserve collision decisions and explain the spread of XOR errors at 32 SHA-256 rounds with a fixed IV

Cited by

10 publications
  1. The XOR and modular-difference weights of two independent uniform n-bit words have covariance (1 − 2⁻ⁿ)/2 reviews
  2. For two free round words with shared low bits, a fixed SHA-256 state permits every pair of window XOR reports only if at most one free bit overlaps uses
  3. Two weight-one masks on a uniform 512-bit block give exactly 1,864 modular differences in the first SHA-256 word uses
  4. With the standard SHA-256 IV and first word 03b264be, the two updated words after two steps require 50 AND gates with free XOR uses
  5. 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
  6. For a known nonzero SHA-256 word difference with lowest set bit j, exactly ceil((32−j)/2) fixed bit labels suffice in the worst case reviews
  7. For two fixed four-byte messages and one uniform state word, two carry changes in SHA-256 round 0 occur 2.374 times as often as independence predicts reviews
  8. Two copied words account for 89% of the four-round SHA-256 feed-forward error score gap when bit 24 of the first word changes reviews
  9. After two SHA-256 rounds from the standard IV, a second aligned B and F window adds at most one bit of match evidence for independent uniform eight-byte messages uses
  10. The two 32-bit SHA-256 small sigma maps have disjoint input separations for each prescribed single output bit flip uses