{
  "id": "2018/159",
  "url": "https://opencryptology.org/2018/159",
  "original_url": "https://eprint.iacr.org/2018/159",
  "title": "The Missing Difference Problem, and its Applications to Counter Mode Encryption",
  "authors": [
    "Gaëtan Leurent",
    "Ferdinand Sibleyras"
  ],
  "affiliations": null,
  "abstract": "The counter mode (CTR) is a simple, efficient and widely used encryption\nmode using a block cipher.  It comes with a security proof that\nguarantees no attacks up to the birthday bound (i.e. as long as the\nnumber of encrypted blocks $\\sigma$ satisfies $\\sigma \\ll 2^{n/2}$), and\na matching attack that can distinguish plaintext/ciphertext pairs from\nrandom using about $2^{n/2}$ blocks of data.\n\nThe main goal of this paper is to study attacks against the counter mode\nbeyond this simple distinguisher.  We focus on message recovery attacks,\nwith realistic assumptions about the capabilities of an adversary, and\nevaluate the full time complexity of the attacks rather than just the\nquery complexity.  Our main result is an attack to recover a block of\nmessage with complexity $\\tilde{\\mathcal{O}}(2^{n/2})$.  This shows that\nthe actual security of CTR is similar to that of CBC, where collision\nattacks are well known to reveal information about the message.\n\nTo achieve this result, we study a simple algorithmic problem related to\nthe security of the CTR mode: the missing difference problem.  We give\nefficient algorithms for this problem in two practically relevant cases:\nwhere the missing difference is known to be in some linear subspace, and\nwhen the amount of data is higher than strictly required.\n\nAs a further application, we show that the second algorithm can also be\nused to break some polynomial MACs such as GMAC and Poly1305, with a\nuniversal forgery attack with complexity\n$\\tilde{\\mathcal{O}}(2^{2n/3})$.",
  "category": "Secret-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“The Missing Difference Problem, and its Applications to Counter Mode Encryption” by Gaëtan Leurent, Ferdinand Sibleyras, Cryptology ePrint Archive, Paper 2018/159, https://eprint.iacr.org/2018/159. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2018-02-11T14:39:15Z",
    "updated": "2018-02-13T15:42:57Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2018/159.pdf",
    "sha256": "739ad1970413f990a633937cba7561ea90619a67f2b887c76a881ed30df7f8bb",
    "size": 455101,
    "source": "github-mirror",
    "source_date": "2019-02-25T18:03:07Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2018/159/versions/20190225T180307Z.pdf",
      "captured_at": "2019-02-25T18:03:07Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2018/159.pdf",
      "size": 455101,
      "sha256": "739ad1970413f990a633937cba7561ea90619a67f2b887c76a881ed30df7f8bb",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260112094901id_/https://eprint.iacr.org/2018/159.pdf",
      "captured_at": "2026-01-12T09:49:01Z",
      "size": 456019
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2018/159.pdf",
      "captured_at": "2019-02-25T18:03:07Z",
      "size": 455101
    }
  ],
  "bibtex": "@misc{cryptoeprint:2018/159,\n      author = {Gaëtan Leurent and Ferdinand Sibleyras},\n      title = {The Missing Difference Problem, and its Applications to Counter Mode Encryption},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2018/159},\n      year = {2018},\n      url = {https://eprint.iacr.org/2018/159}\n}"
}
