{
  "id": "2015/881",
  "url": "https://opencryptology.org/2015/881",
  "original_url": "https://eprint.iacr.org/2015/881",
  "title": "Generic Security of NMAC and HMAC with Input Whitening",
  "authors": [
    "Peter Gaži",
    "Krzysztof Pietrzak",
    "Stefano Tessaro"
  ],
  "affiliations": null,
  "abstract": "HMAC and its variant NMAC are the most popular approaches to\nderiving a MAC (and more generally, a PRF) from a cryptographic hash\nfunction. Despite nearly two decades of research, their exact\nsecurity still remains far from understood in many different\ncontexts. Indeed, recent works have re-surfaced interest for {\\em\ngeneric} attacks, i.e., attacks that treat the compression\nfunction of the underlying hash function as a black box.\n\nGeneric security can be proved in a model where the underlying\ncompression function is modeled as a random function -- yet, to\ndate, the question of proving tight, non-trivial bounds on the\ngeneric security of HMAC/NMAC even as a PRF remains a challenging\nopen question.\n\nIn this paper, we ask the question of whether a small modification\nto HMAC and NMAC can allow us to exactly characterize\nthe security of the resulting constructions, while only\nincurring little penalty with respect to efficiency. To this end,\nwe present simple variants of NMAC and HMAC, for which we prove\ntight bounds on the generic PRF security, expressed in terms of\nnumbers of construction and compression function queries necessary\nto break the construction. All of our constructions are obtained via\na (near) {\\em black-box} modification of NMAC and HMAC, which can be\ninterpreted as an initial step of key-dependent message\npre-processing.\n\nWhile our focus is on PRF security, a further attractive feature of\nour new constructions is that they clearly defeat all recent generic\nattacks against properties such as state recovery and universal\nforgery. These exploit properties of the so-called ``functional\ngraph'' which are not directly accessible in our new constructions.",
  "category": "Secret-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Generic Security of NMAC and HMAC with Input Whitening” by Peter Gaži, Krzysztof Pietrzak, Stefano Tessaro, Cryptology ePrint Archive, Paper 2015/881, https://eprint.iacr.org/2015/881. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2015-09-13T19:22:30Z",
    "updated": "2015-11-13T08:41:18Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2015/881.pdf",
    "sha256": "5a342e37b77255b918a3582fcaac25539f919de4c3773d479bf1a9f663d0f908",
    "size": 512071,
    "source": "github-mirror",
    "source_date": "2019-02-25T17:07:53Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2015/881/versions/20190225T170753Z.pdf",
      "captured_at": "2019-02-25T17:07:53Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2015/881.pdf",
      "size": 512071,
      "sha256": "5a342e37b77255b918a3582fcaac25539f919de4c3773d479bf1a9f663d0f908",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20230531194511id_/https://eprint.iacr.org/2015/881.pdf",
      "captured_at": "2023-05-31T19:45:11Z",
      "size": 509166
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2015/881.pdf",
      "captured_at": "2019-02-25T17:07:53Z",
      "size": 512071
    }
  ],
  "bibtex": "@misc{cryptoeprint:2015/881,\n      author = {Peter Gaži and Krzysztof Pietrzak and Stefano Tessaro},\n      title = {Generic Security of NMAC and HMAC with Input Whitening},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2015/881},\n      year = {2015},\n      url = {https://eprint.iacr.org/2015/881}\n}"
}
