OptHQC: Optimize HQC for High-Performance Post-Quantum Cryptography
By: Ben Dong, Hui Feng, Qian Wang
Potential Business Impact:
Makes secret codes much faster for computers.
As post-quantum cryptography (PQC) becomes increasingly critical for securing future communication systems, the performance overhead introduced by quantum-resistant algorithms presents a major computing challenge. HQC (Hamming Quasi-Cyclic) is a newly standardized code-based PQC scheme designed to replace classical key exchange methods. In this paper, we propose OptHQC, an optimized implementation of the HQC scheme to deliver high-performance cryptographic operations. Our approach provides a comprehensive analysis of each computational blocks in HQC and introduces optimizations across all three stages: key generation, encryption, and decryption. We first exploit data-level sparsity in vector multiplication to accelerate polynomial operations during vector generation. We then leverage instruction-level acceleration (e.g., AVX2) in hash computation to further improve performance. Last, we transform multiplication into lookup table indexing and optimize memory access patterns in syndrome computation and error vector recovery, which are the most computationally intensive operations in HQC. Overall, OptHQC achieves an average 55% speedup over the reference HQC implementation on CPU.
Similar Papers
Obfuscated Quantum and Post-Quantum Cryptography
Quantum Physics
Makes secret messages unhackable, even from future computers.
Complexity of Post-Quantum Cryptography in Embedded Systems and Its Optimization Strategies
Cryptography and Security
Makes computer codes safe from future quantum computers.
A Systematic Approach to Hyperbolic Quantum Error Correction Codes
Quantum Physics
Makes quantum computers more reliable.