{
  "id": "2016/992",
  "url": "https://opencryptology.org/2016/992",
  "original_url": "https://eprint.iacr.org/2016/992",
  "title": "Estimating the cost of generic quantum pre-image attacks on SHA-2 and SHA-3",
  "authors": [
    "Matthew Amy",
    "Olivia Di Matteo",
    "Vlad Gheorghiu",
    "Michele Mosca",
    "Alex Parent",
    "John Schanck"
  ],
  "affiliations": null,
  "abstract": "We investigate the cost of Grover's quantum search algorithm when used in the\ncontext of pre-image attacks on the SHA-2 and SHA-3 families of\nhash functions.  Our cost model assumes that the attack is run on a surface\ncode based fault-tolerant quantum computer. Our estimates rely on a time-area\nmetric that costs the number of logical qubits times the depth of the circuit\nin units of surface code cycles.  As a surface code cycle involves a\nsignificant classical processing stage, our cost estimates allow for crude, but\ndirect, comparisons of classical and quantum algorithms.\n\nWe exhibit a circuit for a pre-image attack on SHA-256 that is\napproximately $2^{153.8}$ surface code cycles deep and requires approximately\n$2^{12.6}$ logical qubits. This yields an overall cost of $2^{166.4}$\nlogical-qubit-cycles.  Likewise we exhibit a SHA3-256 circuit that is\napproximately $2^{146.5}$ surface code cycles deep and requires approximately\n$2^{20}$ logical qubits for a total cost of, again, $2^{166.5}$\nlogical-qubit-cycles. Both attacks require on the order of $2^{128}$ queries in\na quantum black-box model, hence our results suggest that executing these\nattacks may be as much as $275$ billion times more expensive than one would\nexpect from the simple query analysis.",
  "category": null,
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Estimating the cost of generic quantum pre-image attacks on SHA-2 and SHA-3” by Matthew Amy, Olivia Di Matteo, Vlad Gheorghiu, Michele Mosca, Alex Parent, John Schanck, Cryptology ePrint Archive, Paper 2016/992, https://eprint.iacr.org/2016/992. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2016-10-17T19:33:33Z",
    "updated": "2016-11-30T16:35:43Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2016/992.pdf",
    "sha256": "b0c6b5f2387de21bc4a833f302f68efe25ccad21084f0cd1045d3f60ae8ca23b",
    "size": 495224,
    "source": "github-mirror",
    "source_date": "2019-02-25T17:24:56Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2016/992/versions/20190225T172456Z.pdf",
      "captured_at": "2019-02-25T17:24:56Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2016/992.pdf",
      "size": 495224,
      "sha256": "b0c6b5f2387de21bc4a833f302f68efe25ccad21084f0cd1045d3f60ae8ca23b",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2016/992/versions/20161021T234248Z.pdf",
      "captured_at": "2016-10-21T23:42:48Z",
      "label": "copy captured 2016-10-21",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20161021234248id_/https://eprint.iacr.org/2016/992.pdf",
      "size": 494556,
      "sha256": "64d2229d76f76d056e81dbffa39c2ae26800348977e184af3a0bbbbaea585bdd",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20261003203606id_/https://eprint.iacr.org/2016/992.pdf",
      "captured_at": "2026-10-03T20:36:06Z",
      "size": 496557
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2016/992.pdf",
      "captured_at": "2019-02-25T17:24:56Z",
      "size": 495224
    }
  ],
  "bibtex": "@misc{cryptoeprint:2016/992,\n      author = {Matthew Amy and Olivia Di Matteo and Vlad Gheorghiu and Michele Mosca and Alex Parent and John Schanck},\n      title = {Estimating the cost of generic quantum pre-image attacks on SHA-2 and SHA-3},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2016/992},\n      year = {2016},\n      url = {https://eprint.iacr.org/2016/992}\n}"
}
