{
  "id": "2024/1106",
  "url": "https://opencryptology.org/2024/1106",
  "original_url": "https://eprint.iacr.org/2024/1106",
  "title": "Masked Vector Sampling for HQC",
  "authors": [
    "Maxime Spyropoulos",
    "David Vigilant",
    "Fabrice Perion",
    "Renaud Pacalet",
    "Laurent Sauvage"
  ],
  "affiliations": null,
  "abstract": "Anticipating the advent of large quantum computers, NIST started a worldwide competition in 2016 aiming to define the next cryptographic standards. HQC is one of these post-quantum schemes still in contention, with three others already standardized. In 2022, Guo et al. introduced a timing attack that exploited an inconsistency in HQC rejection sampling function to recover its secret key in 866,000 calls to an oracle. The authors of HQC updated its specification by applying an algorithm to sample vectors in constant time. A masked implementation of this function was then proposed for BIKE but it is not directly applicable to HQC. In this paper we propose a masked specification-compliant version of HQC vector sampling function which relies, to our knowledge, on the first masked implementation of the Barrett reduction.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Masked Vector Sampling for HQC” by Maxime Spyropoulos, David Vigilant, Fabrice Perion, Renaud Pacalet, Laurent Sauvage, Cryptology ePrint Archive, Paper 2024/1106, https://eprint.iacr.org/2024/1106. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2024-07-07T15:55:23Z",
    "updated": "2024-10-11T13:47:23Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2024/1106.pdf",
    "sha256": "11c8619f8844f97d8d744f95926ce19c35fe16d884f9d9da29ca638a482534d2",
    "size": 695290,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2024/1106/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/2024/1106.pdf",
      "size": 695290,
      "sha256": "11c8619f8844f97d8d744f95926ce19c35fe16d884f9d9da29ca638a482534d2",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2024/1106/versions/20240708T050025Z.pdf",
      "captured_at": "2024-07-08T05:00:25Z",
      "label": "copy captured 2024-07-08",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20240708050025id_/https://eprint.iacr.org/2024/1106.pdf",
      "size": 585309,
      "sha256": "8101277cbcbee282c0ac3fa32726047bcf7760de66be003bc785cd8a48620ab4",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/1106.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 695290
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260112183154id_/https://eprint.iacr.org/2024/1106.pdf",
      "captured_at": "2026-01-12T18:31:54Z",
      "size": 666708
    }
  ],
  "bibtex": "@misc{cryptoeprint:2024/1106,\n      author = {Maxime Spyropoulos and David Vigilant and Fabrice Perion and Renaud Pacalet and Laurent Sauvage},\n      title = {Masked Vector Sampling for HQC},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2024/1106},\n      year = {2024},\n      url = {https://eprint.iacr.org/2024/1106}\n}"
}
