{
  "id": "2017/069",
  "url": "https://opencryptology.org/2017/069",
  "original_url": "https://eprint.iacr.org/2017/069",
  "title": "The Exact Security of PMAC",
  "authors": [
    "Peter Gaži",
    "Krzysztof Pietrzak",
    "Michal Rybár"
  ],
  "affiliations": null,
  "abstract": "PMAC is a simple and parallel block-cipher mode of operation, which was introduced by Black and Rogaway at Eurocrypt 2002. If instantiated with a (pseudo)random permutation over n-bit strings, PMAC constitutes a provably secure variable input-length (pseudo)random function. For adversaries making q queries, each of length at most $\\ell$ (in n-bit blocks), and of total length $\\sigma \\leq q\\ell$, the original paper proves an upper bound on the distinguishing advantage of $O(\\sigma^2/2^n)$, while the currently best bound is $O(q\\sigma/2^n)$. In this work we show that this bound is tight by giving an attack with advantage $\\Omega(q^2\\ell/2^n)$.\nIn the PMAC construction one initially XORs a mask to every message block, where the mask for the i-th block is computed as $\\tau_i := \\gamma_i \\cdot L$, where $L$ is a (secret) random value, and $\\gamma_i$ is the i-th codeword of the Gray code. Our attack applies more generally to any sequence of $\\gamma_{i}$’s which contains a large coset of a subgroup of $GF(2^n)$.\nWe then investigate, if the security of PMAC can be further improved by using $\\tau_{i}$’s that are $k$-wise independent, for $k > 1$ (the original distribution is only 1-wise independent). We observe that the security of PMAC will not increase in general, even if the masks are chosen from a 2-wise independent distribution, and then prove that the security increases to $O(q^2/2^n)$, if the $\\tau_i$'s are 4-wise independent. Due to simple extension attacks, this is the best bound one can hope for, using any distribution on the masks. Whether 3-wise independence is already sufficient to get this level of security is left as an open problem.",
  "category": "Secret-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“The Exact Security of PMAC” by Peter Gaži, Krzysztof Pietrzak, Michal Rybár, Cryptology ePrint Archive, Paper 2017/069, https://eprint.iacr.org/2017/069. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2017-01-31T21:47:12Z",
    "updated": "2017-01-31T21:47:12Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2017/069.pdf",
    "sha256": "e5d3c86291abbb8844ade7922cc9d9f1bedb3a11ce20ece1995bcfb3d4be9138",
    "size": 549359,
    "source": "github-mirror",
    "source_date": "2019-02-25T17:41:11Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2017/069/versions/20190225T174111Z.pdf",
      "captured_at": "2019-02-25T17:41:11Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2017/069.pdf",
      "size": 549359,
      "sha256": "e5d3c86291abbb8844ade7922cc9d9f1bedb3a11ce20ece1995bcfb3d4be9138",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260429090348id_/https://eprint.iacr.org/2017/069.pdf",
      "captured_at": "2026-04-29T09:03:48Z",
      "size": 546891
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2017/069.pdf",
      "captured_at": "2019-02-25T17:41:11Z",
      "size": 549359
    }
  ],
  "bibtex": "@misc{cryptoeprint:2017/069,\n      author = {Peter Gaži and Krzysztof Pietrzak and Michal Rybár},\n      title = {The Exact Security of PMAC},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2017/069},\n      year = {2017},\n      url = {https://eprint.iacr.org/2017/069}\n}"
}
