For uniform 512-bit blocks, byte-order agreement at SHA-256 word W16 has reduced denominator 2^128

4 citing publications

We compare two SHA-256 schedule prefixes for a uniform unrestricted 512-bit block. One schedule reverses the four bytes in each seed word before expansion. The other reverses each word after expansion. The first sixteen words always agree. At W16 the exact agreement probability is an integer N divided by 2^128. We give a finite sum for N. For each fixed pair of sigma inputs there is at most one carry path, and four byte counts give its weight. Two calculations on byte-palindromic inputs show that N is odd. Thus 2^128 is the reduced denominator and the agreement rate differs from 2^-32. First divergence at W16 has probability at least 8191/8192. Direct arithmetic checks every active quadruple at widths 4 and 8. Exact carry sums also cover widths 12 and 16. For 32-bit words, the value of the numerator and the sign of the bias remain open. The test uses zero compression rounds.

SHA-256 · message schedule · byte order · modular addition · carry automaton · exact counting

No votes to show.

References

6
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/SHA256.pdf
  3. reviewshttps://eprint.iacr.org/2015/095
  4. reviewsdoi:10.46586/tosc.v2025.i1.542-591
  5. reviewsThe two SHA-256 round sums need 22 carry states at cuts 9 through 29 with independent input words
  6. reviewsA single equality test cannot match two SHA-256 schedule views exactly for 257- to 287-bit messages with standard padding

Cited by

4 publications
  1. On uniform SHA-256 blocks, two W16 trees with two-column carries are both correct 124 times as often as independence predicts reviews
  2. On uniform SHA-256 blocks, a balanced W16 sum with two columns of carry history has lower error tails than a serial sum reviews
  3. One SHA-256 schedule shift followed by byte reversal fixes exactly three nonconstant raw 16-word windows uses
  4. On 32-bit words, byte reversal agrees with SHA-256 small sigma 0 through two steps on 16 inputs and through three steps only on zero reviews