Skip to main content

Accelerating HQC Key Encapsulation Mechanism with AVX-512

Roberto Cabral, Armando Faz-Hernandez, Julio López · Proceedings of the ACM ASIA Public-Key Cryptography Workshop, 2026

Best Paper Award

Abstract

Post-Quantum Cryptography (PQC) aims to secure digital communications against adversaries powered by quantum computers. To be useful, PQC algorithms must be both secure and fast. The Hamming Quasi-Cyclic (HQC) key encapsulation mechanism is a primary code-based alternative to lattice-based standards such as ML-KEM. However, initial benchmarks on Intel processors using AVX2 show that HQC is 9.5x slower than ML-KEM. In this paper, we show that careful analysis and optimization of the implementation can substantially narrow this gap. Using AVX-512 instructions in conjunction with architecture-independent refinements, we significantly accelerated internal HQC operations, including the Reed-Muller decoding step, polynomial multiplications, and the SHA3 hash function. These improvements narrow the performance gap between HQC and ML-KEM to 5.6x. Our contribution brings high-performance implementations of alternative schemes like HQC that are essential for long-term cryptographic agility.

Citation

@inproceedings{cabral_apkc_asiaccs2026,
  author = {Roberto Cabral and Armando Faz-Hernandez and Julio López},
  title = {Accelerating HQC Key Encapsulation Mechanism with AVX-512},
  booktitle = {Proceedings of the ACM ASIA Public-Key Cryptography Workshop},
  publisher = {Association for Computing Machinery},
  location = {Bengaluru, India},
  address = {New York, NY, USA},
  series = {APKC '26},
  pages = {1–10},
  year = {2026},
  month = {may},
  isbn = {9798400725777},
  doi = {10.1145/3803627.3805815}
}