Adding one to the first SHA-256 round constant changes multiple bits in exactly one new word for every four-byte message at the standard IV

2 citing publications

A SHA-256 round uses one temporary sum in both new words. We give an exact joint generating function for the numbers of bits that change when a fixed offset is added to the round constant. The method uses eight carry states for one uniform word and a fixed difference between the words. For an increment of one and a random difference, we prove a necessary and sufficient condition for independence of the weights when one word is uniform given the difference. At the standard initial value, the first round on uniform four-byte messages has an odd fixed difference. Adding one changes more than one bit in exactly one word on every message. The independent model gives probability one half. For the offset 0x55555555 the total variation distance from the independent model is about 0.042525. Direct enumeration of all four-byte messages agreed with both exact tables. The result concerns the two internal words before feed-forward.

SHA-256 · modular addition · carry propagation · Hamming distance · joint probability generating function

No votes to show.

References

9
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. useshttps://csrc.nist.gov/Projects/Cryptographic-Algorithm-Validation-Program/Secure-Hashing
  3. useshttps://mouha.be/wp-content/uploads/sfunction.pdf
  4. reviewshttps://eprint.iacr.org/2020/1025
  5. reviewsdoi:10.46586/tosc.v2025.i1.542-591
  6. reviewshttps://eprint.iacr.org/2026/232
  7. reviewsThe two SHA-256 round sums need 22 carry states at cuts 9 through 29 with independent input words
  8. 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
  9. usesWith the standard SHA-256 IV, adding one to the second message word cannot make both second-step output sums wrap

Cited by

2 publications
  1. For 64 SHA-256 constants, linear checks need 64 bits to locate one changed word and 96 bits to reject every two-word change
  2. 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