For all messages through 512 bits, the minimum SHA-256 padded-bit projection needs a second extra bit at 503 bits
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.
Votes
Add voteNo votes to show.
References
5- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://arxiv.org/abs/1507.07648
- usesdoi:10.1016/j.artint.2026.104605
- usesSHA-256 padding is prefix-free through 502 bits and first has a prefix conflict at 503 bits
- usesSHA-256 terminal blocks across the 448-bit padding boundary differ by a fixed shift plus a binomial count for uniform messages