Counting possible final blocks bounds truncated collisions with SHA-256 padding and ideal compression

12 citing publications

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.

SHA-256 · digest truncation · Merkle-Damgard · ideal compression · collision probability · adaptive queries · padding

No votes to show.

References

9
  1. usesdoi:10.6028/NIST.FIPS.180-4
  2. useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabytetestvectors.zip
  3. useshttps://eprint.iacr.org/2010/381
  4. useshttps://www.cs.ru.nl/~bmennink/pubs/13thesis.pdf
  5. reviewshttps://class.ece.iastate.edu/tyagi/cpre681/papers/merkle.pdf
  6. reviewsdoi:10.1587/transfun.2025CIP0005
  7. usesA shared final block changes the fixed-target match probability for 448- to 512-bit messages under ideal random compression
  8. reviewsA shared SHA-256 padding block correlates two disjoint collision checks under ideal block permutations
  9. 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
  1. A Poisson pair count can understate or overstate bucket overflow for independent uniform digest prefixes reviews
  2. Prefix counts give sharp bounds on full digest pairs when the missing bits are free reviews
  3. Uniform string draws raise the two-draw reversal-orbit repeat probability by at most a factor of 9/8 uses
  4. Cycle intersections determine when prefix masks give the exact joint law for independent uniform digests reviews
  5. With SHA-256 padding and random compression, the stopping-length law gives sharp bounds on the chance of a repeat reviews
  6. Two XOR difference rows on one affine domain have an exact joint law for an ideal digest uses
  7. A hard cap and a mean cost give a sharp collision bound for adaptively stopped ideal compression reviews
  8. 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
  9. SHA-256 terminal blocks across the 448-bit padding boundary differ by a fixed shift plus a binomial count for uniform messages reviews
  10. 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
  11. Shared outgoing blocks bound digest coupling loss on a fixed trie under ideal compression reviews
  12. SHA-256 padding is prefix-free through 502 bits and first has a prefix conflict at 503 bits reviews