Eight fixed operand bits suffice and are necessary to erase any incoming carry in the four-word W16 sum
Consider an interval of at least two columns in a four-word binary sum. Each operand bit is fixed to zero, fixed to one, or free. A mask erases the incoming carry if every completion sends all four input carries to one state. A 20-state test classifies all masks. Eight fixed bits are necessary and sufficient for such a mask to exist at every width of at least two. For a fully fixed pattern of width k, only the three highest sum residues retain information. For independent uniform free operands the maximum total variation distance between exit laws is 2/B minus 1/B cubed, where B is 2 to the power k. Every prescribed output slice alone also leaves positive distance. Exact counts cover widths 1 through 32. The native application uses an unrestricted first SHA-256 data block, one schedule update and zero compression rounds.
Votes
Add voteNo votes to show.
References
6- usesTwo free gap columns suffice for exact composition of two output intervals in the unrestricted four-word SHA-256 schedule sum
- reviewsFor unrestricted W16 operands, intervals give the smallest exact partition for every family of carry thresholds
- usesFor a uniform raw SHA-256 block, sum byte 00 maximizes carry runs at W16 and FF minimizes them
- usesdoi:10.6028/NIST.FIPS.180-4
- usesdoi:10.2307/2974981
- reviewshttps://arxiv.org/abs/0806.3583