Two weight-one masks on a uniform 512-bit block give exactly 1,864 modular differences in the first SHA-256 word
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
Votes
Add voteNo votes to show.
References
5- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/SHA256.pdf
- usesFor four-byte messages at the standard IV, 14,428,224 additive differences can match both XOR differences after one SHA-256 round
- reviewshttps://eprint.iacr.org/2022/135
- reviewshttps://eprint.iacr.org/2026/232