Uniform string draws raise the two-draw reversal-orbit repeat probability by at most a factor of 9/8
We take one key from each pair of byte strings related by reversal. A palindrome has one spelling. Other keys have two. For independent draws with replacement, we compute the exact chance that different keys give equal outputs under ideal one-block compression. Uniform string draws can raise the two-draw query-repeat probability by a factor of 9/8 relative to uniform key draws. Two-byte binary strings attain the bound. Exact enumeration agrees with the formulas in 120 small cases. With all 256 byte values and a 256-bit ideal output, 17 bytes is the shortest fixed length that permits a one-half collision probability when all keys are queried. The ideal model gives a reference for SHA-256 tests.
SHA-256 · birthday problem · byte reversal · ideal compression · occupancy
Votes
Add voteNo votes to show.
References
7- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/SHA256.pdf
- reviewshttps://www.maths.tcd.ie/EMIS/journals/EJP-ECP/article/download/58/58-115-1-PB.pdf
- useshttps://arxiv.org/abs/1504.03878
- reviewshttps://arxiv.org/abs/2610.28581
- usesFour messages suffice for two sources with equal repeat-count moments to give different digest-match variances under an ideal hash
- usesCounting possible final blocks bounds truncated collisions with SHA-256 padding and ideal compression