使用OpenACC加速基于LWE的密钥封装机制的GPU实现用于后量子密码学
GPU Acceleration of Learning With Errors KEMs Using OpenACC for Post-Quantum Cryptography
AI总结:
本文提出基于LWE的密钥封装机制,并利用OpenACC开发GPU实现,在多种NVIDIA GPU上获得高达208倍加速,且能耗效率提升约2倍。
摘要:
Shor算法证明,基于整数分解和离散对数问题的非对称密码协议在大规模量子计算机面前不再安全。因此,近年来后量子密码学(PQC)得到发展,寻求能够抵抗量子攻击的密码原语。PQC方案的主要困难问题之一是带错误学习(LWE)问题,其计算强度远高于经典方案。本文提出一种基于普通LWE的密钥封装机制(KEM),并利用OpenACC开发了面向GPU的实现。我们从求解时间和能耗两方面评估了加速应用的性能,考虑了在多种NVIDIA GPU型号和代际上的裸机和容器化执行。我们的实现在所有测试的GPU平台上均实现了显著加速。特别是在NVIDIA Grace Hopper Superchip上,相比多线程CPU基线获得了高达208倍的加速,并能够执行因内存和同步限制而在CPU架构上不可行的问题规模。能耗分析还表明,与配备x86 CPU和NVIDIA H100 GPU的系统相比,使用Superchip的能效提高了约2倍。这些结果突显了GPU加速对计算密集型的基于LWE的密码工作负载的有效性。
英文摘要:
Shor's algorithm proved that asymmetric cryptographic protocols based on the integer factorization and discrete logarithm problems are no longer safe in a world with large-scale quantum computers. As a result, Post-Quantum Cryptography (PQC) has been developed over the last few years, seeking cryptographic primitives resistant to quantum attacks. One of the main hard problems underlying PQC schemes is the Learning with Errors (LWE) problem, which is significantly more computationally intensive than its classical predecessors. In this work, we present a Key Encapsulation Mechanism (KEM) based on plain LWE and develop a GPU-oriented implementation using OpenACC. We evaluate the performance of our accelerated application in terms of both time-to-solution and energy-to-solution, considering bare-metal and containerized executions across multiple NVIDIA GPU models and generations. Our implementation achieves significant acceleration across all tested GPU platforms. In particular, on the NVIDIA Grace Hopper Superchip, it attains up to a $208\times$ speedup over a multithreaded CPU baseline and enables the execution of problem sizes that are impractical on CPU architectures due to memory and synchronization constraints. Energy consumption analysis also shows $\approx 2\times$ better efficiency when using the Superchip compared to systems equipped with x86-based CPUs and NVIDIA H100 GPUs. These results highlight the effectiveness of GPU acceleration for computationally demanding LWE-based cryptographic workloads.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。