{
  "id": "2020/098",
  "url": "https://opencryptology.org/2020/098",
  "original_url": "https://eprint.iacr.org/2020/098",
  "title": "Improved key recovery on the Legendre PRF",
  "authors": [
    "Novak Kaluđerović",
    "Thorsten Kleinjung",
    "Dusan Kostic"
  ],
  "affiliations": null,
  "abstract": "We give an algorithm for key recovery of the Legendre pseudorandom function that supersedes the best known algorithms so far.\nThe expected number of operations is $O(\\sqrt{p\\log{\\log{p}}})$ on a $\\Theta(\\log{p})$-bit word machine, under reasonable heuristic assumptions, and requires only $\\sqrt[4]{p~{\\log^2{p}}\\log{\\log{p}}}$ oracle queries.\nIf the number of queries $M$ is smaller, the expected number of operations is $\\frac{{p}\\log{p}\\log\\log{p}}{M^2}$. We further show that the algorithm works in many different generalisations -- using a different character instead of the Legendre symbol, using the Jacobi symbol, or using a degree $r$ polynomial in the Legendre symbol numerator.\nIn the latter case we show how to use Möbius transforms to lower the complexity to $O(p^{\\operatorname{max}\\{r-3,r/2\\}}r^2\\log{p})$ Legendre symbol computations, and $O(p^{\\operatorname{max}\\{r-4,r/2\\}}r^2\\log{p})$ in the case of a reducible polynomial.\nWe also give an $O(\\sqrt[3]{p})$ quantum algorithm that does not require a quantum oracle, and comments on the action of the Möbius group in the linear PRF case.\nOn the practical side we give implementational details of our algorithm.\nWe give the solutions of the $64, 74$ and $84$-bit prime challenges for key recovery with $M=2^{20}$ queries posed by Ethereum, out of which only the $64$ and $74$-bit were solved earlier.",
  "category": "Secret-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Improved key recovery on the Legendre PRF” by Novak Kaluđerović, Thorsten Kleinjung, Dusan Kostic, Cryptology ePrint Archive, Paper 2020/098, https://eprint.iacr.org/2020/098. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2020-02-04T12:50:01Z",
    "updated": "2021-06-23T16:23:38Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2020/098.pdf",
    "sha256": "f540893143546d02ced8bd2d6fa3b100be4378f37c329a3098bdb77055442144",
    "size": 568258,
    "source": "wayback",
    "source_date": "2026-08-19T14:34:25Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2020/098/versions/20260819T143425Z.pdf",
      "captured_at": "2026-08-19T14:34:25Z",
      "label": "copy captured 2026-08-19",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20260819143425id_/https://eprint.iacr.org/2020/098.pdf",
      "size": 568258,
      "sha256": "f540893143546d02ced8bd2d6fa3b100be4378f37c329a3098bdb77055442144",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260819143425id_/https://eprint.iacr.org/2020/098.pdf",
      "captured_at": "2026-08-19T14:34:25Z",
      "size": 569594
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2020/098.pdf",
      "captured_at": "2020-04-17T10:36:14Z",
      "size": 568258
    }
  ],
  "bibtex": "@misc{cryptoeprint:2020/098,\n      author = {Novak Kaluđerović and Thorsten Kleinjung and Dusan Kostic},\n      title = {Improved key recovery on the Legendre PRF},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2020/098},\n      year = {2020},\n      url = {https://eprint.iacr.org/2020/098}\n}"
}
