For one-block SHA-256, a zero delimiter can merge 1,946,939,425,648,112 layouts of one payload into one input

1 citing publication

We count the blocks that one byte string produces when its field boundaries can move. Each field uses one byte for its length or one trailing zero. For messages of at most 55 bytes, two coefficient formulas give exact counts under a limit on cuts at each site. Length encoding preserves every layout. Zero framing preserves the total cuts in each gap between nonzero bytes. We give an exact test for loss of layout information. With 27 zero bytes and 28 fields that can be empty, length encoding gives 1,946,939,425,648,112 blocks and zero framing gives one. This ratio is the largest possible in the stated domain. Shortest examples for two fields distinguish loss of tuple identity from loss of payload identity. Both examples use identical serialized bytes within each pair.

SHA-256 · tuple encoding · prefix-free code · delimiter · zero insertion · one-block domain

No votes to show.

References

6
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. reviewsdoi:10.6028/NIST.SP.800-185
  3. reviewsdoi:10.6028/NIST.SP.800-185r1.ipd
  4. reviewshttps://www.rfc-editor.org/rfc/rfc6587.html
  5. usesdoi:10.1109/TIT.2022.3203594
  6. reviewsSHA-256 padding is prefix-free through 502 bits and first has a prefix conflict at 503 bits

Cited by

1 publication
  1. Exact transcript distances at all uniform sample sizes determine encoder fiber sizes for any ideal digest with at least two outputs reviews