Has it been Pwned
Side channelLimited impact

'Don't Reject This': timing attacks on HQC and BIKE via rejection sampling

Guo, Hlauschek, Johansson, Lahr, Nilsson and Schröder found that the rejection-sampling routines in the reference implementations of the code-based KEMs HQC and BIKE run in time that depends on the seed, which during decapsulation is derived from the secret-dependent message. A chosen-ciphertext timing attack recovered HQC keys locally and, the authors argued, potentially remotely.

A separate source-review date has not been recorded for this historical entry. Corrections.

Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.

Background

The attack shows that post-quantum schemes inherit old implementation pitfalls: a rejection loop whose iteration count depends on secret-derived data is a timing oracle. Both teams patched to constant-time sampling. HQC was later selected by NIST (March 2025) as a backup KEM, so constant-time implementation of its sampler matters in practice.

The underlying code-based problems are unaffected. Published in TCHES 2022(3).

Sources

  1. paperDon't Reject This: Key-Recovery Timing Attacks Due to Rejection-Sampling in HQC and BIKE (ePrint 2021/1485, TCHES 2022)IACR ePrint, eprint.iacr.org