{
  "id": "2025/759",
  "url": "https://opencryptology.org/2025/759",
  "original_url": "https://eprint.iacr.org/2025/759",
  "title": "Let's DOIT: Using Intel's Extended HW/SW Contract for Secure Compilation of Crypto Code",
  "authors": [
    "Santiago Arranz-Olmos",
    "Gilles Barthe",
    "Benjamin Grégoire",
    "Jan Jancar",
    "Vincent Laporte",
    "Tiago Oliveira",
    "Peter Schwabe"
  ],
  "affiliations": null,
  "abstract": "It is a widely accepted standard practice to implement cryptographic software so that secret inputs do not influence the cycle count. Software following this paradigm is often referred to as \"constant-time\" software and typically involves following three rules: 1) never branch on a secret-dependent condition, 2) never access memory at a secret-dependent location, and 3) avoid variable-time arithmetic operations on secret data. The third rule requires knowledge about such variable-time arithmetic instructions, or vice versa, which operations are safe to use on secret inputs. For a long time, this knowledge was based on either documentation or microbenchmarks, but critically, there were never any guarantees for future microarchitectures. This changed with the introduction of the data-operand-independent-timing (DOIT) mode on Intel CPUs and, to some extent, the data-independent-timing (DIT) mode on Arm CPUs. Both Intel and Arm document a subset of their respective instruction sets that are intended to leak no information about their inputs through timing, even on future microarchitectures if the CPU is set to run in a dedicated DOIT (or DIT) mode.\nIn this paper, we present a principled solution that leverages DOIT to enable cryptographic software that is future-proof constant-time, in the sense that it ensures that only instructions from the DOIT subset are used to operate on secret data, even during speculative execution after a mispredicted branch or function return location. For this solution, we build on top of existing security type systems in the Jasmin framework for high-assurance cryptography.\nWe then use our solution to evaluate the extent to which existing cryptographic software built to be \"constant-time\" is already secure in this stricter paradigm implied by DOIT and what the performance impact is to move from constant-time to future-proof constant-time.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Let's DOIT: Using Intel's Extended HW/SW Contract for Secure Compilation of Crypto Code” by Santiago Arranz-Olmos, Gilles Barthe, Benjamin Grégoire, Jan Jancar, Vincent Laporte, Tiago Oliveira, Peter Schwabe, Cryptology ePrint Archive, Paper 2025/759, https://eprint.iacr.org/2025/759. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2025-04-28T21:10:44Z",
    "updated": "2025-04-28T21:10:44Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2025/759.pdf",
    "sha256": "f354d3630e3d2f9f9be56ed78a5406f3bbeb3bfa72bba7206798010d67831523",
    "size": 773528,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2025/759/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2025/759.pdf",
      "size": 773528,
      "sha256": "f354d3630e3d2f9f9be56ed78a5406f3bbeb3bfa72bba7206798010d67831523",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2025/759.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 773528
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260301085047id_/https://eprint.iacr.org/2025/759.pdf",
      "captured_at": "2026-03-01T08:50:47Z",
      "size": 748412
    }
  ],
  "bibtex": "@misc{cryptoeprint:2025/759,\n      author = {Santiago Arranz-Olmos and Gilles Barthe and Benjamin Grégoire and Jan Jancar and Vincent Laporte and Tiago Oliveira and Peter Schwabe},\n      title = {Let's DOIT: Using Intel's Extended HW/SW Contract for Secure Compilation of Crypto Code},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2025/759},\n      year = {2025},\n      url = {https://eprint.iacr.org/2025/759}\n}"
}
