For SHA-256 byte lengths with fixed bucket and block counts, a fixed two-block rate gives sharp bounds on delimiter entropy

0 citing publications

A dataset gives the rounded length and the total SHA-256 block count for each complete message. We derive the exact range of conditional Shannon entropy of the first padding position for each fixed law of these two labels. If the overall fraction of two-block endings is known, the maximum uses the same probability ratio in all cells that allow both endings. A minimum needs at most one cell that uses both endings. Zero is possible exactly when a subset of the cell masses supplies the required fraction after forced endings are counted. In a two-bucket byte example the range is 0.540852 to 5.403677 bits. The same proportions in a six-row table give a maximum of 5/3 bits for a uniformly sampled row. An integer algorithm returns both empirical extrema and length counts that attain them. The results also cover bit inputs under the FIPS length limit.

SHA-256 · padding · Shannon entropy · length disclosure · empirical distribution

No votes to show.

References

5
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. usesFor byte inputs, deepest records attain the tagged SHA-256 padding width at every block budget except the last
  3. usesdoi:10.1002/j.1538-7305.1948.tb01338.x
  4. reviewshttps://arxiv.org/abs/2209.04379
  5. reviewshttps://www.usenix.org/system/files/usenixsecurity24-jia-grace.pdf

Cited by

0 publications

No incoming citations on sciscape.