Two weight-one masks on a uniform 512-bit block give exactly 1,864 modular differences in the first SHA-256 word

2 citing publications

Choose two fixed-weight XOR masks on the same uniform 512-bit message. We give the exact joint probability of their intersection size and the modular difference of their first 32-bit words. A second count gives both differences from the original word. At weight one, exactly 1,864 residues occur with either sampling rule. The probability of zero is 7201/8192 with replacement and 7185/8176 without replacement. Enumeration checks every positive mass at weight one and 48,384 cells at a six-bit block size. The result applies at the input to the first compression step.

SHA-256 · fixed-weight masks · hypergeometric distribution · modular differences · exact counting

No votes to show.

References

5
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/SHA256.pdf
  3. usesFor four-byte messages at the standard IV, 14,428,224 additive differences can match both XOR differences after one SHA-256 round
  4. reviewshttps://eprint.iacr.org/2022/135
  5. reviewshttps://eprint.iacr.org/2026/232

Cited by

2 publications
  1. 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
  2. One joint draw saves fair bits in 65,531 of 66,049 weight and overlap cases on a 512-bit block uses