{
  "id": "2025/1608",
  "url": "https://opencryptology.org/2025/1608",
  "original_url": "https://eprint.iacr.org/2025/1608",
  "title": "Multi-Value Plaintext-Checking and Full-Decryption Oracle-Based Attacks on HQC from Offline Templates",
  "authors": [
    "Haiyue Dong",
    "Qian Guo"
  ],
  "affiliations": null,
  "abstract": "The Hamming Quasi-Cyclic (HQC) key encapsulation mechanism (KEM), recently selected by NIST for standardization in the Post-Quantum Cryptography (PQC) process, distinguishes itself through its efficiency, robust design based on hard decoding problems in coding theory, and well-characterized decryption failure rates. Despite its selection, practical security concerns arise from implementation threats, particularly those exploiting plaintext-checking (PC) oracles. While multi-value PC (MV-PC) and full decryption (FD) oracle attacks have been extensively studied in the context of lattice-based cryptography, their applicability to code-based schemes like HQC has remained relatively unexplored.\n\nIn this work, we present the first MV-PC and FD oracle attacks targeting code-based KEMs, specifically on HQC. Our MV-PC attack significantly reduces the required oracle queries compared to previous PC oracle-based methods and holds implications for side-channel, key-mismatch, and fault-injection attacks. Our FD attack exhibits remarkable efficiency in trace complexity, achieving secret key recovery for hqc-128 with just two queries to a perfect oracle, and four queries for hqc-192 and hqc-256. Simulations further demonstrate the robustness of our MV-PC and FD oracle attacks against imperfect oracle responses. We experimentally validate the new attacks on an ARM Cortex-M4 microcontroller, highlighting the critical need for robust countermeasures. In particular, on such a platform, substantial leakage during operations like syndrome computation poses significant challenges to the efficiency of masking techniques in mitigating FD oracle attacks.",
  "category": "Attacks and cryptanalysis",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Multi-Value Plaintext-Checking and Full-Decryption Oracle-Based Attacks on HQC from Offline Templates” by Haiyue Dong, Qian Guo, Cryptology ePrint Archive, Paper 2025/1608, https://eprint.iacr.org/2025/1608. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2025-09-07T13:37:46Z",
    "updated": "2025-09-07T13:37:46Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2025/1608.pdf",
    "sha256": "511865d5492fca98ab038017e85c5ee4af8d874e7086657e41f366c89a627e3d",
    "size": 1845279,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2025/1608/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/2025/1608.pdf",
      "size": 1845279,
      "sha256": "511865d5492fca98ab038017e85c5ee4af8d874e7086657e41f366c89a627e3d",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2025/1608.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 1845279
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260201002127id_/https://eprint.iacr.org/2025/1608.pdf",
      "captured_at": "2026-02-01T00:21:27Z",
      "size": 1828345
    }
  ],
  "bibtex": "@misc{cryptoeprint:2025/1608,\n      author = {Haiyue Dong and Qian Guo},\n      title = {Multi-Value Plaintext-Checking and Full-Decryption Oracle-Based Attacks on HQC from Offline Templates},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2025/1608},\n      year = {2025},\n      url = {https://eprint.iacr.org/2025/1608}\n}"
}
