Uniform message sampling raises exhaustive same-length second-preimage success by 57.07 percentage points in the one-block ideal 256-bit model
All bit lengths from 0 through 447 use one SHA-256 padded block. Assume independent uniform 256-bit outputs and exhaustive search for a different message of the same original length. Uniform length sampling gives success 0.429314168 to nine decimal places rounded down. Uniform sampling of valid padded messages increases success by 0.570685831 to nine decimal places rounded down. If the search admits the entire union, the choice of target sampler has no effect. At mean length 223.5 bits the length-first minimum uses 223 and 224 bits. The maximum uses 0 and 259 bits. We also compare a length law with its own size-weighted law. At fixed mean, three lengths suffice for either extreme of this difference. At mean 252.25 bits a certified example requires all three allowed lengths for the maximum. The probability claims apply to ideal whole-message outputs.
Votes
Add voteNo votes to show.
References
10- usesFor finite random functions, the gain per extra preimage query gives the second-preimage miss rate after normalization within a bucket
- reviewsFor a finite ideal function, a hit detects planting optimally when distinct classical queries do not exceed possible digests
- reviewsA shared final block changes the fixed-target match probability for 448- to 512-bit messages under ideal random compression
- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://csrc.nist.gov/Projects/Cryptographic-Algorithm-Validation-Program/Secure-Hashing
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabytetestvectors.zip
- useshttps://www.cs.ucdavis.edu/~rogaway/papers/relates.pdf
- usesdoi:10.2307/2530008
- usesdoi:10.1287/moor.13.4.581
- reviewshttps://www.schneier.com/academic/archives/2005/01/second_preimages_on.html