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