For the 64 SHA-256 constants, 740,354,144 nonzero XOR masks preserve the weight histogram at one or more salts
Take the 64 words in the FIPS SHA-256 round constant table. Apply the same 32-bit XOR salt to each word and count the words at each Hamming weight. At salt zero, only mask zero preserves all counts. It is also the only mask that works at every salt. Across all salts, 740,354,144 nonzero masks work at least once. All have even weight. Exactly ten of the 496 two-bit masks work. Column counts and ten witnesses prove this last result. An exact census gives 2,913,924,652 unordered pairs of distinct salts with the same histogram. A seeded set of 64 random words gives 2,847,040,776 pairs and nine two-bit masks. One program lists all masks at a given salt. Another finds a salt for a given mask or proves that none exists. These results concern only the constant table.
Votes
Add voteNo votes to show.
References
7- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://arxiv.org/abs/1711.00225
- reviewshttps://arxiv.org/abs/2507.15071
- reviewshttps://arxiv.org/abs/2608.09983
- usesdoi:10.1007/s10623-023-01191-y
- reviewsTwo position moments identify up to two disjoint swaps of the 64 SHA-256 constants with 24 low bits per moment
- reviewsNearest-dyadic intervals need 37 fractional bits to certify all 64 SHA-256 round constants
Cited by
0 publicationsNo incoming citations on sciscape.