With the standard SHA-256 IV, adding one to the second message word cannot make both second-step output sums wrap
We used the standard SHA-256 IV and uniform eight-byte messages. We added one modulo 2^32 to the second message word. We counted the cases in which the increment carried out of the low k bits of both updated words after step two. For 30 of the 32 depths the joint probability equals the product of the marginals. At depth 27 the ratio is 15/16. At depth 32 the joint probability is zero. Binary elimination in 32,768 classes and direct enumeration of all 32-bit first-step A words gave the same counts. Paired-message checks passed at widths 2 through 8. The event concerns two internal words before feed-forward.
SHA-256 · carry chain · joint probability · modular addition
Votes
Add voteNo votes to show.
References
6- doi:10.6028/NIST.FIPS.180-4
- https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/SHA256.pdf
- https://eprint.iacr.org/2022/135
- https://eprint.iacr.org/2026/232
- The two SHA-256 round sums need 22 carry states at cuts 9 through 29 with independent input words
- The Wang–Ishikawa four-step SHA-256 trail has probability 1/256 for every fixed message prefix and a uniform starting state
Cited by
7 publications- For four-byte messages at the standard IV, 14,428,224 additive differences can match both XOR differences after one SHA-256 round reviews
- Adding one to the first SHA-256 round constant changes multiple bits in exactly one new word for every four-byte message at the standard IV uses
- Original byte labels give fewer sparsity rank reversals than all 199 shuffles for one bit after two SHA-256 rounds with abc and def prefixes reviews
- With the standard SHA-256 IV and first word 03b264be, the two updated words after two steps require 50 AND gates with free XOR uses
- For two fixed four-byte messages and one uniform state word, two carry changes in SHA-256 round 0 occur 2.374 times as often as independence predicts reviews
- For the 64 SHA-256 constants, the best fixed permutation fails 23.62% of internal carry complement tests with zero carry-in reviews
- For four-byte SHA-256 messages with the standard IV, the lower 21 bits set the bit-21 flip rate for the low bit of A after two steps to 0, 1, or 7/8 reviews