Independent truncation lengths give a 67.77% chance of a compatible pair in an ideal 256-bit birthday trial with rare 128-bit prefixes
Take 2^128 independent uniform 256-bit words. Keep the first 128 bits with probability 2^-128 per word. Otherwise keep all bits. The chance that two records agree through the shorter length is 67.77%, rounded. One random length shared by the batch gives 39.35%. We prove an exact trie formula for every finite alphabet and length law. We also prove a limit for rare short records and bound its error in the 256-bit case. Exact enumeration agrees in all 24 small cases. The model assumes distinct messages and ideal digests.
prefix code · occupancy · birthday probability · random truncation · SHA-256 · antichain
Votes
Add voteNo votes to show.
References
4Cited by
4 publications- For disjoint pairs selected by ideal digest prefixes, the match count has the usual binomial law exactly when the prefix count does reviews
- Fixed output weights give an exact law for near-match counts among independent uniform binary words
- Sorting digest widths gives sharp match probabilities for disjoint pairs of independent uniform digests reviews
- Length counts give exact digest match probabilities before and after duplicate removal on finite message domains reviews