{
  "id": "2026/2510",
  "url": "https://opencryptology.org/2026/2510",
  "original_url": "https://eprint.iacr.org/2026/2510",
  "title": "Secure Compilation of Probabilistic Side-Channel Countermeasures",
  "authors": [
    "Gilles Barthe",
    "Gaëtan Cassiers",
    "Henri Dohmen",
    "Marc Gourjon",
    "Benjamin Grégoire",
    "Nora Khayata",
    "Thomas Schneider",
    "Finn Schubert"
  ],
  "affiliations": null,
  "abstract": "Probabilistic countermeasures are a common means of protecting programs against side-channels. These countermeasures are hard to implement and are routinely broken by compilers. Proving that a compiler preserves probabilistic side-channel security directly would require reasoning about perfect simulatability of distributions, a challenging technique normally reserved for high-assurance cryptography in frameworks like EasyCrypt and out of scope for compiler correctness.\n\nIn this paper, we present a language- and leakage-model-agnostic framework for provably secure compilation of probabilistic side-channel security notions. Our main contribution is formalizing a deterministic leakage-preservation relation that implies preservation of probabilistic security notions, including d-NI and d-SNI for masking and cryptographic constant-time. Our framework establishes the same guarantees without probabilistic proof obligations, reducing preservation to a per-pass simulation argument on deterministic traces.\n\nWe use the Rocq proof assistant to prove that a model of the core pipeline and several optimizing passes of the Jasmin compiler preserve security in the value-probing model with glitches. We also show how to harden against transition leakage with lightweight annotations at the source level. On top of this, we build libmasking, an open-source library of arbitrary-order masked gadgets in Jasmin that securely compiles to ARM and RISC-V assembly, provides C language bindings, and is benchmarked on real hardware. Together, these contributions are a step towards programming environments in which masked code is written or generated, verified at the source level, optimized, and compiled without breaking security.",
  "category": "Applications",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Secure Compilation of Probabilistic Side-Channel Countermeasures” by Gilles Barthe, Gaëtan Cassiers, Henri Dohmen, Marc Gourjon, Benjamin Grégoire, Nora Khayata, Thomas Schneider, Finn Schubert, Cryptology ePrint Archive, Paper 2026/2510, https://eprint.iacr.org/2026/2510. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2026-10-16T13:26:19Z",
    "updated": "2026-10-16T13:26:19Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2026/2510.pdf",
    "sha256": "9b3ce93a9b15dad2f128d92df8e5ed17fb1eedd44a4b46c2c4b5df8bf6f11ddb",
    "size": 2862578,
    "source": "upload",
    "source_date": "2026-11-11T18:46:00.523Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2026/2510/versions/20261111T184600Z.pdf",
      "captured_at": "2026-11-11T18:46:00.523Z",
      "label": "copy captured 2026-11-11",
      "source": "upload",
      "source_url": null,
      "size": 2862578,
      "sha256": "9b3ce93a9b15dad2f128d92df8e5ed17fb1eedd44a4b46c2c4b5df8bf6f11ddb",
      "is_default_pdf": true
    }
  ],
  "other_sources": [],
  "bibtex": "@misc{cryptoeprint:2026/2510,\n      author = {Gilles Barthe and Gaëtan Cassiers and Henri Dohmen and Marc Gourjon and Benjamin Grégoire and Nora Khayata and Thomas Schneider and Finn Schubert},\n      title = {Secure Compilation of Probabilistic Side-Channel Countermeasures},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2026/2510},\n      year = {2026},\n      url = {https://eprint.iacr.org/2026/2510}\n}"
}
