The trailing zeros of a fixed SHA-256 round constant determine which affine changes preserve addition, choice, and majority
We classify invertible binary affine changes for two bitwise gates and addition by a fixed word. If each input and output word uses the same encoding, the low positions below the first set constant bit can permute. All other positions stay fixed. This gives only the identity for 46 of the 64 SHA-256 round constants and up to 24 encodings for the others. If the three input words can change together and both outputs use a common encoding, we give all surviving changes. We also classify changes when addition must commute on the leading input word, and when a wire contains a bank of words. The proof applies at every positive word width. Direct enumeration checks small widths. The scope is isolated ports with unrestricted words and zero complete compression rounds.
Votes
Add voteNo votes to show.
References
6- usesdoi:10.6028/NIST.FIPS.180-4
- usesFor shared-input choice and majority at any word width, separate affine symmetries permute lanes and allow eight changes per lane
- reviewsOnly the identity bit permutation preserves the first SHA-256 expansion equation with four named input words
- supportsTwo shared input words detect all 1,925 reachable single carry cuts in SHA-256 constant additions for every odd prime
- reviewshttps://pmc.ncbi.nlm.nih.gov/articles/PMC9255531/
- reviewshttps://srfp311t1.com/sha256inv
Cited by
0 publicationsNo incoming citations on sciscape.