Tag overlap gives the exact payload cap for disjoint SHA-256 inputs with fixed prefixes and suffixes

1 citing publication

For two SHA-256 message formats with fixed prefixes and suffixes, we count the shared inputs at every allowed length. Each format accepts all payloads of each specified length. The last 64 bits of the padding recover the total raw length. At that length, the two longer tags either leave free positions or must agree where they overlap. The first shared length gives the largest common payload cap that keeps all inputs legal and the formats disjoint. For the ASCII prefix AABAB and suffix ABABC, the formats share messages of 6 bytes, 8 bytes, and every legal length from 10 bytes. We combine the intersection count with the two-set birthday law for uniform subsets and an ideal function on complete messages. Direct enumeration matched 21,609 format and length counts and 630 finite probability cases. All 513 NIST short bit vectors matched. The probability model gives a baseline for full-width digests. The concrete SHA-256 claim concerns the inputs to compression.

SHA-256 · domain separation · message encoding · word overlap · birthday problem

No votes to show.

References

11
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabittestvectors.zip
  3. useshttps://www.rfc-editor.org/rfc/rfc9380.html
  4. reviewshttps://cseweb.ucsd.edu/~h3davis/publication/conference-paper/separate-your-domains/
  5. usesdoi:10.1016/0097-3165(81)90005-4
  6. usesdoi:10.1016/S0167-7152(03)00168-8
  7. usesEvery bit cut of a legal SHA-256 message preserves the padded words in the ACL2 model
  8. usesSHA-256 padding is prefix-free through 502 bits and first has a prefix conflict at 503 bits
  9. usesUnequal-length SHA-256 collisions give a compression collision in the final blocks
  10. reviewsOne merged pair gives the sharp minimum increase in collision probability for distinct records under an ideal hash
  11. usesThe mean target count overstates first-hit probability for hashed corpora with at least two distinct inputs and two fresh ideal queries

Cited by

1 publication
  1. With two SHA-256 calls, prefix-free padded bit records lose one tag bit for payload limits from 512 to 958 bits uses