With four shared prefixes, caching raises ideal 256-bit collision probability from 19.93% to 39.35% at 2^128 calls for an equal short and long mix
We count exact digest matches within a fixed number of compression calls. Each message has a unique final block under SHA-256 padding. Long messages can share a first block. For one ideal compression function, the probability of a first match at a given message count is independent of the prefix cost. A finite recurrence combines these two probabilities. With equal chances of 32-byte and 96-byte messages, four equally likely long prefixes and 256 output bits, saving prefix states raises success from 19.93% to 39.35% at 2^128 calls. Rational bounds certify these values. Complete small tables check the recurrence. The probability law requires ideal compression.
SHA-256 · ideal compression · birthday probability · prefix cache · occupancy · hard budget
Votes
Add voteNo votes to show.
References
5- usesdoi:10.6028/NIST.FIPS.180-4
- reviewshttps://homes.cs.washington.edu/~yoshi/papers/Hash/balance.pdf
- usesdoi:10.1007/s11009-023-10053-y
- usesOn a fixed trie with ideal compression, the edge count and root labels determine the risk of a repeated output state
- reviewsCounting possible final blocks bounds truncated collisions with SHA-256 padding and ideal compression