With two SHA-256 calls, prefix-free padded bit records lose one tag bit for payload limits from 512 to 958 bits
Each class has a fixed binary tag and accepts every bit string through length L. Tags can end at any bit. We require the padded SHA-256 records to be prefix-free. With one call the maximum tag depth is 447 minus L. With two calls it is 959 minus L through L = 511 and 958 minus L thereafter. A negative depth excludes every class. At a feasible depth d the maximum class count is 2^d when d is the deepest feasible tag. A fixed-width binary body attains the bound. We also count the fewest payloads that require a change from literal concatenation at each feasible tag. At L = 512 the optimal tag has 446 bits and only three payloads per tag need a change. All 513 published NIST short bit-message digests matched. These bounds concern the inputs to compression.
Votes
Add voteNo votes to show.
References
9- usesWith two SHA-256 blocks, prefix-free padded byte records lose one tag byte at payload limits of 64 bytes or more
- usesSHA-256 padding is prefix-free through 502 bits and first has a prefix conflict at 503 bits
- usesTag overlap gives the exact payload cap for disjoint SHA-256 inputs with fixed prefixes and suffixes
- usesUnequal-length SHA-256 collisions give a compression collision in the final blocks
- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabittestvectors.zip
- useshttps://hdl.handle.net/1721.1/12390
- reviewshttps://cs.nyu.edu/~dodis/ps/merkle.pdf
- reviewshttps://www.rfc-editor.org/rfc/rfc9380.html