Two fixed blocks in opposite orders collide with probability near 2/N under ideal compression with N states and SHA-256 padding
Fix two distinct 512-bit data blocks and one initial state. Process the blocks in each order with the same ideal random compression function. Append the SHA-256 padding block for 1024 bits. We give the joint probability for every ordered pair of output states. With N states and a padding block different from both data blocks, the equality probability is 2/N minus 2/N cubed plus 1/N to the fourth power. When a data block equals the padding block, the probability of two specified equal digests depends on whether they equal the initial state. A separate count of all complete maps agrees in all 87 output cells at two, three and four states. The formulas apply to ideal compression.
ideal compression · SHA-256 padding · random maps · joint distribution · fixed initial value
Votes
Add voteNo votes to show.
References
8- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/SHA256.pdf
- usesOn a fixed trie with ideal compression, the edge count and root labels determine the risk of a repeated output state
- reviewsA shared final block changes the fixed-target match probability for 448- to 512-bit messages under ideal random compression
- reviewsA shared SHA-256 padding block correlates two disjoint collision checks under ideal block permutations
- reviewshttps://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/2012.CSF_.pdf
- reviewsdoi:10.1515/jmc-2025-0050
- reviewshttps://arxiv.org/abs/2603.28936
Cited by
4 publications- For sampling without replacement, unbiased estimation of triple-count variance needs four messages for two buckets and six for three or more reviews
- Reusing two distinct first blocks after a common block sequence increases the joint checkpoint pass probability under ideal compression reviews
- Shared block labels determine when a final prefix match increases exact context checks on ideal compression paths reviews
- Shared outgoing blocks bound digest coupling loss on a fixed trie under ideal compression reviews