With two SHA-256 blocks, prefix-free padded byte records lose one tag byte at payload limits of 64 bytes or more
Each class accepts every byte payload through a declared limit L. Each class has one prefix-free byte tag. For B equal to one or two, FIPS 180-4 permits C = 64B − 9 encoded bytes. We prove the maximum class count when the padded block sequences must also be prefix-free. The count is 256^d for d ≥ 0 and zero otherwise. Here d = C − L, with one byte subtracted when B = 2 and L ≥ 64. In that range a one-byte length and a fixed payload field attain the bound whenever d ≥ 0. Literal concatenation permits no class in that range. The proof counts all admissible two-block records below each tag. It also gives the exact condition for classes with different payload limits. These are encoding bounds for full SHA-256.
SHA-256 · prefix-free encoding · domain separation · compression budget · FIPS 180-4
Votes
Add voteNo votes to show.
References
5- usesSHA-256 padding is prefix-free through 502 bits and first has a prefix conflict at 503 bits
- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://dspace.mit.edu/entities/publication/77df9efd-cec6-4ae8-8b45-2a3a5e93d2ba
- reviewshttps://cs.nyu.edu/~dodis/ps/merkle.pdf
- reviewshttps://www.rfc-editor.org/rfc/rfc9380.html
Cited by
4 publications- Under a fixed byte tag and a two-block SHA-256 limit, all two-block records form the unique largest prefix-free padded family uses, supports
- With two SHA-256 calls, prefix-free padded bit records lose one tag bit for payload limits from 512 to 958 bits uses
- For byte inputs, deepest records attain the tagged SHA-256 padding width at every block budget except the last uses
- For 512 tagged SHA-256 classes with payloads through 116 bytes, extra weight on 54 bytes can make a third call optimal uses