In a native 32-bit sum for SHA-256 W16, the top two bits of each operand determine the carry when the output word is known
We prove when a packed sum of bounded words has a unique carry over a ring modulo a power of two. For four 32-bit words with carry from 0 through 3, one equation needs a modulus of at least 2^34. At the native modulus 2^32, a second equation can use the high bits of the operands and output. We prove two necessary and sufficient range tests. For SHA-256 W16 they allow exactly 2 through 30 high bits in this equation. Two valid data blocks show that one leading bit per operand cannot identify the carry even with the full output word. A separate bit-column calculation gives output 20100046 in hexadecimal and carry 3 for one fixed first block. The checks cover one expansion step and zero compression rounds.
SHA-256 · message schedule · modular arithmetic · carry · range constraints
Votes
Add voteNo votes to show.
References
7- usesdoi:10.6028/NIST.FIPS.180-4
- reviewshttps://www.informit.com/articles/article.aspx?p=1959565&seqNum=13
- reviewshttps://eprint.iacr.org/2023/1057
- reviewsFor bounded SHA-256 schedule words and carries, primes above 2^34 − 1 give exact batch error 1/p on invalid traces
- reviewsA 15-bit low limb and a 17-bit high limb give unique carries for every free SHA-256 round exactly when the field prime exceeds 651,883
- reviewsFor fixed-length padded SHA-256 messages, the possible W16 carries form an exact interval at every bit cut
- reviewsCarry-based proof transfer used 5.64 times the proof bytes of direct SAT for one 32-bit SHA-256 schedule update