Four-byte SHA-256 messages with mean weight 16 and variance 6 to 10 allow any mean W16 carry count from 0 to 1168/65
Consider all four-byte messages with standard SHA-256 padding. Count the columns that send a carry in the W16 addition, including the last column. If the mean payload weight is 16 and its variance is from 6 to 10, the mean count can take any value from 0 to 1168/65. Both limits occur at variance 6. A quadratic bound and two message distributions prove the result. Uniform messages give a mean of 1538047/524288 at variance 8. The exact boundaries also cover every feasible variance at mean weight 16. The calculation uses one schedule word and zero compression rounds.
SHA-256 · message schedule · Hamming weight · carry · discrete moment problem
Votes
Add voteNo votes to show.
References
5- usesdoi:10.6028/NIST.FIPS.180-4
- usesdoi:10.1016/0166-218X(90)90068-N
- reviewsFor fixed-length padded SHA-256 messages, the possible W16 carries form an exact interval at every bit cut
- reviewsFor uniform fixed-length SHA-256 messages with a separate length block, 471 tail bits suffice for the W16 mean carry at all cuts and 480 give four uniform words
- reviewsFour bit counts determine the variance of the mean low carry at SHA-256 word W16 under independent column shuffles