For a free SHA-256 word W0 or W9, Gray order reduces total W16 bit flips exactly when the fixed addend is even
Fix all message bits except one complete 32-bit word at W0 or W9. The first SHA-256 expansion word then equals the field plus a fixed addend. We prove exact flip counts for each output bit in binary order and reflected Gray order. Both orders visit every W16 value once. For a full path or cycle, Gray order gives fewer total flips for every even addend. It gives the same total for 0x7fffffff and 0xffffffff and more flips for each other odd addend. Every constant and input at widths 2 through 9 passed a direct count check. Padded 40-byte messages also passed an exhaustive low-byte check at both field positions. The result concerns W16 before compression.
SHA-256 · message schedule · reflected Gray code · transition counts · modular addition
Votes
Add voteNo votes to show.
References
4Cited by
0 publicationsNo incoming citations on sciscape.