For three carry-save stages in SHA-256 round 0, the tree changes the raw rail sum on 3/8 of four-byte messages
We study the five-word T1 sum before its last binary addition. We prove which position weights modulo m survive every local three-input compressor step. At width 32 the ordinary raw residue survives all steps exactly when m divides 2^32. Each discarded top carry has weight 2^32 in the correction. For all four-byte messages from the standard IV, the top three message bits determine the carry losses of all 40 whole-word schedules. On exactly three of the eight prefixes, two schedules give different raw sums. A column check and a full-width example verify the calculation. The result concerns an internal sum in one round.
SHA-256 · carry-save addition · modular checks · round circuit · truncation
Votes
Add voteNo votes to show.
References
8- usesTwo adder trees give the same 256-bit state after one SHA-256 round for all 32-bit inputs
- reviewsA scalar SHA-256 model with carry-save adders gives the reference digest for every message shorter than 2^64 bits
- reviewsOn unrestricted SHA-256 blocks, only two independent rail parities survive a change of W16 carry-save tree
- reviewsA stored operand residue modulo 3 detects every shared single-bit inversion in a duplicated 32-bit SHA-256 adder with a live carry
- usesdoi:10.6028/NIST.FIPS.180-4
- reviewsdoi:10.3390/s22239160
- reviewsdoi:10.1109/TC.2007.1015
- reviewshttps://www.mbsullivan.info/attachments/papers/sullivan2012lrc.pdf