{
  "id": "2014/422",
  "url": "https://opencryptology.org/2014/422",
  "original_url": "https://eprint.iacr.org/2014/422",
  "title": "System-level non-interference for constant-time cryptography",
  "authors": [
    "Gilles Barthe",
    "Gustavo Betarte",
    "Juan Diego Campo",
    "Carlos Luna",
    "David Pichardie"
  ],
  "affiliations": null,
  "abstract": "Cache-based attacks are a class of side-channel attacks that are\nparticularly effective in virtualized or cloud-based environments,\nwhere they have been used to recover secret keys from cryptographic\nimplementations. One common approach to thwart cache-based attacks is\nto use \\emph{constant-time} implementations, i.e.\\, which do not\nbranch on secrets and do not perform memory accesses that depend on\nsecrets.  However, there is no rigorous proof that constant-time\nimplementations are protected against concurrent cache-attacks in\nvirtualization platforms with shared cache; moreover, many prominent\nimplementations are not constant-time. An alternative approach is to\nrely on system-level mechanisms. One recent such mechanism is stealth\nmemory, which provisions a small amount of private cache for programs\nto carry potentially leaking computations securely. Stealth memory\ninduces a weak form of constant-time, called \\emph{S-constant-time},\nwhich encompasses some widely used cryptographic\nimplementations. However, there is no rigorous analysis of stealth\nmemory and S-constant-time, and no tool support for checking if\napplications are S-constant-time.\n\nWe propose a new information-flow analysis that checks if an x86\napplication executes in constant-time, or in\nS-constant-time. Moreover, we prove that constant-time\n(resp. S-constant-time) programs do not leak confidential information\nthrough the cache to other operating systems executing concurrently on\nvirtualization platforms (resp. platforms supporting stealth\nmemory). The soundness proofs are based on new theorems of independent\ninterest, including isolation theorems for virtualization platforms\n(resp. platforms supporting stealth memory), and proofs that\nconstant-time implementations (resp. S-constant-time implementations)\nare non-interfering with respect to a strict information flow policy\nwhich disallows that control flow and memory accesses depend on\nsecrets.  We formalize our results using the \\textsf{Coq} proof\nassistant and we demonstrate the effectiveness of our analyses on\ncryptographic implementations, including PolarSSL AES, DES and RC4,\nSHA256 and Salsa20.",
  "category": null,
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“System-level non-interference for constant-time cryptography” by Gilles Barthe, Gustavo Betarte, Juan Diego Campo, Carlos Luna, David Pichardie, Cryptology ePrint Archive, Paper 2014/422, https://eprint.iacr.org/2014/422. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2014-06-06T05:08:29Z",
    "updated": "2014-06-06T05:08:29Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2014/422.pdf",
    "sha256": "f52c303261d13ade36d1cafe40ea772688788c944b238ba69453d9502f14a4db",
    "size": 450934,
    "source": "github-mirror",
    "source_date": "2019-02-25T16:55:32Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2014/422/versions/20190225T165532Z.pdf",
      "captured_at": "2019-02-25T16:55:32Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2014/422.pdf",
      "size": 450934,
      "sha256": "f52c303261d13ade36d1cafe40ea772688788c944b238ba69453d9502f14a4db",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260426042722id_/https://eprint.iacr.org/2014/422.pdf",
      "captured_at": "2026-04-26T04:27:22Z",
      "size": 448138
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2014/422.pdf",
      "captured_at": "2019-02-25T16:55:32Z",
      "size": 450934
    }
  ],
  "bibtex": "@misc{cryptoeprint:2014/422,\n      author = {Gilles Barthe and Gustavo Betarte and Juan Diego Campo and Carlos Luna and David Pichardie},\n      title = {System-level non-interference for constant-time cryptography},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2014/422},\n      year = {2014},\n      url = {https://eprint.iacr.org/2014/422}\n}"
}
