{
  "id": "2016/1195",
  "url": "https://opencryptology.org/2016/1195",
  "original_url": "https://eprint.iacr.org/2016/1195",
  "title": "Constant-Time Callees with Variable-Time Callers",
  "authors": [
    "Cesar Pereida Garcïa",
    "Billy Bob Brumley"
  ],
  "affiliations": null,
  "abstract": "Side-channel attacks are a serious threat to security-critical software. To mitigate remote timing and cache-timing attacks, many ubiquitous cryptography software libraries feature constant-time implementations of cryptographic primitives. In this work, we disclose a vulnerability in OpenSSL 1.0.1u that recovers ECDSA private keys for the standardized elliptic curve P-256 despite the library featuring both constant-time curve operations and modular inversion with microarchitecture attack mitigations. Exploiting this defect, we target\nthe errant modular inversion code path with a cache-timing and improved\nperformance degradation attack, recovering the inversion state sequence. We propose a new approach of extracting a variable number of nonce bits from these sequences, and improve upon the best theoretical result to recover private keys in a lattice attack with as few as 50 signatures and corresponding traces. As far as we are aware, this is the first timing attack against OpenSSL ECDSA that does not target scalar multiplication, the first side-channel attack on cryptosystems\nleveraging P-256 constant-time scalar multiplication and furthermore, we extend our attack to TLS and SSH protocols, both linked to OpenSSL for P-256 ECDSA signing.",
  "category": null,
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Constant-Time Callees with Variable-Time Callers” by Cesar Pereida Garcïa, Billy Bob Brumley, Cryptology ePrint Archive, Paper 2016/1195, https://eprint.iacr.org/2016/1195. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2017-01-01T15:40:02Z",
    "updated": "2017-08-29T06:51:52Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2016/1195.pdf",
    "sha256": "031a969d1f6ff6cbd40faeea12bb82853d682062ace785ec9a4663b0a53b7c83",
    "size": 287192,
    "source": "github-mirror",
    "source_date": "2019-02-25T17:24:56Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2016/1195/versions/20190225T172456Z.pdf",
      "captured_at": "2019-02-25T17:24:56Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2016/1195.pdf",
      "size": 287192,
      "sha256": "031a969d1f6ff6cbd40faeea12bb82853d682062ace785ec9a4663b0a53b7c83",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2016/1195/versions/20170610T153727Z.pdf",
      "captured_at": "2017-06-10T15:37:27Z",
      "label": "copy captured 2017-06-10",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20170610153727id_/https://eprint.iacr.org/2016/1195.pdf",
      "size": 240377,
      "sha256": "71db30017ebcf617827d43fc51b2309bede1b293e647675c75c1519dafe94f43",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2016/1195/versions/20170124T045703Z.pdf",
      "captured_at": "2017-01-24T04:57:03Z",
      "label": "copy captured 2017-01-24",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20170124045703id_/http://eprint.iacr.org:80/2016/1195.pdf",
      "size": 223243,
      "sha256": "79736eff905b7dbcece37656ca08effb6bf3893e2f27ee3196d311cd52a1e112",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20261003154227id_/https://eprint.iacr.org/2016/1195.pdf",
      "captured_at": "2026-10-03T15:42:27Z",
      "size": 284573
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2016/1195.pdf",
      "captured_at": "2019-02-25T17:24:56Z",
      "size": 287192
    }
  ],
  "bibtex": "@misc{cryptoeprint:2016/1195,\n      author = {Cesar Pereida Garcïa and Billy Bob Brumley},\n      title = {Constant-Time Callees with Variable-Time Callers},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2016/1195},\n      year = {2016},\n      url = {https://eprint.iacr.org/2016/1195}\n}"
}
