A shared final block changes the fixed-target match probability for 448- to 512-bit messages under ideal random compression
We fix a target and q distinct alternatives at one SHA-256 message length before we draw a uniform random compression function with N states. At lengths through 447 bits, the match count is binomial with success probability 1/N. For each length from 448 to 512 bits, the success probability has the same effect as a random value K/N shared by all trials. K is one plus a binomial variable with N−1 trials and success probability 1/N. We prove the law even when a message repeats its final block as its first block. At N = q = 2^256 the match probability increases from 0.632121 to 0.804485 across the padding boundary. Exact counts agree in 27 small model cases. Full SHA-256 compression agrees with 513 NIST bit vectors. The probability result applies to ideal compression and a list fixed in advance.
Votes
Add voteNo votes to show.
References
7- 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/shabittestvectors.zip
- https://www.iacr.org/archive/eurocrypt2005/34940474/34940474.pdf
- doi:10.1007/s00145-015-9206-4
- doi:10.1007/3-540-46885-4_34
- https://arxiv.org/abs/2611.00512
Cited by
10 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 reviews
- A shared SHA-256 padding block correlates two disjoint collision checks under ideal block permutations
- For uniform SHA-256 messages of known length, the final block loses 447 bits of min-entropy at residue 448
- For a finite ideal function, a hit detects planting optimally when distinct classical queries do not exceed possible digests reviews
- Shared block labels determine when a final prefix match increases exact context checks on ideal compression paths reviews
- With SHA-256 padding and ideal compression, cube parity at lengths 447 and 448 is uniform but complete first-block reuse can bias it at other lengths uses
- Two fixed blocks in opposite orders collide with probability near 2/N under ideal compression with N states and SHA-256 padding reviews
- Counting possible final blocks bounds truncated collisions with SHA-256 padding and ideal compression uses
- Shared outgoing blocks bound digest coupling loss on a fixed trie under ideal compression reviews