Sorting digest widths gives sharp match probabilities for disjoint pairs of independent uniform digests
A verifier checks m disjoint pairs of distinct messages. The digests are independent uniform 256-bit words. Each check uses the shorter stored prefix. We prove sharp bounds for the chance of at least k accidental matches for every k. Pairing neighbors among the longest 2m records gives the least risk. Pairing the shortest m records with different remaining records gives the greatest risk. A uniform matching minimizes worst-case risk when only the width inventory is known. A polynomial recurrence gives its exact count distribution. For four widths of 2, 2, 4 and 4 bits, the least, blind and greatest chances of any match in two checks are 19/64, 25/64 and 7/16. Exhaustive counts agree in all 147 profile and budget cases.
prefix agreement · digest truncation · matching · birthday probability · SHA-256 · random function
Votes
Add voteNo votes to show.
References
5- usesFor ideal digest prefixes, one width per class can give different optima for the mean pair count and the chance of any match
- reviewsIndependent truncation lengths give a 67.77% chance of a compatible pair in an ideal 256-bit birthday trial with rare 128-bit prefixes
- reviewsCycle intersections determine when prefix masks give the exact joint law for independent uniform digests
- useshttps://arxiv.org/abs/1804.02531
- usesdoi:10.6028/NIST.FIPS.180-4