With consecutive position weights, 587 is the least modulus that detects every single swap of the 64 SHA-256 round constants

1 citing publication

For the 64 SHA-256 round constants, a sum with round indices as weights detects every single swap at modulus 587. Each smaller modulus misses at least one swap. The correct residue is 257 with indices 0 through 63. We enumerate all divisors of the 2,016 swap differences. Exactly 76,819 integer moduli fail. The data give every missed pair for each of them. A separate implementation derives the constants from primes and checks every swap. If each slot can use a fixed weight chosen for the correct table, the least modulus is 551. Both checks need 10 output bits. These results concern the stored table.

SHA-256 · round constants · transposition errors · modular checksum · error detection

No votes to show.

References

7
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. reviewsdoi:10.1109/TCOM.1982.1095369
  3. reviewshttps://www.rfc-editor.org/rfc/rfc1146.txt
  4. reviewsdoi:10.1109/TDSC.2007.70216
  5. reviewsdoi:10.3390/s22135028
  6. reviewsFor 64 certified SHA-256 rows, 63 adjacent prime comparisons detect every swap of two complete rows
  7. reviewsFor 64 SHA-256 constants, linear checks need 64 bits to locate one changed word and 96 bits to reject every two-word change

Cited by

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