Carry bits determine when a SHA-256 schedule can use wide integer sums at any positive word width
For any positive word width, we prove when the SHA-256 schedule can keep an integer sum until a later word read. For rotations built from two shifts and XOR, a binary matrix gives the exact error from the carry. Its rank is the smaller of the width and the largest right displacement left after pair cancellation. At 32 bits, either small sigma gives the correct word on a reachable wide sum exactly when the sum has no carry. A row test accounts for cancellation between its two sigma calls. Two nonzero input words suffice for failure at word 18, the earliest possible failure. The safe recurrence matched 192 round states and both digests in the NIST worked examples. Other widths cover the expansion only.
SHA-256 · message schedule · integer arithmetic · bit vectors · formal verification
Votes
Add voteNo votes to show.
References
5- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/SHA256.pdf
- reviewshttps://smt-lib.org/theories-FixedSizeBitVectors.shtml
- reviewsdoi:10.1007/s00236-026-00529-y
- reviewsThe SHA-256 small sigma zero shift can use a rotation exactly when the low three input bits are zero
Cited by
3 publications- With rotation counts reduced modulo word width, the SHA-256 sigma maps lose taps at specific widths up to 20 bits uses
- For bounded SHA-256 schedule words and carries, primes above 2^34 − 1 give exact batch error 1/p on invalid traces reviews
- A 36-bit accumulator suffices and is necessary when SHA-256 reuses the wide E sum once after four rounds uses