{
  "id": "2021/1121",
  "url": "https://opencryptology.org/2021/1121",
  "original_url": "https://eprint.iacr.org/2021/1121",
  "title": "Constant-Time Arithmetic for Safer Cryptography",
  "authors": [
    "Lúcás Críostóir Meier",
    "Simone Colombo",
    "Marin Thiercelin",
    "Bryan Ford"
  ],
  "affiliations": null,
  "abstract": "The humble integers, $\\mathbb{Z}$, are the backbone of many\ncryptosystems.\nWhen bridging the gap from theoretical systems to real-world\nimplementations, programmers\noften look towards general purpose libraries\nto implement the arbitrary-precision arithmetic required.\nAlas, these libraries are often conceived without cryptography in mind,\nleaving applications potentially vulnerable to timing attacks.\nTo address this, we present saferith, a library providing\nsafer arbitrary-precision arithmetic for cryptography, through\nconstant-time operations.\nThe main challenge was in designing an API to provide this functionality alongside\nthese stronger constant-time guarantees.\nWe benchmarked the performance of our library against Go's big.Int\nlibrary, and found an acceptable slowdown of only 2.56x for modular\nexponentiation, the most expensive operation.\nOur library was also used to implement a variety cryptosystems and\napplications, in collaboration with industrial partners ProtonMail and Taurus.\nPorting implementations to use our library is relatively easy:\nit took the first author under 8 hours to port Go's implementation of P-384.",
  "category": "Applications",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Constant-Time Arithmetic for Safer Cryptography” by Lúcás Críostóir Meier, Simone Colombo, Marin Thiercelin, Bryan Ford, Cryptology ePrint Archive, Paper 2021/1121, https://eprint.iacr.org/2021/1121. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2021-09-03T06:59:16Z",
    "updated": "2021-09-03T06:59:16Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2021/1121.pdf",
    "sha256": "337b8486ea8932b45bd8e0e921b09cefa8389c617b2518f47edada0ddb9cf1d0",
    "size": 155979,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:28Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2021/1121/versions/20240114T061328Z.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/1121.pdf",
      "size": 155979,
      "sha256": "337b8486ea8932b45bd8e0e921b09cefa8389c617b2518f47edada0ddb9cf1d0",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20251219012217id_/https://eprint.iacr.org/2021/1121.pdf",
      "captured_at": "2025-12-19T01:22:17Z",
      "size": 148952
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/1121.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "size": 155979
    }
  ],
  "bibtex": "@misc{cryptoeprint:2021/1121,\n      author = {Lúcás Críostóir Meier and Simone Colombo and Marin Thiercelin and Bryan Ford},\n      title = {Constant-Time Arithmetic for Safer Cryptography},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2021/1121},\n      year = {2021},\n      url = {https://eprint.iacr.org/2021/1121}\n}"
}
