A block agreement test gives the exact state count for SHA-256 padding with a fixed carrier and a final length tag

3 citing publications

A fixed-size carrier arrives one bit at a time. A final tag selects the message prefix from a public finite set of lengths. We count the minimum retained states of a one-pass SHA-256 padding emitter at every public input position, with irrevocable whole-block output. At most two tests on the shortest padding give the count for each number of blocks already sent. A finite transition table attains the bound. For lengths 511 and 512 bits, the cut before the tag needs exactly 2^511 + 1 states. When the source sends only genuine message bits, the peak width at public positions is at most 511 bits. If that position is private and the length tag is supplied, a 512-bit tail register suffices. The proof covers all legal bit lengths. Direct enumeration checked 1,793 small-format layers and 46 restricted layers with standard padding.

SHA-256 · padding · state complexity · sequential transducers · streaming

No votes to show.

References

7
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. reviewshttps://www.rfc-editor.org/rfc/rfc6234.html
  3. usesdoi:10.1016/S0304-3975(98)00115-7
  4. reviewsdoi:10.4230/LIPIcs.LICS.2026.18
  5. usesSHA-256 padding is prefix-free through 502 bits and first has a prefix conflict at 503 bits
  6. reviewsAt the FIPS length limit, a SHA-256 block stream needs 62 state bits to verify its padding with either form of final framing
  7. reviewsEvery bit cut of a legal SHA-256 message preserves the padded words in the ACL2 model

Cited by

3 publications
  1. For a bit stream with no position signal, one early SHA-256 padding bit can raise the state width from one bit to 64 reviews
  2. With correct block alignment, the block count and nine low length bits suffice to restore SHA-256 padding on every legal message reviews
  3. Two equal-size SHA-256 length sets modulo nine need 63 and 64 state bits when the stream ends without a length tag reviews