{
  "id": "2020/1407",
  "url": "https://opencryptology.org/2020/1407",
  "original_url": "https://eprint.iacr.org/2020/1407",
  "title": "Computing Square Roots Faster than the Tonelli-Shanks/Bernstein Algorithm",
  "authors": [
    "Palash Sarkar"
  ],
  "affiliations": null,
  "abstract": "Let $p$ be a prime such that $p=1+2^nm$, where $n\\geq 1$ and $m$ is odd. Given a square $u$ in $\\mathbb{Z}_p$ and a non-square $z$ in $\\mathbb{Z}_p$,\nwe describe an algorithm to compute a square root of $u$ which requires $\\mathfrak{T}+O(n^{3/2})$ operations (i.e., squarings and multiplications), where $\\mathfrak{T}$\nis the number of operations required to exponentiate an element of $\\mathbb{Z}_p$ to the power $(m-1)/2$. This improves upon the Tonelli-Shanks (TS) algorithm which\nrequires $\\mathfrak{T}+O(n^{2})$ operations. Bernstein had proposed a table look-up based variant of the TS algorithm which requires $\\mathfrak{T}+O((n/w)^{2})$\noperations and $O(2^wn/w)$ storage, where $w$ is a parameter. A table look-up variant of the new algorithm requires $\\mathfrak{T}+O((n/w)^{3/2})$ operations and the\nsame storage. In concrete terms, the new algorithm is shown to require significantly fewer operations for particular values of $n$.",
  "category": "Public-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Computing Square Roots Faster than the Tonelli-Shanks/Bernstein Algorithm” by Palash Sarkar, Cryptology ePrint Archive, Paper 2020/1407, https://eprint.iacr.org/2020/1407. 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-11-15T07:27:10Z",
    "updated": "2021-11-29T09:48:09Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2020/1407.pdf",
    "sha256": "7cf79acb5d798acc4815de3f670ed7bb4294e6d4dba03bb6cbb80150316264c8",
    "size": 434016,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:14Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2020/1407/versions/20240114T061314Z.pdf",
      "captured_at": "2024-01-14T06:13:14Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2020/1407.pdf",
      "size": 434016,
      "sha256": "7cf79acb5d798acc4815de3f670ed7bb4294e6d4dba03bb6cbb80150316264c8",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2020/1407/versions/20201129T145242Z.pdf",
      "captured_at": "2020-11-29T14:52:42Z",
      "label": "copy captured 2020-11-29",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20201129145242id_/https://eprint.iacr.org/2020/1407.pdf",
      "size": 376605,
      "sha256": "85773ecc4dfff1343af94ca7b24f0b9dc1c4e0f4240dc8dab036cab564cea52e",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260111024922id_/https://eprint.iacr.org/2020/1407.pdf",
      "captured_at": "2026-01-11T02:49:22Z",
      "size": 434936
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2020/1407.pdf",
      "captured_at": "2024-01-14T06:13:14Z",
      "size": 434016
    }
  ],
  "bibtex": "@misc{cryptoeprint:2020/1407,\n      author = {Palash Sarkar},\n      title = {Computing Square Roots Faster than the Tonelli-Shanks/Bernstein Algorithm},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2020/1407},\n      year = {2020},\n      url = {https://eprint.iacr.org/2020/1407}\n}"
}
