{
  "id": "2012/417",
  "url": "https://opencryptology.org/2012/417",
  "original_url": "https://eprint.iacr.org/2012/417",
  "title": "Efficient Padding Oracle Attacks on Cryptographic Hardware",
  "authors": [
    "Romain Bardou",
    "Riccardo Focardi",
    "Yusuke Kawamoto",
    "Lorenzo Simionato",
    "Graham Steel",
    "Joe-Kai Tsay"
  ],
  "affiliations": null,
  "abstract": "We show how to exploit the encrypted key import functions of a\nvariety of different cryptographic devices to reveal the imported\nkey. The attacks are padding oracle attacks, where error messages\nresulting from incorrectly padded plaintexts are used as a side\nchannel. In the asymmetric encryption case, we modify and improve\nBleichenbacher's attack on RSA PKCS#1v1.5 padding, giving new\ncryptanalysis that allows us to carry out the `million message\nattack' in a mean of 49 000 and median of 14 500 oracle calls in the\ncase of cracking an unknown valid ciphertext under a 1024 bit key\n(the original algorithm takes a mean of 215 000 and a median of 163\n000 in the same case). We show how implementation details of certain\ndevices admit an attack that requires only 9 400 operations on\naverage (3 800 median).  For the symmetric case, we adapt Vaudenay's\nCBC attack, which is already highly efficient. We demonstrate the\nvulnerabilities on a number of commercially available cryptographic\ndevices, including security tokens, smartcards\nand the Estonian electronic ID card. The attacks are\nefficient enough to be practical: we give timing details for all\nthe devices found to be vulnerable, showing how our optimisations make a qualitative difference to the practicality of the attack.\nWe give mathematical analysis of the effectiveness of the attacks,\nextensive empirical results, and a discussion of countermeasures and manufacturer reaction.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Efficient Padding Oracle Attacks on Cryptographic Hardware” by Romain Bardou, Riccardo Focardi, Yusuke Kawamoto, Lorenzo Simionato, Graham Steel, Joe-Kai Tsay, Cryptology ePrint Archive, Paper 2012/417, https://eprint.iacr.org/2012/417. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2012-08-01T04:05:39Z",
    "updated": "2012-08-01T04:05:39Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2012/417.pdf",
    "sha256": "b08c5c4e835db9a77c04fe170252fa10e469225d99693b985cda2c3ae5353ed2",
    "size": 388545,
    "source": "github-mirror",
    "source_date": "2019-02-25T16:37:15Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2012/417/versions/20190225T163715Z.pdf",
      "captured_at": "2019-02-25T16:37:15Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2012/417.pdf",
      "size": 388545,
      "sha256": "b08c5c4e835db9a77c04fe170252fa10e469225d99693b985cda2c3ae5353ed2",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20261002162710id_/https://eprint.iacr.org/2012/417.pdf",
      "captured_at": "2026-10-02T16:27:10Z",
      "size": 389868
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2012/417.pdf",
      "captured_at": "2019-02-25T16:37:15Z",
      "size": 388545
    }
  ],
  "bibtex": "@misc{cryptoeprint:2012/417,\n      author = {Romain Bardou and Riccardo Focardi and Yusuke Kawamoto and Lorenzo Simionato and Graham Steel and Joe-Kai Tsay},\n      title = {Efficient Padding Oracle Attacks on Cryptographic Hardware},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2012/417},\n      year = {2012},\n      url = {https://eprint.iacr.org/2012/417}\n}"
}
