Sparse Secrets, Dense Problems: Efficiently Masking HQC in Hardware
Proposes first-order masking of HQC's sparse-dense multiplication, masked samplers and decoder, and a full masked FPGA HQC KEM with hiding countermeasures against horizontal attacks.
Schemes: HQC, ML-KEM
Findings (quotes checked against the source text)
-
Masked sparse-dense multiplier has only about 3% more clock cycles than a previous unprotected HQC multiplier at the same memory width.
With the same memory width, our configurable and highly parallelizable masked design takes only 3% more clock cycles than a previous unprotected HQC multiplier.
-
Unhardened Rotate-and-Add style multipliers, including the masked design before countermeasures, leak support indices to profiled horizontal side-channel attacks.
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.
-
Integrated hiding countermeasures stop the horizontal attack at 1.7% extra latency plus moderate area overhead.
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.
-
The authors present what they believe is the first fully masked hardware HQC implementation, covering key generation, encapsulation and decapsulation at first order.
we present the, to our knowledge, first fully masked hardware implementation of HQC, supporting first-order masked key generation, encapsulation, and decapsulation.
Numbers (as extracted, not quote-checked)
- Randomness required per cycle by the masked sparse-dense multiplier: 81 bits, independent of parallelism
- Clock cycle overhead of masked multiplier vs unprotected HQC multiplier (same memory width): 3%
- Latency overhead of hiding countermeasures: 1.7%
- Traces needed for profiled horizontal attack recovering support indices within ±8 positions: 200 traces
For builders
If a PQ chain runs HQC, mask the sparse-secret multiplication and add hiding to the multiplier from the start, since plain Rotate-and-Add masking alone still leaks support indices.
Limits
Only the ePrint abstract was read (full text not fetched); results are FPGA-specific (Artix-7) and first-order only; HQC is a KEM, not a signature scheme.
Topics: kem implementation-sidechannel benchmarks