Preimages, Second Preimages, and Hash Collisions

Distinguish three ways of quantifying search against a digest and choose the property required by a verification workflow.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. The challenger supplies different information
  2. A digest needs a trusted origin

The challenger supplies different information

A preimage task starts from a digest and asks for an input yielding it. A second-preimage task gives an input and asks for a different one with its digest. A collision task allows both inputs to be chosen. The last problem is more flexible: among random \(b\)-bit digests, pairs grow roughly as the square of the number sampled. This motivates the birthday scale \(2^{b/2}\) in an ideal hash model, rather than \(2^b\) for matching a fixed independent target digest.

A digest needs a trusted origin

Checking that a file matches a known digest detects unintended change under the relevant assumptions. If the digest itself arrives through an unauthenticated replacement, that check does not authenticate an author. Message authentication binds data to a shared secret. Merkle trees use hash structure to authenticate one item relative to a trusted root.[1]

References

  1. Dan Boneh and Victor Shoup, A Graduate Course in Applied Cryptography ↩