{
  "id": "2023/102",
  "url": "https://opencryptology.org/2023/102",
  "original_url": "https://eprint.iacr.org/2023/102",
  "title": "Cache-timing attack against HQC",
  "authors": [
    "Senyang Huang",
    "Rui Qi Sim",
    "Chitchanok Chuengsatiansup",
    "Qian Guo",
    "Thomas Johansson"
  ],
  "affiliations": null,
  "abstract": "In this paper, we present the first chosen-ciphertext (CC) cache-timing attacks on the reference implementation of HQC.\nWe build a cache-timing based distinguisher for implementing a  plaintext-checking (PC) oracle. The PC oracle uses side-channel information to check if  a given ciphertext decrypts to a given message. \nThis is done by identifying a vulnerability during the generating process of two vectors in the reference implementation of HQC. \nWe also propose a new method of using PC oracles for chosen-ciphertext side-channel attacks against HQC, which may have independent interest. \n\nWe show a general proof-of-concept attack, where we use the Flush&Reload technique  and also derive, in more detail, a practical attack on an HQC execution on Intel SGX, where the Prime&Probe technique is used. \nWe show the exact path to do key recovery by explaining the detailed steps, using the PC oracle. In both scenarios, the new attack requires $53,857$ traces on average with much fewer PC oracle calls than the timing attack of Guo et al. CHES 2022 on an HQC implementation.",
  "category": "Attacks and cryptanalysis",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Cache-timing attack against HQC” by Senyang Huang, Rui Qi Sim, Chitchanok Chuengsatiansup, Qian Guo, Thomas Johansson, Cryptology ePrint Archive, Paper 2023/102, https://eprint.iacr.org/2023/102. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2023-01-27T08:53:16Z",
    "updated": "2023-04-14T13:59:05Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2023/102.pdf",
    "sha256": "8198f5c04451cbb3013b32e422616050e4f727926578e8291e683654733e9a06",
    "size": 1049382,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:41Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2023/102/versions/20240114T061341Z.pdf",
      "captured_at": "2024-01-14T06:13:41Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/102.pdf",
      "size": 1049382,
      "sha256": "8198f5c04451cbb3013b32e422616050e4f727926578e8291e683654733e9a06",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2023/102/versions/20230127T141852Z.pdf",
      "captured_at": "2023-01-27T14:18:52Z",
      "label": "copy captured 2023-01-27",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20230127141852id_/https://eprint.iacr.org/2023/102.pdf",
      "size": 1002071,
      "sha256": "56fe2739d505341fe9eae25a0b834d8e65ffcf1d3acfcda17eee0d0e36553c66",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260529061928id_/https://eprint.iacr.org/2023/102.pdf",
      "captured_at": "2026-05-29T06:19:28Z",
      "size": 1030325
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/102.pdf",
      "captured_at": "2024-01-14T06:13:41Z",
      "size": 1049382
    }
  ],
  "bibtex": "@misc{cryptoeprint:2023/102,\n      author = {Senyang Huang and Rui Qi Sim and Chitchanok Chuengsatiansup and Qian Guo and Thomas Johansson},\n      title = {Cache-timing attack against HQC},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2023/102},\n      year = {2023},\n      url = {https://eprint.iacr.org/2023/102}\n}"
}
