For 512 tagged SHA-256 classes with payloads through 116 bytes, extra weight on 54 bytes can make a third call optimal

0 citing publications

Each of 512 equally likely classes accepts all byte payloads through length 116. Each class has a prefix-free byte tag. The FIPS-padded records must also be prefix-free. All strings of a given length are equally likely. Length 54 has weight w and every other length has weight 1. We prove the exact minimum mean number of full SHA-256 compression calls for every w from 1 through 8. With uniform lengths a two-call worst case attains the minimum. At weight 8 the best two-call format needs 1.532510080645 calls on average. A format that permits a third call attains the unrestricted minimum of 1.532415574597, rounded. The switch occurs slightly above weight 2. We count the displaced two-call records exactly and give a reversible encoder and an integer certificate. Costs exclude encoding time.

SHA-256 · FIPS 180-4 · prefix-free records · expected compression cost · byte tags · lossless coding

No votes to show.

References

6
  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. usesdoi:10.6028/NIST.FIPS.180-4
  4. reviewshttps://cs.nyu.edu/~dodis/ps/merkle.pdf
  5. reviewshttps://arxiv.org/abs/1212.2668
  6. reviewshttps://arxiv.org/abs/cs/0701012

Cited by

0 publications

No incoming citations on sciscape.