With consecutive position weights, 587 is the least modulus that detects every single swap of the 64 SHA-256 round constants
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
Votes
Add voteNo votes to show.
References
7- usesdoi:10.6028/NIST.FIPS.180-4
- reviewsdoi:10.1109/TCOM.1982.1095369
- reviewshttps://www.rfc-editor.org/rfc/rfc1146.txt
- reviewsdoi:10.1109/TDSC.2007.70216
- reviewsdoi:10.3390/s22135028
- reviewsFor 64 certified SHA-256 rows, 63 adjacent prime comparisons detect every swap of two complete rows
- reviewsFor 64 SHA-256 constants, linear checks need 64 bits to locate one changed word and 96 bits to reject every two-word change