For uniform raw SHA-256 blocks, the joint law of the W16, W17 and W18 carry-outs first differs from independent sums at bit 15
Take a uniform raw 512-bit block. Observe the integer carry out of the same bit in each of the four-word additions for W16, W17 and W18. Through bit 14, the three complete carry histories have the law of independent additions. At bit 15, each of the 64 joint carry probabilities changes. The probability that W16 and W17 both have carry zero increases by exactly 2^-68. At this cut W16 and W18 still have independent outgoing carries. Three parity constraints describe operand reuse. The constraint on the computed W16 cancels when only the outgoing carries are observed. A signed sum over bits and a separate count with hexadecimal digits give the same table. The calculation uses zero compression rounds.
SHA-256 · message schedule · carry probability · exact counting · word reuse
Votes
Add voteNo votes to show.
References
6- usesdoi:10.6028/NIST.FIPS.180-4
- usesdoi:10.48550/arXiv.0902.0179
- usesFor uniform SHA-256 blocks, overlap raises the probability that at least two of fifteen partial sums have carry-free prefixes at each cut from 16 to 20 bits
- reviewsRaw bits 1, 3 and 11 form the unique smallest set that separates adjacent carry-free events at cut 16 for uniform SHA-256 blocks
- usesOn uniform raw SHA-256 blocks, carry-free updates at W16 and W17 occur together 3,317 times as often as independence predicts
- reviewsdoi:10.3390/cryptography10030032
Cited by
4 publications- With the three low-half carries observed on uniform raw SHA-256 blocks, three earlier carry readings are necessary and sufficient to detect W16 reuse uses
- On uniform SHA-256 blocks, exchanging words 9 and 10 preserves both W16 and W17 carries at cut k with probability (1 + 4⁻ᵏ)/2 uses
- For uniform 55-byte messages, the first joint carry difference in SHA-256 words W16 to W18 occurs at bit 16 uses
- For a uniform raw SHA-256 block, sum byte 00 maximizes carry runs at W16 and FF minimizes them uses