Lune

CCS2021Top-tier venue

Structured Leakage and Applications to Cryptographic Constant-Time and Cost

Gilles Barthe, Benjamin Grégoire, Vincent Laporte, Swarn Priya

Abstract

Many security properties of interest are captured by instrumented semantics that model the functional behavior and the leakage of programs. For several important properties, including cryptographic constant-time (CCT), leakage models are sufficiently abstract that one can define instrumented semantics for high-level and low-level programs. One important goal is then to relate leakage of source programs and leakage of their compilation---this can be used, e.g., to prove preservation of CCT. To simplify this task, we put forward the idea of structured leakage. In contrast to the usual modeling of leakage as a sequence of observations, structured leakage is tightly coupled with the operational semantics of programs. This coupling greatly simplifies the definition of leakage transformers that map the leakage of source programs to leakage of their compilation and yields more precise statements about the preservation of security properties. We illustrate our methods on the Jasmin compiler and prove preservation results for two policies of interest: CCT and cost.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

10 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Non-interference Preserving Optimising Compilation cites Formal verification of a constant-time preserving C compiler
  • Non-interference Preserving Optimising Compilation cites SNIP: Speculative Execution and Non-Interference Preservation for Compiler Transformations
  • Non-interference Preserving Optimising Compilation cites Jasmin: High-Assurance and High-Speed Cryptography
  • Non-interference Preserving Optimising Compilation cites Preservation of Speculative Constant-Time by Compilation
  • Formal verification of a constant-time preserving C compiler cites The Last Mile: High-Assurance and High-Speed Cryptographic Implementations
  • Formal verification of a constant-time preserving C compiler cites Jasmin: High-Assurance and High-Speed Cryptography
  • SECOMP: Formally Secure Compilation of Compartmentalized C Programs cites Formal verification of a constant-time preserving C compiler
  • SECOMP: Formally Secure Compilation of Compartmentalized C Programs cites The Last Mile: High-Assurance and High-Speed Cryptographic Implementations
  • Smooth, Integrated Proofs of Cryptographic Constant Time for Nondeterministic Programs and Compilers cites Formal verification of a constant-time preserving C compiler
  • Smooth, Integrated Proofs of Cryptographic Constant Time for Nondeterministic Programs and Compilers cites SNIP: Speculative Execution and Non-Interference Preservation for Compiler Transformations
  • Smooth, Integrated Proofs of Cryptographic Constant Time for Nondeterministic Programs and Compilers cites Automatically eliminating speculative leaks from cryptographic code with blade
  • Smooth, Integrated Proofs of Cryptographic Constant Time for Nondeterministic Programs and Compilers cites Jasmin: High-Assurance and High-Speed Cryptography
  • Smooth, Integrated Proofs of Cryptographic Constant Time for Nondeterministic Programs and Compilers cites Preservation of Speculative Constant-Time by Compilation
  • SNIP: Speculative Execution and Non-Interference Preservation for Compiler Transformations cites Formal verification of a constant-time preserving C compiler
  • SNIP: Speculative Execution and Non-Interference Preservation for Compiler Transformations cites Automatically eliminating speculative leaks from cryptographic code with blade
  • SNIP: Speculative Execution and Non-Interference Preservation for Compiler Transformations cites Preservation of Speculative Constant-Time by Compilation
  • Preservation of Speculative Constant-Time by Compilation cites SNIP: Speculative Execution and Non-Interference Preservation for Compiler Transformations
  • The Last Mile: High-Assurance and High-Speed Cryptographic Implementations cites Jasmin: High-Assurance and High-Speed Cryptography
  • Automatically eliminating speculative leaks from cryptographic code with blade cites Formal verification of a constant-time preserving C compiler
  • Automatically eliminating speculative leaks from cryptographic code with blade cites Jasmin: High-Assurance and High-Speed Cryptography
  • Preservation of Speculative Constant-Time by Compilation cites Formal verification of a constant-time preserving C compiler
  • Preservation of Speculative Constant-Time by Compilation cites The Last Mile: High-Assurance and High-Speed Cryptographic Implementations
  • Preservation of Speculative Constant-Time by Compilation cites Automatically eliminating speculative leaks from cryptographic code with blade
  • Preservation of Speculative Constant-Time by Compilation cites Do you have space for dessert? a verified space cost semantics for CakeML programs
  • Preservation of Speculative Constant-Time by Compilation cites Jasmin: High-Assurance and High-Speed Cryptography
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. Preservation of Speculative Constant-Time by CompilationSantiago Arranz-Olmos, Gilles Barthe, Lionel Blatter, Benjamin Grégoire et al.POPL 2025 · 8 citations
  2. SNIP: Speculative Execution and Non-Interference Preservation for Compiler TransformationsSören van der Wall, Roland MeyerPOPL 2025 · 7 citations
  3. Non-interference Preserving Optimising CompilationJulian Rosemann, Sebastian Hack, Deepak GargOOPSLA 2025 · 1 citation
  4. SECOMP: Formally Secure Compilation of Compartmentalized C ProgramsJérémy Thibault, Roberto Blanco, Dongjae Lee, Sven Argo et al.CCS 2024 · 1 citation
  5. Smooth, Integrated Proofs of Cryptographic Constant Time for Nondeterministic Programs and CompilersOwen Conoly, Andres Erbsen, Adam ChlipalaPLDI 2025 · 1 citation

Builds on6

  1. Jasmin: High-Assurance and High-Speed CryptographyJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, Arthur Blot et al.CCS 2017 · 157 citations
  2. Formal verification of a constant-time preserving C compilerGilles Barthe, Sandrine Blazy, Benjamin Grégoire, Rémi Hutin et al.POPL 2020 · 77 citations
  3. The Last Mile: High-Assurance and High-Speed Cryptographic ImplementationsJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, Benjamin Grégoire et al.S&P 2020 · 67 citations
  4. Automatically eliminating speculative leaks from cryptographic code with bladeMarco Vassena, Craig Disselkoen, Klaus von Gleissenthall, Sunjay Cauligi et al.POPL 2021 · 53 citations
  5. Do you have space for dessert? a verified space cost semantics for CakeML programsAlejandro Gómez-Londoño, Johannes Åman Pohjola, Hira Taqdees Syeda, Magnus O. Myreen et al.OOPSLA 2020 · 12 citations

Related papers

  1. Enforcing Fine-grained Constant-time PoliciesBasavesh Ammanaghatta Shivakumar, Gilles Barthe, Benjamin Grégoire, Vincent Laporte et al.CCS 2022 · 11 citations
  2. KEM-IND-CCA-Preserving Compilation of Jasmin's ML-KEMSantiago Arranz-Olmos, Gilles Barthe, Lionel Blatter, Benjamin Gregoire et al.CCS 2026 · 1 citation
  3. Binsec/Rel: Efficient Relational Symbolic Execution for Constant-Time at Binary-LevelLesly-Ann Daniel, Sébastien Bardin, Tamara RezkS&P 2020 · 76 citations
  4. Robust Constant-Time CryptographyMatthew Kolosick, Basavesh Ammanaghatta Shivakumar, Sunjay Cauligi, Marco Patrignani et al.PLDI 2025 · 1 citation
  5. Reconciling optimization with secure compilationSon Tuan Vu, Albert Cohen, Arnaud de Grandmaison, Christophe Guillon et al.OOPSLA 2021 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines