At 770 six-step SHA-256 evaluations, full bit sweeps met a one-bit error limit in 256 of 256 trials on a fixed 512-message panel
We compared two published ways to sample input bit changes at the same forward cost. We used the first six SHA-256 steps and read the 256 working bits before feed-forward. A census of 512 fixed 48-byte messages and all 384 payload flips gave a mean of 34.50091552734375 changed bits. At 770 evaluations per estimate, two full bit sweeps gave errors within one bit in 256 of 256 assigned trials. One uniform bit on each of 385 bases met the same limit in 81 trials. The exact one-sided paired randomization test gave a probability of 2 to the power minus 175 under the sharp null. A separate count found 24 misses among all 130,816 possible two-base sweeps. The result applies to this panel, depth and direct evaluation budget.
SHA-256 · finite population · bit sampling · paired randomization · forward diffusion
Votes
Add voteNo votes to show.
References
6- usesIn 8,192 tests of 16-round SHA-256 on 48-byte payloads of weight 192, swaps changed 0.829 more output bits than matched single flips
- usesdoi:10.3390/cryptography8030040
- reviewsdoi:10.3390/cryptography10030032
- useshttps://github.com/RileyVaughn/Sha256-SAC/tree/e29e39fc6b00274e38502d4ac8fe62b02a967c97
- reviewsFor 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
- usesdoi:10.6028/NIST.FIPS.180-4