Length caps and alignment determine the exact degree of each SHA-256 length-field bit

2 citing publications

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.

SHA-256 · message padding · algebraic degree · binary addition · multiplicative depth · partial Boolean function

No votes to show.

References

6
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. usesdoi:10.1007/11502760_8
  3. usesdoi:10.46586/tosc.v2024.i3.177-199
  4. reviewshttps://arxiv.org/abs/1303.4448
  5. reviewsAcross all SHA-256 bit lengths, only length-field bits 6, 7 and 8 can be recovered from other final-block bits
  6. reviewsStandard padding for 55-byte messages reduces the maximum degree of SHA-256 word W16 from 90 to 61

Cited by

2 publications
  1. With independent rules at 512 block residues, 512 new lengths identify SHA-256 length counter errors reviews
  2. For byte messages with a separate SHA-256 length block, W21 bit 1 is the first schedule bit nonlinear in the byte count reviews