For a finite ideal function, a hit detects planting optimally when distinct classical queries do not exceed possible digests
We compare two targets on a finite set of padded messages. A uniform target is an independent digest. A planted target is the digest of a hidden uniform message. We assume independent uniform function values and classical queries with no preprocessing. We prove the exact preimage counts and query success laws. A test that records any hit has the largest possible decision advantage exactly when the distinct query count is at most the number of possible digests. Above this boundary the number of hits gives a strict improvement. Complete enumeration agrees in all 24 budget cases. The SHA-256 reference check matches 65 NIST test vectors. The probability laws require an ideal function.
preimage · SHA-256 · finite domain · random function · size bias · query complexity
Votes
Add voteNo votes to show.
References
10- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabytetestvectors.zip
- reviewshttps://eprint.iacr.org/2004/035
- reviewshttps://citeseerx.ist.psu.edu/document?doi=104a4089527fbc30bf92cd974b7f42870ea0a983&repid=rep1&type=pdf
- useshttps://arxiv.org/abs/1308.2729
- useshttps://www.cs.bgu.ac.il/~karyeh/sharp-mad.pdf
- reviewshttps://arxiv.org/abs/2609.37467
- reviewsA random first-block map needs 123 domain bits for a worst-case reliability target in a 39-step SHA-256 cost model
- reviewsWith an ideal cipher and SHA-256 padding, the chance of a common digest falls below half at 388 prescribed block-aligned lengths
- reviewsA shared final block changes the fixed-target match probability for 448- to 512-bit messages under ideal random compression
Cited by
5 publications- Uniform message sampling raises exhaustive same-length second-preimage success by 57.07 percentage points in the one-block ideal 256-bit model reviews
- With two hidden messages, an optimal ideal search partly tests at most one class at each SHA-256 padding cost uses
- For finite random functions, the gain per extra preimage query gives the second-preimage miss rate after normalization within a bucket uses
- 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