{
  "id": "2024/1054",
  "url": "https://opencryptology.org/2024/1054",
  "original_url": "https://eprint.iacr.org/2024/1054",
  "title": "Optimized Computation of the Jacobi Symbol",
  "authors": [
    "Jonas Lindstrøm",
    "Kostas Kryptos Chalkias"
  ],
  "affiliations": null,
  "abstract": "The Jacobi Symbol is an essential primitive in cryptographic applications such as primality testing, integer factorization, and various encryption schemes. By exploring the interdependencies among modular reductions within the algorithmic loop, we have developed a refined method that significantly enhances computational efficiency. Our optimized algorithm, implemented in the Rust language, achieves a performance increase of 72% over conventional textbook methods and is twice as fast as the previously fastest known Rust implementation. \n\nThis work not only provides a detailed analysis of the optimizations but also includes comprehensive benchmark comparisons to illustrate the practical advantages of our methods. Our algorithm is publicly available under an open-source license, promoting further research on foundational cryptographic optimizations.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Optimized Computation of the Jacobi Symbol” by Jonas Lindstrøm, Kostas Kryptos Chalkias, Cryptology ePrint Archive, Paper 2024/1054, https://eprint.iacr.org/2024/1054. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2024-06-28T07:45:18Z",
    "updated": "2024-06-28T07:45:18Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2024/1054.pdf",
    "sha256": "c4dc0b8d5030dec32ade4e60a9beb143a53b515e965fdefcc1e49a93f365f178",
    "size": 361935,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2024/1054/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/1054.pdf",
      "size": 361935,
      "sha256": "c4dc0b8d5030dec32ade4e60a9beb143a53b515e965fdefcc1e49a93f365f178",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/1054.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 361935
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260308070733id_/https://eprint.iacr.org/2024/1054.pdf",
      "captured_at": "2026-03-08T07:07:33Z",
      "size": 362693
    }
  ],
  "bibtex": "@misc{cryptoeprint:2024/1054,\n      author = {Jonas Lindstrøm and Kostas Kryptos Chalkias},\n      title = {Optimized Computation of the Jacobi Symbol},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2024/1054},\n      year = {2024},\n      url = {https://eprint.iacr.org/2024/1054}\n}"
}
