Length caps and alignment determine the exact degree of each SHA-256 length-field bit
Two bit strings have independent length caps. Each length can also have its own power-of-two alignment. Their largest allowed sum is less than 2^64 bits. For every bit of the SHA-256 length field, we give the minimum polynomial degree over all extensions of the allowed inputs. The endpoints of one integer interval give the degree and a term that attains it. The result gives the exact depth with binary AND gates and free affine operations. With each length below 2^63 bits, aligning either segment to bytes changes the highest bit degree from 64 to 61. The full field still needs six AND layers. With two inclusive caps of 2^62 bits, raising one cap by one bit changes the highest bit degree from 2 to 64. The proof concerns preprocessing. Small integer truth tables agreed in all 98,304 degree comparisons.
Votes
Add voteNo votes to show.
References
6- usesdoi:10.6028/NIST.FIPS.180-4
- usesdoi:10.1007/11502760_8
- usesdoi:10.46586/tosc.v2024.i3.177-199
- reviewshttps://arxiv.org/abs/1303.4448
- reviewsAcross all SHA-256 bit lengths, only length-field bits 6, 7 and 8 can be recovered from other final-block bits
- reviewsStandard padding for 55-byte messages reduces the maximum degree of SHA-256 word W16 from 90 to 61