For all messages through 512 bits, the minimum SHA-256 padded-bit projection needs a second extra bit at 503 bits

2 citing publications

We count distinct messages after SHA-256 padding. An explicit padded block and a length selector give the same accepted length and payload keys for every test on the active padded input. Two SAT instances accept the same six messages of lengths 0, 1 and 3. We also restrict the counter to fixed positions in a 1024-bit input. We put one zero block after each one-block input for storage. For all messages from length zero through L, the minimum number of positions that identifies each message is zero at L = 0, L+1 for L from 1 through 502, and L+2 for L from 503 through 512. We prove the bounds and check all 131,328 pairs of length classes. The extra position becomes necessary inside the two-block range. The tests stop before compression.

SHA-256 · FIPS 180-4 · bit padding · SAT · projected model counting · independent support

No votes to show.

References

5
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. useshttps://arxiv.org/abs/1507.07648
  3. usesdoi:10.1016/j.artint.2026.104605
  4. usesSHA-256 padding is prefix-free through 502 bits and first has a prefix conflict at 503 bits
  5. usesSHA-256 terminal blocks across the 448-bit padding boundary differ by a fixed shift plus a binomial count for uniform messages

Cited by

2 publications
  1. Across all SHA-256 bit lengths, only length-field bits 6, 7 and 8 can be recovered from other final-block bits reviews
  2. Six tests are the minimum to distinguish 593 SHA-256 parser behaviors on two-block inputs under a fixed single-fault model reviews