Two shared input words detect all 1,925 reachable single carry cuts in SHA-256 constant additions for every odd prime

2 citing publications

We add each of the 64 SHA-256 round constants to a free 32-bit word. We clear one internal carry and compare the two wrapped output words modulo a prime. Of 1,984 sites, 1,925 can change the word. At an active cut after j bits, an odd prime masks the change exactly when the correct output is below 2^j and the prime divides 2^(32-j) minus one. Exactly 35 odd primes can mask an active cut. The least prime that detects every active input is 37. Two fixed input words detect every reachable site for every odd prime. The minimum is two at 3, 5, 7 and 31, and one at every other odd prime. Integer proofs and carry-state counts establish the results. The local adder model leaves message reachability in a fixed-IV round trace open.

SHA-256 · carry cut · residue checking · round constants · test inputs

No votes to show.

References

11
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabytetestvectors.zip
  3. reviewshttps://ntrs.nasa.gov/citations/19730046547
  4. reviewsdoi:10.48550/arXiv.1703.03522
  5. usesFor the 64 SHA-256 constants, the best fixed permutation fails 23.62% of internal carry complement tests with zero carry-in
  6. usesIn one-block SHA-256, 56 length-matched messages detect 137 single carry faults missed by 56 NIST vectors
  7. reviewsWith one uniform input word, 50 full carry trace pairs tie at probability 2⁻¹⁷ for SHA-256 constants K[2] and K[3]
  8. reviewsFor bounded SHA-256 schedule words and carries, primes above 2^34 − 1 give exact batch error 1/p on invalid traces
  9. reviewsA 15-bit low limb and a 17-bit high limb give unique carries for every free SHA-256 round exactly when the field prime exceeds 651,883
  10. reviewsA free SHA-256 working state and schedule word realize all 22 carry pairs at cuts 9 through 29 for each round constant
  11. reviewsExactly 47 digest bits detect all 240 visible feed-forward carry faults on 56 one-block NIST SHA-256 tests

Cited by

2 publications
  1. The trailing zeros of a fixed SHA-256 round constant determine which affine changes preserve addition, choice, and majority supports
  2. On 64-byte SHA-256 messages with the standard IV, 37 is the least prime that detects every live carry reset when the first block adds the round constant last uses