{
  "id": "2019/909",
  "url": "https://opencryptology.org/2019/909",
  "original_url": "https://eprint.iacr.org/2019/909",
  "title": "A Practicable Timing Attack Against HQC and its Countermeasure",
  "authors": [
    "Guillaume Wafo-Tapa",
    "Slim Bettaieb",
    "Loic Bidoux",
    "Philippe Gaborit",
    "Etienne Marcatel"
  ],
  "affiliations": null,
  "abstract": "In this paper, we present a practicable chosen ciphertext timing attack retrieving the secret key of HQC. The attack exploits a correlation between the weight of the error to be decoded and the running time of the decoding algorithm of BCH codes. For the 128-bit security parameters of HQC, the attack runs in less than a minute on a desktop computer using 5441 decoding requests and has a success probability of approximately 93 percent. To prevent this attack, we propose a constant time algorithm for the decoding of BCH codes.\nOur implementation of the countermeasure achieves a constant time execution of the decoding process without a significant performance penalty.",
  "category": "Public-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“A Practicable Timing Attack Against HQC and its Countermeasure” by Guillaume Wafo-Tapa, Slim Bettaieb, Loic Bidoux, Philippe Gaborit, Etienne Marcatel, Cryptology ePrint Archive, Paper 2019/909, https://eprint.iacr.org/2019/909. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2019-08-08T06:44:42Z",
    "updated": "2019-09-23T15:13:52Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2019/909.pdf",
    "sha256": "9e8e44fc768ac2b9d2c0bfda7561ca15730c65ad29ccdd06e24fad5c16ebe091",
    "size": 404253,
    "source": "github-mirror",
    "source_date": "2020-04-17T10:36:14Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2019/909/versions/20200417T103614Z.pdf",
      "captured_at": "2020-04-17T10:36:14Z",
      "label": "copy captured 2020-04-17",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2019/909.pdf",
      "size": 404253,
      "sha256": "9e8e44fc768ac2b9d2c0bfda7561ca15730c65ad29ccdd06e24fad5c16ebe091",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2019/909/versions/20190922T105003Z.pdf",
      "captured_at": "2019-09-22T10:50:03Z",
      "label": "copy captured 2019-09-22",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20190922105003id_/https://eprint.iacr.org/2019/909.pdf",
      "size": 403794,
      "sha256": "3a312e534d85b13e514b1172401aa75b35a528f7a9a80be82482a122cf43934d",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260105115935id_/https://eprint.iacr.org/2019/909.pdf",
      "captured_at": "2026-01-05T11:59:35Z",
      "size": 405169
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2019/909.pdf",
      "captured_at": "2020-04-17T10:36:14Z",
      "size": 404253
    }
  ],
  "bibtex": "@misc{cryptoeprint:2019/909,\n      author = {Guillaume Wafo-Tapa and Slim Bettaieb and Loic Bidoux and Philippe Gaborit and Etienne Marcatel},\n      title = {A Practicable Timing Attack Against HQC and its Countermeasure},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2019/909},\n      year = {2019},\n      url = {https://eprint.iacr.org/2019/909}\n}"
}
