OptHQC: Optimize HQC for High-Performance Post-Quantum Cryptography
Optimizes the HQC code-based KEM on x86 CPUs via AVX2 sparse-dense polynomial multiplication, lane-interleaved SHAKE, and table-driven Reed-Solomon, reporting about 55% average speedup over the reference.
Schemes: HQC, SHAKE, Keccak, Reed-Solomon, Reed-Muller, ML-KEM, ML-DSA, SPHINCS+, Falcon
Numbers (as extracted, not quote-checked)
- Average speedup vs reference HQC on CPU: 55%
- Encryption speedup from sparse-dense multiplication: 60%
- Decryption speedup from sparse-dense multiplication: 35%
- Key generation speedup from sparse-dense multiplication: 22%
- Lookup-table size for RS encoder: approximately 8 KB
For builders
If HQC is a candidate KEM for a chain's key exchange, these AVX2 and table-driven techniques are reusable, but they do not touch signatures, which is what on-chain migration mainly needs.
Limits
Benchmarks are on one i7-7700 desktop against the reference C code only; no constant-time verification or side-channel evaluation is reported beyond stated design intent.
Topics: kem implementation-sidechannel benchmarks hash-functions