{
  "id": "2022/630",
  "url": "https://opencryptology.org/2022/630",
  "original_url": "https://eprint.iacr.org/2022/630",
  "title": "Enforcing fine-grained constant-time policies",
  "authors": [
    "Basavesh Ammanaghatta Shivakumar",
    "Gilles Barthe",
    "Benjamin Grégoire",
    "Vincent Laporte",
    "Swarn Priya"
  ],
  "affiliations": null,
  "abstract": "Cryptographic constant-time (CT) is a popular programming disci- pline used by cryptographic libraries to protect themselves against timing attacks. The CT discipline aims to enforce that program ex- ecution does not leak secrets, where leakage is defined by a formal leakage model. In practice, different leakage models coexist, some- times even within a single library, both to reflect different architec- tures and to accommodate different security-efficiency trade-offs. Constant-timeness is popular and can be checked automatically by many tools. However, most sound tools are focused on a baseline (BL) leakage model. In contrast, (sound) verification methods for other leakage models are less developed, in part because these mod- els require modular arithmetic reasoning. In this paper, we develop a systematic, sound, approach for enforcing fine-grained constant- time policies beyond the BL model. Our approach combines two main ingredients: a verification infrastructure, which proves that source programs are constant-time, and a compiler infrastructure, which provably preserves constant-timeness for these fine-grained policies. By making these infrastructures parametric in the leakage model, we achieve the first approach that supports fine-grained constant-time policies. We implement the approach in the Jasmin framework for high-assurance cryptography, and we evaluate our approach with examples from the literature: OpenSSL and wolfSSL. We found a bug in OpenSSL and provided a formally verified fix.",
  "category": null,
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Enforcing fine-grained constant-time policies” by Basavesh Ammanaghatta Shivakumar, Gilles Barthe, Benjamin Grégoire, Vincent Laporte, Swarn Priya, Cryptology ePrint Archive, Paper 2022/630, https://eprint.iacr.org/2022/630. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2022-05-23T08:35:02Z",
    "updated": "2022-05-23T08:35:02Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2022/630.pdf",
    "sha256": "d4142893fd6f73efb514b796283fb8ecef462d370330104ee98fe5f2b2375b1f",
    "size": 989831,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:34Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2022/630/versions/20240114T061334Z.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/630.pdf",
      "size": 989831,
      "sha256": "d4142893fd6f73efb514b796283fb8ecef462d370330104ee98fe5f2b2375b1f",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20251209234820id_/https://eprint.iacr.org/2022/630.pdf",
      "captured_at": "2025-12-09T23:48:20Z",
      "size": 976757
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/630.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "size": 989831
    }
  ],
  "bibtex": "@misc{cryptoeprint:2022/630,\n      author = {Basavesh Ammanaghatta Shivakumar and Gilles Barthe and Benjamin Grégoire and Vincent Laporte and Swarn Priya},\n      title = {Enforcing fine-grained constant-time policies},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2022/630},\n      year = {2022},\n      url = {https://eprint.iacr.org/2022/630}\n}"
}
