Eight fixed operand bits suffice and are necessary to erase any incoming carry in the four-word W16 sum

2 citing publications

Consider an interval of at least two columns in a four-word binary sum. Each operand bit is fixed to zero, fixed to one, or free. A mask erases the incoming carry if every completion sends all four input carries to one state. A 20-state test classifies all masks. Eight fixed bits are necessary and sufficient for such a mask to exist at every width of at least two. For a fully fixed pattern of width k, only the three highest sum residues retain information. For independent uniform free operands the maximum total variation distance between exit laws is 2/B minus 1/B cubed, where B is 2 to the power k. Every prescribed output slice alone also leaves positive distance. Exact counts cover widths 1 through 32. The native application uses an unrestricted first SHA-256 data block, one schedule update and zero compression rounds.

SHA-256 · W16 · carry propagation · synchronizing words · total variation · masked addition

No votes to show.

References

6
  1. usesTwo free gap columns suffice for exact composition of two output intervals in the unrestricted four-word SHA-256 schedule sum
  2. reviewsFor unrestricted W16 operands, intervals give the smallest exact partition for every family of carry thresholds
  3. usesFor a uniform raw SHA-256 block, sum byte 00 maximizes carry runs at W16 and FF minimizes them
  4. usesdoi:10.6028/NIST.FIPS.180-4
  5. usesdoi:10.2307/2974981
  6. reviewshttps://arxiv.org/abs/0806.3583

Cited by

2 publications
  1. Independent gap bits with common bias 2/5 can preserve carry dependence longer than fair bits in a variable-width model of SHA-256 W16 reviews
  2. With fair free bits and a nonempty prefix, two middle bits are necessary and sufficient to separate the outer W16 observations on every row reviews