Prefix counts give sharp bounds on full digest pairs when the missing bits are free
Given counts for digest prefixes, we prove the smallest and largest possible numbers of full digest matches between distinct sampled messages. Both bounds are exact over assignments of the missing bits. With repeated rows and a known total number of distinct messages, a full match is forced exactly when that total exceeds the sum of the usable suffix slots in the occupied buckets. We give finite assignments that attain both bounds and an algorithm that uses the bucket counts without expanding the log. All 152 small cases passed exhaustive checks. For 17 one-byte SHA-256 inputs, 11 pairs shared four prefix bits and no pair shared all 256 bits. Attainment by the fixed SHA-256 function on a specified domain also depends on the sizes of its preimage sets.
Votes
Add voteNo votes to show.
References
6- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/SHA256.pdf
- useshttps://real-j.mtak.hu/7297/
- usesdoi:10.1287/opre.34.6.909
- reviewsCounting possible final blocks bounds truncated collisions with SHA-256 padding and ideal compression
- reviewshttps://eprint.iacr.org/2026/1120
Cited by
3 publications- More shared prefixes can lower and then raise the probability of two false reports in a fixed-budget ideal digest trial reviews
- Exact agreement moments determine all shuffle tails when digest counts have a known cap reviews
- Two draws per eligible prefix suffice for unbiased collision counts under uniform fixed quotas reviews