{
  "id": "2023/752",
  "url": "https://opencryptology.org/2023/752",
  "original_url": "https://eprint.iacr.org/2023/752",
  "title": "Schnorr protocol in Jasmin",
  "authors": [
    "José Bacelar Almeida",
    "Denis Firsov",
    "Tiago Oliveira",
    "Dominique Unruh"
  ],
  "affiliations": null,
  "abstract": "We implement the Schnorr protocol in assembler via the Jasmin toolchain, and prove the security (proof-of-knowledge and zero-knowledge properties) and the absence of leakage through timing side-channels of that implementation in EasyCrypt.\n\nIn order to do so, we provide a semantic characterization of leakage-freeness for probabilistic Jasmin programs (that are not constant-time). We design a library for multiple-precision integer arithmetic in Jasmin -- the \"libjbn'' library. Among others, we implement and verify algorithms for fast constant-time modular multiplication and exponentiation (using Barrett reduction and Montgomery ladder). We also implement and verify correctness and leakage-freeness of the rejection sampling algorithm. And finally, we put it all together and show the security of the overall implementation (end-to-end verification) of the Schnorr protocol, by connecting our implementation to prior security analyses in EasyCrypt (Firsov, Unruh, CSF~2023).",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Schnorr protocol in Jasmin” by José Bacelar Almeida, Denis Firsov, Tiago Oliveira, Dominique Unruh, Cryptology ePrint Archive, Paper 2023/752, https://eprint.iacr.org/2023/752. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2023-05-24T21:19:27Z",
    "updated": "2023-06-16T09:58:07Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2023/752.pdf",
    "sha256": "9d5073acd6089653700aab8bba76612506905f40d810aaa270fb0334879eb50a",
    "size": 632954,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:41Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2023/752/versions/20240114T061341Z.pdf",
      "captured_at": "2024-01-14T06:13:41Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/752.pdf",
      "size": 632954,
      "sha256": "9d5073acd6089653700aab8bba76612506905f40d810aaa270fb0334879eb50a",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2023/752/versions/20230525T132156Z.pdf",
      "captured_at": "2023-05-25T13:21:56Z",
      "label": "copy captured 2023-05-25",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20230525132156id_/https://eprint.iacr.org/2023/752.pdf",
      "size": 608527,
      "sha256": "83342bee1c2168b283116bca6f780ec4af1a307b045e0907c33f82bd2a2564e0",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260206061039id_/https://eprint.iacr.org/2023/752.pdf",
      "captured_at": "2026-02-06T06:10:39Z",
      "size": 634271
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/752.pdf",
      "captured_at": "2024-01-14T06:13:41Z",
      "size": 632954
    }
  ],
  "bibtex": "@misc{cryptoeprint:2023/752,\n      author = {José Bacelar Almeida and Denis Firsov and Tiago Oliveira and Dominique Unruh},\n      title = {Schnorr protocol in Jasmin},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2023/752},\n      year = {2023},\n      url = {https://eprint.iacr.org/2023/752}\n}"
}
