For the 64 SHA-256 constants, the best fixed permutation fails 23.62% of internal carry complement tests with zero carry-in
Can a permutation of the 64 SHA-256 constants make the carries opposite when the free input word is complemented? We counted all 32-bit inputs and all 31 internal bit boundaries. With ordinary addition the best fixed permutation fails 2,012,427,837,596 of 8,521,215,115,264 tests. With carry-in one on the paired side it fails 1,906,504,099,860. Integer bounds certify both minima. A separate permutation for each boundary gives a lower failure count in both cases. Integer root bounds recover all 64 round constants and eight initial words. The 64 constants have 993 one bits, with exactly four balanced columns. The results apply to a single addition with a free input word.
SHA-256 · round constants · integer roots · carry · assignment problem
Votes
Add voteNo votes to show.
References
8- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://csrc.nist.gov/projects/cryptographic-algorithm-validation-program/secure-hashing
- reviewshttps://algorithm.tamnd.com/sha-2/
- reviewshttps://isa-afp.org/browser_info/current/AFP/Crypto_Standards/FIPS180_4.html
- usesdoi:10.1002/nav.3800020109
- reviewshttps://research.tue.nl/en/publications/rotational-cryptanalysis-in-the-presence-of-constants/
- reviewsThe two SHA-256 round sums need 22 carry states at cuts 9 through 29 with independent input words
- reviewsWith the standard SHA-256 IV, adding one to the second message word cannot make both second-step output sums wrap
Cited by
5 publications- Two shared input words detect all 1,925 reachable single carry cuts in SHA-256 constant additions for every odd prime uses
- With one uniform input word, 50 full carry trace pairs tie at probability 2⁻¹⁷ for SHA-256 constants K[2] and K[3] reviews
- For 64 certified SHA-256 rows, 63 adjacent prime comparisons detect every swap of two complete rows uses
- Seven prefix bits suffice and six fail for the 72 SHA-256 root floors with three fixed prime fields uses
- Nearest-dyadic intervals need 37 fractional bits to certify all 64 SHA-256 round constants supports