Paper 2026/1906

Revisiting Side-Channel Analysis on Polynomial Multiplication in the HQC Implementation

Trevor Yap
Shivam Bhasin
Léo Weissbart
Abstract

The Hamming Quasi-Cyclic (HQC) scheme is a post-quantum key encapsulation mechanism recently selected for standardization by NIST. While the security against quantum-capable computation is the focus of the development, the security of its implementations against side-channel analysis is also a critical concern. In this work, we revisit the side-channel analysis of the latest HQC reference implementation, targeting its polynomial multiplication function notably used in decryption algorithm. After prior work demonstrated a simple power analysis (SPA) attack against a lookup-table-based multiplication, the implementation of the function have been updated by replacing it to a bitwise schoolbook multiplication. We show that the updated implementation is still vulnerable to SPA with clearly distinguishable secret data dependent variations in power consumption when compiled using the \texttt{-O0} flag. By analyzing these patterns, an attacker can recover individual bits of the secret polynomial, demonstrating that SPA remains effective against the updated design. However, SPA is not exploitable when using compilation optimization with \texttt{-Os} flag. As such, we consider a profiling adversary model and show that with Linear Discriminant Analysis classifiers, one can recover the secret key with $100\%$. We discuss various countermeasures. The first countermeasure we consider is swapping the inputs of the multiplication. We show that this countermeasure is ineffective, as training a multi-bit neural network in a profiling setting enables recovery of all bits of the secret key with $100\%$ accuracy. As such, there is a need for a more secure polynomial multiplication implementation in HQC, either through the introduction of hiding countermeasures or through a redesign of the implementation itself.

PDF
BibTeX
ePrint ↗
@misc{cryptoeprint:2026/1906,
      author = {Trevor Yap and Shivam Bhasin and Léo Weissbart},
      title = {Revisiting Side-Channel Analysis on Polynomial Multiplication in the HQC Implementation},
      howpublished = {Cryptology {ePrint} Archive, Paper 2026/1906},
      year = {2026},
      url = {https://eprint.iacr.org/2026/1906}
}
Category
Attacks and cryptanalysis
License
CC BY
Submitted
Updated
Versions

Report a problem

Comments

Log in or create an account

Privacy