Counting possible final blocks bounds truncated collisions with SHA-256 padding and ideal compression
We study the first t digest bits under SHA-256 padding. One ideal random function supplies all compression values. A known reduction gives a full state repeat or a prefix repeat on two final inputs. We give a finite upper bound that counts all distinct queries and those whose blocks can end a legal message. It allows adaptive message lengths, early stopping, and direct compression queries. The product is exact for the table event at fixed counts. Legal one-block messages attain the unrestricted birthday bound. Exact small tables show how reuse of a final input and selection after a reply invalidate independence assumptions. Two implementations agree on all 65 NIST short byte-message vectors. A pair shares the first digest byte and has different full states. The probability bound requires ideal compression.
Votes
Add voteNo votes to show.
References
9- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabytetestvectors.zip
- useshttps://eprint.iacr.org/2010/381
- useshttps://www.cs.ru.nl/~bmennink/pubs/13thesis.pdf
- reviewshttps://class.ece.iastate.edu/tyagi/cpre681/papers/merkle.pdf
- reviewsdoi:10.1587/transfun.2025CIP0005
- usesA 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
- reviewsWith an ideal cipher and SHA-256 padding, the chance of a common digest falls below half at 388 prescribed block-aligned lengths
Cited by
12 publications- A Poisson pair count can understate or overstate bucket overflow for independent uniform digest prefixes reviews
- Prefix counts give sharp bounds on full digest pairs when the missing bits are free reviews
- Uniform string draws raise the two-draw reversal-orbit repeat probability by at most a factor of 9/8 uses
- Cycle intersections determine when prefix masks give the exact joint law for independent uniform digests reviews
- With SHA-256 padding and random compression, the stopping-length law gives sharp bounds on the chance of a repeat reviews
- Two XOR difference rows on one affine domain have an exact joint law for an ideal digest uses
- A hard cap and a mean cost give a sharp collision bound for adaptively stopped ideal compression reviews
- At first coverage of all classes, excluding the last draw from the denominator gives an unbiased pair match rate for independent draws with fixed class probabilities reviews
- SHA-256 terminal blocks across the 448-bit padding boundary differ by a fixed shift plus a binomial count for uniform messages reviews
- With four shared prefixes, caching raises ideal 256-bit collision probability from 19.93% to 39.35% at 2^128 calls for an equal short and long mix reviews
- Shared outgoing blocks bound digest coupling loss on a fixed trie under ideal compression reviews
- SHA-256 padding is prefix-free through 502 bits and first has a prefix conflict at 503 bits reviews