{
  "id": "2013/212",
  "url": "https://opencryptology.org/2013/212",
  "original_url": "https://eprint.iacr.org/2013/212",
  "title": "A Closer Look at HMAC",
  "authors": [
    "Krzysztof Pietrzak"
  ],
  "affiliations": null,
  "abstract": "Bellare, Canetti and Krawczyk~\\cite{FOCS:BelCanKra96} show that cascading an $\\eps$-secure (fixed input length) PRF gives an $O(\\eps n q)$-secure (variable input length) PRF when making at most $q$ prefix-free queries of length $n$ blocks. We observe that this translates to the same bound for NMAC (which is the cascade without the prefix-free requirement but an additional application of the PRF at the end), and give a matching attack, showing this bound  is tight. This contradicts the $O(\\eps n)$ bound claimed by Koblitz and Menezes~\\cite{KobMen12}.",
  "category": "Secret-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“A Closer Look at HMAC” by Krzysztof Pietrzak, Cryptology ePrint Archive, Paper 2013/212, https://eprint.iacr.org/2013/212. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2013-04-14T15:39:04Z",
    "updated": "2013-04-14T15:39:04Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2013/212.pdf",
    "sha256": "f04b7e95e6d5113ef8700c0850f25a0a46b627f7dbb977e6938eb1cd22146953",
    "size": 229573,
    "source": "github-mirror",
    "source_date": "2019-02-25T16:45:55Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2013/212/versions/20190225T164555Z.pdf",
      "captured_at": "2019-02-25T16:45:55Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2013/212.pdf",
      "size": 229573,
      "sha256": "f04b7e95e6d5113ef8700c0850f25a0a46b627f7dbb977e6938eb1cd22146953",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260102113255id_/https://eprint.iacr.org/2013/212.pdf",
      "captured_at": "2026-01-02T11:32:55Z",
      "size": 230476
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2013/212.pdf",
      "captured_at": "2019-02-25T16:45:55Z",
      "size": 229573
    }
  ],
  "bibtex": "@misc{cryptoeprint:2013/212,\n      author = {Krzysztof Pietrzak},\n      title = {A Closer Look at HMAC},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2013/212},\n      year = {2013},\n      url = {https://eprint.iacr.org/2013/212}\n}"
}
