arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.01968cs.CRcs.ARcs.PF
收藏

HQC解码在集成NPU设备上的实现与优化

Implementation and Optimization of HQC Decoding on NPU-Integrated Devices

School of Information and Communication Technology, Hanoi University of Science and Technology(河内科技大学信息与通信技术学院)

Vu Minh Chau, Nguyen Ngoc Kiet, Pham Quang Minh, Mai Xuan Ngoc, Nguyen Duc Anh, Hoang Ta

AI总结:

本文针对HQC解码在Qualcomm Hexagon处理器上的实现,通过重新设计核心内核以适配HVX向量化执行,显著降低延迟和能耗,能效提升高达18.13倍。

摘要:

Hamming Quasi-Cyclic (HQC) 已被NIST选为额外的基于编码的密钥封装机制标准化方案,与基于格的后量子密码学共同提供算法多样性。然而,HQC在移动和嵌入式平台上的高效部署需要对其解码过程进行仔细优化,其中Reed-Muller和Reed-Solomon组件占主导计算成本。本文研究了集成NPU设备中Qualcomm Hexagon处理器上的HQC解码,重点放在Hexagon Vector eXtensions (HVX)后端而非张量推理引擎。我们观察到HQC解码自然暴露了向量结构化计算,包括Reed-Muller可靠性向量、Hadamard变换系数、Reed-Solomon伴随式向量、有限域乘积和压缩支持点评估。基于这一观察,我们围绕HVX友好的数据布局和执行模式重新设计了主要解码内核,包括向量化Reed-Muller Hadamard变换、标量等效峰值选择、面向HVX的有限域算术、向量化伴随式计算以及缩短支持定位器根评估。我们使用Hexagon模拟器测量和Snapdragon 8 Gen 2硬件开发套件上的实际设备实验实现并评估了优化后的解码器。结果表明,Hexagon/HVX辅助解码显著降低了延迟和能耗,能效提升高达18.13倍,同时大幅减轻了主机CPU的工作负载。这些结果表明,当底层内核围绕向量执行重新设计时,集成NPU的移动平台可以作为结构化后量子密码解码的有效后端。

英文摘要:

Hamming Quasi-Cyclic (HQC) has been selected by NIST for standardization as an additional code-based key-encapsulation mechanism, providing algorithmic diversity alongside lattice-based post-quantum cryptography. Efficient deployment of HQC on mobile and embedded platforms, however, requires careful optimization of its decoding procedure, whose Reed-Muller and Reed-Solomon components dominate the computational cost. This paper studies HQC decoding on Qualcomm Hexagon processors in NPU-integrated devices, focusing on the Hexagon Vector eXtensions (HVX) backend rather than a tensor-inference engine. We observe that HQC decoding naturally exposes vector-structured computation, including Reed-Muller reliability vectors, Hadamard-transform coefficients, Reed-Solomon syndrome vectors, finite-field products, and packed support-point evaluations. Based on this observation, we redesign the dominant decoding kernels around HVX-friendly data layouts and execution patterns, including a vectorized Reed-Muller Hadamard transform, scalar-equivalent peak selection, HVX-oriented finite-field arithmetic, vectorized syndrome computation, and shortened-support locator-root evaluation. We implement and evaluate the optimized decoder using both Hexagon simulator measurements and real-device experiments on a Snapdragon~8 Gen~2 hardware development kit. The results show that Hexagon/HVX-assisted decoding substantially reduces latency and energy consumption, improving energy efficiency by up to $18.13\times$ while significantly offloading host CPU work. These results indicate that NPU-integrated mobile platforms can serve as effective backends for structured post-quantum cryptographic decoding when the underlying kernels are reformulated around vector execution.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑