Equal word values save 130 small-sigma calls across 11 SHA-256 final blocks with lengths below 2^32 bits
For some bit lengths, the last SHA-256 block contains only zeros and the encoded length. Its first four nonzero expanded words at odd indices are successive applications of the small-sigma-1 function to the length. We select each next length with this function. For lengths below 2^32 bits, a binary rank certificate proves that at most 11 consecutive lengths can be distinct and put the delimiter in the preceding block. We give the list that attains this bound. Direct expansion of its eleven final blocks takes 2,640 word operations. Sharing equal structures after zero simplification takes 1,892. Sharing equal values takes 1,762. It saves 60 small-sigma-0 calls and 70 small-sigma-1 calls at setup. This last count is exact when all intermediate values are required and only the seed words are free. A second implementation checks each gate. The result concerns forward schedule preparation for full SHA-256.
Votes
Add voteNo votes to show.
References
7- usesdoi:10.6028/NIST.FIPS.180-4
- usesFor one 120-byte SHA-256 prefix, caching by length saves 135 additions and 75 small-sigma calls per message after setup
- usesSHA-256 terminal blocks across the 448-bit padding boundary differ by a fixed shift plus a binomial count for uniform messages
- usesThe 32-bit SHA-256 small sigma maps generate GL(32,2), and their fair random walk first contracts in two steps
- reviewsdoi:10.1109/ACCESS.2026.3710840
- reviewshttps://eprint.iacr.org/2012/067
- reviewshttps://people.eecs.berkeley.edu/~alanmi/research/fraigs/fraigs.pdf