{
  "id": "2007/278",
  "url": "https://opencryptology.org/2007/278",
  "original_url": "https://eprint.iacr.org/2007/278",
  "title": "A Framework for Iterative Hash Functions - HAIFA",
  "authors": [
    "Eli Biham",
    "Orr Dunkelman"
  ],
  "affiliations": null,
  "abstract": "Since the seminal works of Merkle and Damgard on the iteration of compression functions, hash functions were built from compression functions using the Merkle-Damgard construction. Recently, several flaws in this construction were identified, allowing for pre-image attacks and second pre-image attacks on such hash functions even when the underlying compression functions are secure.\n\nIn this paper we propose the HAsh Iterative FrAmework (HAIFA). Our framework can fix many of the flaws while supporting several additional properties such as defining families of hash functions and supporting variable hash size. HAIFA allows for an online computation  of the hash function in one pass with a fixed amount of memory independently of the size of the message.\n\nBesides our proposal, the recent attacks initiated research on the way compression functions are to be iterated. We show that most recent proposals such as randomized hashing, the enveloped Merkle-Damgard, and the RMC and ROX modes can be all be instantiated as part of the HAsh Iterative FrAmework (HAIFA).",
  "category": "Secret-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“A Framework for Iterative Hash Functions - HAIFA” by Eli Biham, Orr Dunkelman, Cryptology ePrint Archive, Paper 2007/278, https://eprint.iacr.org/2007/278. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2007-08-07T15:16:03Z",
    "updated": "2007-08-08T17:12:03Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2007/278.pdf",
    "sha256": "4b4acd972fbef29f21252331c24a8e94cd0414f4fb893ed75a1509d74ef36b5a",
    "size": 228168,
    "source": "github-mirror",
    "source_date": "2019-02-25T16:13:43Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2007/278/versions/20190225T161343Z.pdf",
      "captured_at": "2019-02-25T16:13:43Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2007/278.pdf",
      "size": 228168,
      "sha256": "4b4acd972fbef29f21252331c24a8e94cd0414f4fb893ed75a1509d74ef36b5a",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260502190246id_/https://eprint.iacr.org/2007/278.pdf",
      "captured_at": "2026-05-02T19:02:46Z",
      "size": 209168
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2007/278.pdf",
      "captured_at": "2019-02-25T16:13:43Z",
      "size": 228168
    }
  ],
  "bibtex": "@misc{cryptoeprint:2007/278,\n      author = {Eli Biham and Orr Dunkelman},\n      title = {A Framework for Iterative Hash Functions - HAIFA},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2007/278},\n      year = {2007},\n      url = {https://eprint.iacr.org/2007/278}\n}"
}
