For one-block SHA-256, a zero delimiter can merge 1,946,939,425,648,112 layouts of one payload into one input
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.
Votes
Add voteNo votes to show.