{
  "id": "2019/1146",
  "url": "https://opencryptology.org/2019/1146",
  "original_url": "https://eprint.iacr.org/2019/1146",
  "title": "Implementing Grover oracles for quantum key search on AES and LowMC",
  "authors": [
    "Samuel Jaques",
    "Michael Naehrig",
    "Martin Roetteler",
    "Fernando Virdia"
  ],
  "affiliations": null,
  "abstract": "Grover's search algorithm gives a quantum attack against block ciphers by searching for a key that matches a small number of plaintext-ciphertext pairs. This attack uses $O(\\sqrt{N})$ calls to the cipher to search a key space of size $N$. Previous work in the specific case of AES derived the full gate cost by analyzing quantum circuits for the cipher, but focused on minimizing the number of qubits.\n\nIn contrast, we study the cost of quantum key search attacks under a depth restriction and introduce techniques that reduce the oracle depth, even if it requires more qubits. As cases in point, we design quantum circuits for the block ciphers AES and LowMC. Our circuits give a lower overall attack cost in both the gate count and depth-times-width cost models. In NIST's post-quantum cryptography standardization process, security categories are defined based on the concrete cost of quantum key search against AES. We present new, lower cost estimates for each category, so our work has immediate implications for the security assessment of post-quantum cryptography.\n\nAs part of this work, we release Q# implementations of the full Grover oracle for AES-128, -192, -256 and for the three LowMC instantiations used in Picnic, including unit tests and code to reproduce our quantum resource estimates. To the best of our knowledge, these are the first two such full implementations and automatic resource estimations.\n\nThis is a revised version that corrects the estimates for AES to account for some issues in Q# that made the original estimates inaccurate. We did not revise the estimates for LowMC, so the resource counts are likely lower than possible.",
  "category": "Secret-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Implementing Grover oracles for quantum key search on AES and LowMC” by Samuel Jaques, Michael Naehrig, Martin Roetteler, Fernando Virdia, Cryptology ePrint Archive, Paper 2019/1146, https://eprint.iacr.org/2019/1146. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2019-10-03T14:42:48Z",
    "updated": "2023-06-07T10:40:06Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2019/1146.pdf",
    "sha256": "e1b693ed4e5ec428258fc324f969ca565f7e53f460992fcb68a9f61ca36af4b8",
    "size": 567820,
    "source": "wayback",
    "source_date": "2026-10-01T02:59:31Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2019/1146/versions/20261001T025931Z.pdf",
      "captured_at": "2026-10-01T02:59:31Z",
      "label": "copy captured 2026-10-01",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20261001025931id_/https://eprint.iacr.org/2019/1146.pdf",
      "size": 567820,
      "sha256": "e1b693ed4e5ec428258fc324f969ca565f7e53f460992fcb68a9f61ca36af4b8",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2019/1146/versions/20201101T065621Z.pdf",
      "captured_at": "2020-11-01T06:56:21Z",
      "label": "copy captured 2020-11-01",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20201101065621id_/https://eprint.iacr.org/2019/1146.pdf",
      "size": 537238,
      "sha256": "a6bd770569ff31c0232c70646b74cb3faa04d93cbc8b1a5f33a62cb7157e60e5",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2019/1146/versions/20200417T103614Z.pdf",
      "captured_at": "2020-04-17T10:36:14Z",
      "label": "copy captured 2020-04-17",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2019/1146.pdf",
      "size": 535825,
      "sha256": "3686047f4b2f46a370629b73e9d3accf0e77723cd2b4f9f21c3e44192cd516f0",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2019/1146/versions/20191117T174630Z.pdf",
      "captured_at": "2019-11-17T17:46:30Z",
      "label": "copy captured 2019-11-17",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20191117174630id_/https://eprint.iacr.org/2019/1146.pdf",
      "size": 527425,
      "sha256": "85d55c657c906d2d5e8d5057836dbc1f16ef2647031cef220e8eebdf78ad238c",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20261001025931id_/https://eprint.iacr.org/2019/1146.pdf",
      "captured_at": "2026-10-01T02:59:31Z",
      "size": 569166
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2019/1146.pdf",
      "captured_at": "2020-04-17T10:36:14Z",
      "size": 535825
    }
  ],
  "bibtex": "@misc{cryptoeprint:2019/1146,\n      author = {Samuel Jaques and Michael Naehrig and Martin Roetteler and Fernando Virdia},\n      title = {Implementing Grover oracles for quantum key search on AES and LowMC},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2019/1146},\n      year = {2019},\n      url = {https://eprint.iacr.org/2019/1146}\n}"
}
