With two SHA-256 calls, prefix-free padded bit records lose one tag bit for payload limits from 512 to 958 bits

1 citing publication

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.

SHA-256 · binary prefix code · padding · compression budget · domain separation

No votes to show.

References

9
  1. usesWith two SHA-256 blocks, prefix-free padded byte records lose one tag byte at payload limits of 64 bytes or more
  2. usesSHA-256 padding is prefix-free through 502 bits and first has a prefix conflict at 503 bits
  3. usesTag overlap gives the exact payload cap for disjoint SHA-256 inputs with fixed prefixes and suffixes
  4. usesUnequal-length SHA-256 collisions give a compression collision in the final blocks
  5. usesdoi:10.6028/NIST.FIPS.180-4
  6. useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabittestvectors.zip
  7. useshttps://hdl.handle.net/1721.1/12390
  8. reviewshttps://cs.nyu.edu/~dodis/ps/merkle.pdf
  9. reviewshttps://www.rfc-editor.org/rfc/rfc9380.html

Cited by

1 publication
  1. With up to two SHA-256 blocks per record, one length-class bit resolves bounded hint delay, but a bare pulse can fail with one block of jitter reviews