{
  "id": "2026/1450",
  "url": "https://opencryptology.org/2026/1450",
  "original_url": "https://eprint.iacr.org/2026/1450",
  "title": "Optimizing Polynomial Multiplication and Fixed-Weight Sampling for HQC on ARM Cortex-M4",
  "authors": [
    "Jihoon Jang",
    "Hanbeom Shin",
    "Suhri Kim",
    "Seokhie Hong",
    "Donggeun Kwon"
  ],
  "affiliations": null,
  "abstract": "In this paper, we present an optimized implementation of Hamming Quasi-Cyclic (HQC) on the ARM Cortex-M4. We optimize (i) the polynomial multiplication and (ii) the support expansion in fixed-weight sampling, and (iii) propose an optional caching strategy that reuses the public transforms and hash recomputed under a fixed key.\nFor the polynomial multiplication, the fixed-constant multiplications in the Frobenius additive FFT (FAFFT) butterfly spend nearly half of their instructions on VMOV data movements between general-purpose and floating-point registers rather than arithmetic.\nBecause minimizing the XOR count alone can increase the total instruction count, we propose a dirty-aware register-allocation policy and an XOR-operation reordering that reduce the VMOV count by up to $48.1\\%$ while leaving the XOR count unchanged. We apply these to a multiplication that combines prior FAFFT-CRT methods, and for HQC-1 we further find a $34\\%$ sparser FAFFT modulus that lowers the CRT reconstruction cost.\nFor fixed-weight sampling, we rewrite the support expansion with predicated execution and 4-way unrolling, lowering the per-word cost of its inner loop from $22$ to $6$ cycles while remaining constant-time.\nOn the NUCLEO-L4R5ZI board, our implementation reduces key generation, encapsulation, and decapsulation by up to $33.1\\%$, $34.6\\%$, and $29.8\\%$ over the faster of the two prior state-of-the-art implementations, and the optional caching yields a further reduction of up to $32.7\\%$ and $18.9\\%$ for encapsulation and decapsulation.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Optimizing Polynomial Multiplication and Fixed-Weight Sampling for HQC on ARM Cortex-M4” by Jihoon Jang, Hanbeom Shin, Suhri Kim, Seokhie Hong, Donggeun Kwon, Cryptology ePrint Archive, Paper 2026/1450, https://eprint.iacr.org/2026/1450. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2026-07-16T12:14:18Z",
    "updated": "2026-07-16T12:14:18Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2026/1450.pdf",
    "sha256": "0f406cf987b0d87722f1cddcd37003596facb88b5cdd92b5efd53d0070813234",
    "size": 774714,
    "source": "wayback",
    "source_date": "2026-10-02T08:26:13Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2026/1450/versions/20261002T082613Z.pdf",
      "captured_at": "2026-10-02T08:26:13Z",
      "label": "copy captured 2026-10-02",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20261002082613id_/https://eprint.iacr.org/2026/1450.pdf",
      "size": 774714,
      "sha256": "0f406cf987b0d87722f1cddcd37003596facb88b5cdd92b5efd53d0070813234",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20261002082613id_/https://eprint.iacr.org/2026/1450.pdf",
      "captured_at": "2026-10-02T08:26:13Z",
      "size": 762849
    }
  ],
  "bibtex": "@misc{cryptoeprint:2026/1450,\n      author = {Jihoon Jang and Hanbeom Shin and Suhri Kim and Seokhie Hong and Donggeun Kwon},\n      title = {Optimizing Polynomial Multiplication and Fixed-Weight Sampling for HQC on ARM Cortex-M4},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2026/1450},\n      year = {2026},\n      url = {https://eprint.iacr.org/2026/1450}\n}"
}
