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

2 citing publications

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

No votes to show.

References

5
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. reviewshttps://homes.cs.washington.edu/~yoshi/papers/Hash/balance.pdf
  3. usesdoi:10.1007/s11009-023-10053-y
  4. usesOn a fixed trie with ideal compression, the edge count and root labels determine the risk of a repeated output state
  5. reviewsCounting possible final blocks bounds truncated collisions with SHA-256 padding and ideal compression

Cited by

2 publications
  1. With SHA-256 padding and random compression, the stopping-length law gives sharp bounds on the chance of a repeat reviews
  2. For three SHA-256 padded messages with an ideal digest and a planted target, prefix caching changes the best first query at four output bits uses