Two position moments identify up to two disjoint swaps of the 64 SHA-256 constants with 24 low bits per moment

1 citing publication

Two disjoint swaps change four slots in the SHA-256 round constant table. We test all 1,906,128 double swaps, all 2,016 single swaps, and the clean table. Sums with index and squared-index weights identify every case with exact arithmetic or with 24 low bits per sum. At 23 bits per sum, different double swaps can give the same reading. For detection alone, the first sum modulo 587 and the second modulo 701 suffice. Every smaller second modulus fails with the first fixed at 587. Both sums modulo 587 miss 39 double swaps. Each missed pair of swaps has equal endpoint sums. We give the misses and the least working extra moduli. For a common modulus, the least one that detects all faults is 4,111. A second implementation derives the FIPS words from primes and recomputes the sums after each swap. The guarantees apply to the stored table.

SHA-256 · round constants · transposition errors · weighted checksum · fault identification

No votes to show.

References

6
  1. usesWith consecutive position weights, 587 is the least modulus that detects every single swap of the 64 SHA-256 round constants
  2. reviewsFor 64 SHA-256 constants, linear checks need 64 bits to locate one changed word and 96 bits to reject every two-word change
  3. usesdoi:10.6028/NIST.FIPS.180-4
  4. reviewsdoi:10.1109/TCOM.1982.1095369
  5. reviewshttps://www.rfc-editor.org/rfc/rfc1146
  6. reviewsdoi:10.48550/arXiv.2304.13496

Cited by

1 publication
  1. For the 64 SHA-256 constants, 740,354,144 nonzero XOR masks preserve the weight histogram at one or more salts reviews