arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.12265cs.CRcs.DC
收藏

Dilithium 后量子数字签名的高吞吐量 GPU 实现

High-Throughput GPU Implementation of Dilithium Post-Quantum Digital Signature

Shiyu Shen, Hao Yang, Wangchen Dai, Hong Zhang, Zhe Liu, Yunlei Zhao

AI总结:

本文针对 CRYSTALS-Dilithium 后量子签名,提出融合操作优化、批处理、内存池、动态调度与多流异步执行的 GPU 高吞吐实现,可在三类安全级别上高效完成万级签名与验证任务。

摘要:

数字签名是各类协议中用于提供完整性与真实性的基础构件。量子计算的发展引发了人们对经典签名方案所能提供安全保障的担忧。CRYSTALS-Dilithium 是一种基于格密码的高效后量子数字签名方案,并已被美国国家标准与技术研究院选定为标准化的主要算法。在本工作中,我们提出了一种高吞吐量的 Dilithium GPU 实现。对于单个操作,我们采用一系列计算和内存优化,以克服顺序约束、降低内存使用和 IO 延迟、解决存储体冲突并缓解流水线停顿。这使每个操作都获得了较高且均衡的计算吞吐量与内存吞吐量。在并发任务处理方面,我们利用任务级批处理来充分利用并行性,并实现内存池机制以实现快速内存访问。考虑到 Dilithium 中不同重复次数对总体执行时间和硬件利用率的影响,我们提出了一种动态任务调度机制,以提高多处理器占用率并显著减少执行时间。此外,我们应用异步计算并启动多个流,以隐藏数据传输延迟并最大化 CPU 和 GPU 的计算能力。在全部三个安全级别上,我们的 GPU 实现能够在商用级和服务器级 GPU 上并发计算一万个任务,其中签名耗时少于 32 毫秒,验证耗时少于 15 毫秒。这实现了每个任务微秒级的摊销执行时间,提供了一种高吞吐量且抗量子的解决方案,适用于真实系统中的广泛应用。

英文摘要:

Digital signatures are fundamental building blocks in various protocols to provide integrity and authenticity. The development of the quantum computing has raised concerns about the security guarantees afforded by classical signature schemes. CRYSTALS-Dilithium is an efficient post-quantum digital signature scheme based on lattice cryptography and has been selected as the primary algorithm for standardization by the National Institute of Standards and Technology. In this work, we present a high-throughput GPU implementation of Dilithium. For individual operations, we employ a range of computational and memory optimizations to overcome sequential constraints, reduce memory usage and IO latency, address bank conflicts, and mitigate pipeline stalls. This results in high and balanced compute throughput and memory throughput for each operation. In terms of concurrent task processing, we leverage task-level batching to fully utilize parallelism and implement a memory pool mechanism for rapid memory access. Considering the impact of varying repetition numbers in Dilithium on the overall execution time and hardware utilization, we propose a dynamic task scheduling mechanism to improve multiprocessor occupancy and significantly reduce execution time. Furthermore, we apply asynchronous computing and launch multiple streams to hide data transfer latencies and maximize the computing capabilities of both CPU and GPU. Across all three security levels, our GPU implementation can concurrently compute ten thousand tasks in less than 32 miliseconds for signing and 15 miliseconds for verification on both commercial and server-grade GPUs. This achieves microsecond-level amortized execution times for each task, offering a high-throughput and quantum-resistant solution suitable for a wide array of applications in real systems.

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

↑