{
  "id": "2004/304",
  "url": "https://opencryptology.org/2004/304",
  "original_url": "https://eprint.iacr.org/2004/304",
  "title": "Second Preimages on n-bit Hash Functions for Much Less than 2^n Work",
  "authors": [
    "John Kelsey",
    "Bruce Schneier"
  ],
  "affiliations": null,
  "abstract": "We provide a second preimage attack on all $n$-bit iterated\nhash functions with Damgard-Merkle strengthening and $n$-bit\nitermediate states, allowing a second preimage to be found for a\n$2^k$-message-block message with about $k \\times 2^{n/2+1}+2^{n-k+1}$\nwork.  Using SHA1 as an example, our attack can find a second preimage\nfor a $2^{60}$ byte message in $2^{106}$ work, rather than the\npreviously expected $2^{160}$ work.  We also provide slightly cheaper\nways to find multicollisions than the method of Joux.  Both\nof these results are based on expandable messages--patterns for\nproducing messages of varying length, which all collide on the\nintermediate hash result immediately after processing the\nmessage.  We also provide algorithms for finding expandable messages for a hash function, using only a small multiple of the work done to find a single collision in the hash function.",
  "category": "Secret-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Second Preimages on n-bit Hash Functions for Much Less than 2^n Work” by John Kelsey, Bruce Schneier, Cryptology ePrint Archive, Paper 2004/304, https://eprint.iacr.org/2004/304. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2004-11-16T08:22:57Z",
    "updated": "2004-11-29T15:08:07Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2004/304.pdf",
    "sha256": "b4e831d50d52e3b39d99879674e93fb0d478d727e021629db8486141f6f69fba",
    "size": 168962,
    "source": "github-mirror",
    "source_date": "2019-02-25T16:06:57Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2004/304/versions/20190225T160657Z.pdf",
      "captured_at": "2019-02-25T16:06:57Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2004/304.pdf",
      "size": 168962,
      "sha256": "b4e831d50d52e3b39d99879674e93fb0d478d727e021629db8486141f6f69fba",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260930120802id_/https://eprint.iacr.org/2004/304.pdf",
      "captured_at": "2026-09-30T12:08:02Z",
      "size": 148517
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2004/304.pdf",
      "captured_at": "2019-02-25T16:06:57Z",
      "size": 168962
    }
  ],
  "bibtex": "@misc{cryptoeprint:2004/304,\n      author = {John Kelsey and Bruce Schneier},\n      title = {Second Preimages on n-bit Hash Functions for Much Less than 2^n Work},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2004/304},\n      year = {2004},\n      url = {https://eprint.iacr.org/2004/304}\n}"
}
