Paper 2026/2509

Sparse Secrets, Dense Problems: Efficiently Masking HQC in Hardware

Fabian Buschkowski, Ruhr University Bochum
Niklas Höher, Ruhr University Bochum
Tim Güneysu, Ruhr University Bochum, German Research Centre for Artificial Intelligence
Abstract

HQC has recently been selected by NIST as a code-based alternative to ML-KEM and is currently undergoing standardization. While multiple timing and power side-channel attacks against HQC have been presented, application of masking has so far only been studied for software implementations. As part of this work, we close this gap by first proposing a novel masking technique for the sparse-dense vector multiplication, one of the core components in all HQC operations. We manage to securely exploit the sparsity of the secret operand using a mixed Boolean and arithmetic masking technique and prove its first-order security in the transition- and glitch-robust probing model as well as its PINI-composability. With the same memory width, our configurable and highly parallelizable masked design takes only 3% more clock cycles than a previous unprotected HQC multiplier. Furthermore, our technique requires only 81 bits of randomness per cycle, irrespective of its parallelism. However, like previous Rotate-and-Add constructions, it is vulnerable to profiled horizontal side-channel attacks, which recover all support indices within ±8 positions from 200 traces of our FPGA implementation despite TVLA showing no signs of leakage after 10 million traces. To prevent such attacks, we integrate efficient hiding countermeasures natively into the architecture of the multiplier, resulting in only 1.7% additional latency and moderate area overhead. Together with efficiently masked fixed-weight samplers and a masked decoder, we present the, to our knowledge, first fully masked hardware implementation of HQC, supporting first-order masked key generation, encapsulation, and decapsulation. Notably, our masked key generation is faster than a previous unprotected design from literature on an Artix-7 FPGA. Lastly, all modules of our complete designs show no signs of first-order leakage after 1 million traces.

Metadata
Available format(s)
PDF
Category
Implementation
Publication info
Preprint.
Keywords
HQCHardware ImplementationsMaskingSparse Polynomial MultiplicationHorizontal AttacksHiding
Contact author(s)
fabian buschkowski @ rub de
niklas hoeher @ rub de
tim gueneysu @ rub de
History
2026-10-17: approved
2026-10-16: received
See all versions
Short URL
https://ia.cr/2026/2509
License
Creative Commons Attribution-NonCommercial
CC BY-NC

BibTeX

@misc{cryptoeprint:2026/2509,
      author = {Fabian Buschkowski and Niklas Höher and Tim Güneysu},
      title = {Sparse Secrets, Dense Problems: Efficiently Masking {HQC} in Hardware},
      howpublished = {Cryptology {ePrint} Archive, Paper 2026/2509},
      year = {2026},
      url = {https://eprint.iacr.org/2026/2509}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.