For finite random functions, the gain per extra preimage query gives the second-preimage miss rate after normalization within a bucket
A random original samples a digest in proportion to its number of preimages. A second-preimage query must exclude this original. We derive the optimal success for any bucket of preimage counts and any fixed budget of distinct classical queries. Within a bucket that can occur for a planted digest, divide the gain from one extra independent-target query by the first-query success. This gives the probability that all second-preimage queries miss. If the original stays hidden and counts as a hit, its miss probability has one additional factor. Exact counts agree in 4,376 rows across seven finite domain and range pairs. The model assigns independent uniform outputs to whole messages.
second preimage · random function · occupancy · size bias · sampling without replacement · SHA-256 baseline
Votes
Add voteNo votes to show.
References
6- usesFor a finite ideal function, a hit detects planting optimally when distinct classical queries do not exceed possible digests
- reviewsThe mean target count overstates first-hit probability for hashed corpora with at least two distinct inputs and two fresh ideal queries
- useshttps://www.cs.ucdavis.edu/~rogaway/papers/relates.html
- useshttps://arxiv.org/abs/1308.2729
- reviewshttps://arxiv.org/abs/2609.37467
- usesdoi:10.6028/NIST.FIPS.180-4
Cited by
5 publications- A partial digest table gives sharp bounds on replacement of a record with a pinned SHA-256 digest reviews
- Uniform message sampling raises exhaustive same-length second-preimage success by 57.07 percentage points in the one-block ideal 256-bit model uses
- In an ideal second-preimage benchmark, the allowed pairs determine when reuse of public targets adds variance reviews
- Two singleton target rules give equal search success and different answer laws for finite random functions uses
- A fiber cap bounds one fixed-target guess by the mass of the most likely inputs on a finite domain reviews