A shared SHA-256 padding block correlates two disjoint collision checks under ideal block permutations
Fix four distinct messages of one length from 448 to 512 bits. Each block selects an independent uniform permutation of an abelian state group of order N. Compression adds the input to the permutation output. With SHA-256 padding, each pair of complete digests agrees with probability 2/N. Two disjoint pairs have positive covariance of order 2/N cubed. We give the exact covariance and the variance of the count of matching pairs. The correction depends on the number of group elements whose double is zero. The formula includes messages that repeat their final block. Exhaustive counts agree for six small groups. Two implementations also agree on the padded digest of a published 31-step witness. Its messages give different full SHA-256 digests.
Votes
Add voteNo votes to show.
References
9- doi:10.6028/NIST.FIPS.180-4
- https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabittestvectors.zip
- A shared final block changes the fixed-target match probability for 448- to 512-bit messages under ideal random compression
- Two off-IV compression rows cannot force a fixed SHA-256 message pair to collide in a permutation completion model
- doi:10.1007/978-981-96-0941-3_8
- https://iacr.org/submit/files/slides/2024/asiacrypt/asiacrypt2024/64/64_slides.pdf
- https://eprint.iacr.org/2026/1120
- https://eprint.iacr.org/2026/2867
- https://crypto.stanford.edu/~dabo/cryptobook/BonehShoup_0_6.pdf
Cited by
6 publications- Four messages suffice for two sources with equal repeat-count moments to give different digest-match variances under an ideal hash
- Under an ideal function, more shared bits lower or preserve the chance that either equal-width collision count reaches a common threshold
- 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 reviews
- Two fixed blocks in opposite orders collide with probability near 2/N under ideal compression with N states and SHA-256 padding reviews
- First-block tests decide equal-length SHA-256 stream equivalence when each block acts injectively on the state reviews
- Counting possible final blocks bounds truncated collisions with SHA-256 padding and ideal compression reviews