arXiv:2610.11107cs.CROct 2026

Manuscript Offprint

arXiv:2610.11107

Accelerating HQC for Post-Quantum TLS 1.3 on x86 IoT Gateways

Jihoon Jang, Hyunju Park, Jebin Kim, Seokhie Hong, Suhri Kim

Jihoon Jang, Hyunju Park, Jebin Kim, Seokhie Hong and Suhri Kim

Abstract—Post-quantum TLS at an IoT gateway must protect many device connections without large increases in handshake delay, CPU cost, or network traffic. HQC provides code-based diversity beyond ML-KEM, but its computation and ciphertext sizes can increase these costs. We optimize HQC for x86 processors with AVX2, AVX-512, and the Galois Field New Instructions (GFNI), and integrate the resulting implementations into TLS 1.3. We extend branch-free Toom-Cook/Karatsuba multiplication to AVX-512, accelerate Reed–Solomon decoding with GFNI, improve Reed–Muller decoding, accelerate SHA3-512 and fixed-weight sampling, and port Frobenius additive FFT (FAFFT) multiplication to AVX-512 + GFNI for HQC-5. On an Intel Core i5-1135G7 processor, our AVX2 implementation reduces decapsulation by 11.1–21.5% over the fastest prior AVX2 results. Our AVX-512 implementation reduces key generation by 24.9–29.5%, encapsulation by 10.4–11.1%, and decapsulation by 20.6–26.1% relative to Cabral et al. across the three HQC parameter sets. We evaluate the effects of these implementations on TLS 1.3 handshake latency and server and client CPU costs, as well as the effects of round-trip time (RTT) and bandwidth. In local loopback TLS measurements, our AVX-512 HQC-5 implementation reduces handshake latency from 3.22 ms to 2.92 ms compared with Cabral et al. On a constrained path with 1 Mbit/s bandwidth and an added RTT of 50 ms, the HQC-5 handshake takes 243 ms, compared with 87 ms for ML-KEM-1024. This indicates that HQC public-key and ciphertext sizes, rather than implementation speed, determine the remaining handshake cost on constrained links.

Index Terms—Post-Quantum Cryptography, HQC, SIMD Implementation, AVX-512, GFNI, TLS 1.3, Post-Quantum TLS

I. INTRODUCTION

LARGE-SCALE quantum computers would break the classical public-key cryptography used by current secure communication protocols through Shor's algorithm [1]. This threat is particularly important in IoT environments, where resource-constrained devices connect to external services through gateways. Deploying post-quantum cryptography in such environments requires efficient implementations that minimize the additional computational cost and communication latency introduced by the transition.

TLS is a representative deployment target for post-quantum key establishment. In TLS 1.3, a KEM determines the key-share group. Its public key and ciphertext are carried in the handshake flights. Thus, post-quantum TLS affects gateway computation and the latency of device connections. NIST standardized ML-KEM as FIPS 203 in 2024 [2] and selected HQC [3], a code-based KEM, for standardization in March 2025 to provide diversity beyond lattice-based ML-KEM. The main HQC components are polynomial multiplication over F2[x]/(xN−1)\mathbb{F}_2[x]/(x^N - 1), Reed-Muller and Reed-Solomon decoding, and Keccak-based functions. Efficient implementations of these components are therefore important for practical post-quantum TLS at an IoT gateway.

AVX-512 has been applied to a wide range of cryptographic schemes [4]–[11]. It extends x86 SIMD processing to 512-bit registers and provides a richer vector instruction set. VPCLMULQDQ supports vectorized carry-less multiplication, while GFNI supports SIMD arithmetic over F2sF_{2s}. Recent processors such as Tiger Lake support AVX-512, VPCLMULQDQ, and GFNI.

Cabral et al. [12] presented an AVX-512 implementation of HQC with optimizations for polynomial multiplication, Keccak-based functions, and both Reed-Muller and Reed-Solomon decoding. However, their Reed-Solomon decoder does not use GFNI. It relies on PCLMULQDQ-based field multiplication, with SIMD parallelism applied to the syndrome and error-value computations while the remaining arithmetic is largely scalar. In addition, the SHA3-512 oracles hash_g and hash_i remain scalar, the AVX-512 SHAKE-256 expansion is not applied to key generation, and single polynomial multiplication and support expansion are still based on AVX2 implementations.

HQC optimization and PQ-TLS evaluation have largely been studied separately. To our knowledge, existing PQ-TLS studies compare HQC with other KEMs using the implementation provided by the TLS stack [13], [14]. They do not vary the HQC implementation to determine how its optimization changes protocol cost. We optimize HQC for AVX2 and AVX-512 + GFNI, integrate the resulting implementations into one fixed TLS 1.3 stack, and measure their effects on handshake latency and server and client CPU costs. The network experiments then show when communication costs imposed by round-trip time (RTT) and bandwidth dominate these computation gains.

Jihoon Jang, Hyunju Park, and Jebin Kim are with the School of Cyber Security, Korea University, Seoul, Republic of Korea.

References (28)