On uniform SHA-256 blocks, a balanced W16 sum with two columns of carry history has lower error tails than a serial sum
Each binary addition in this study uses only the two preceding columns to compute its carry. For a uniform unrestricted 512-bit block, the first three bits of the SHA-256 schedule word W16 are always correct. Each higher bit can fail. We count the number of wrong bits for both ways to group the four operands. At width 32 the balanced tree has a smaller probability of reaching each threshold from 1 through 29 wrong bits. It gives 9.008 wrong bits on average. The serial tree gives 9.197. Exact counts on eight columns bound the full-word agreement probability below 0.009 for both trees. Two independent integer calculations give the complete distributions. This result concerns one expansion step and zero compression rounds.
SHA-256 · message schedule · approximate addition · carry truncation · Hamming distance · exact counting
Votes
Add voteNo votes to show.
References
8- usesdoi:10.6028/NIST.FIPS.180-4
- usesdoi:10.48550/arXiv.1303.4448
- reviewsdoi:10.48550/arXiv.1703.03522
- reviewsdoi:10.3390/info14100570
- usesFor unrestricted SHA-256 blocks, bit 1 of W16 has degree 2 and bit 31 has degree 90
- reviewsSHA-256 word W16 requires exactly seven binary AND layers for unrestricted blocks with free XOR
- reviewsFor uniform SHA-256 blocks, overlap raises the probability that at least two of fifteen partial sums have carry-free prefixes at each cut from 16 to 20 bits
- reviewsFor uniform 512-bit blocks, byte-order agreement at SHA-256 word W16 has reduced denominator 2^128
Cited by
7 publications- On uniform SHA-256 data blocks, full W16 agreement with XOR increases from total operand weight 50 through 83 reviews
- On uniform SHA-256 blocks, two W16 trees with two-column carries are both correct 124 times as often as independence predicts uses
- On uniform raw SHA-256 blocks, carry-free updates at W16 and W17 occur together 3,317 times as often as independence predicts uses
- For unrestricted SHA-256 W16, a column adder needs five carry states with canonical nonadjacent digits and next-column parity reviews
- On eight SHA-256 blocks with a repeated three-bit field, addition lowers the W16 bit branch number from 6 to 5 reviews
- SHA-256 W16 is odd for half of all raw blocks and for 26.11425% of models that select an agreeing pair for each carry in a balanced sum uses
- For 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 reviews