arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.13544cs.CR
收藏

基于 ML-KEM 的更快后量子 TLS 1.3:实现与评估

Faster Post-Quantum TLS 1.3 Based on ML-KEM: Implementation and Assessment

Jieyu Zheng, Haoliang Zhu, Yifan Dong, Zhenyu Song, Zhenhao Zhang, Yafang Yang, Yunlei Zhao

AI总结:

本文通过利用 AVX-512 指令集优化 ML-KEM 的多项式乘法等模块,并引入批量密钥生成方法,显著提升了后量子 TLS 1.3 的握手性能。

摘要:

TLS 被广泛用于网络上的安全数据传输。然而,随着量子计算机的出现,基于传统公钥密码学的 TLS 安全性受到威胁。为了对抗量子威胁,必须将后量子算法集成到 TLS 中。大多数 PQ-TLS 研究侧重于集成和评估,但很少有研究通过优化 PQC 实现来提升 PQ-TLS 性能。对于 TLS 协议,握手性能至关重要,而对于后量子 TLS(PQ-TLS),后量子密钥封装机制(KEM)的性能直接影响握手性能。在这项工作中,我们探讨了后量子 KEM 对 PQ-TLS 性能的影响。我们探索如何利用最新的 Intel 高级矢量扩展指令集 AVX-512 来提升 ML-KEM 性能。我们详细设计了一系列技术,用于并行化 ML-KEM 内部的多项式乘法、模归约和其他计算密集型模块。与最新的 AVX2 实现相比,我们优化的 ML-KEM 实现实现了高达 1.64 倍的加速。此外,我们为 ML-KEM 引入了一种新颖的批量密钥生成方法,该方法可以无缝集成到 TLS 协议中。该批量方法将密钥生成过程加速了 3.5 倍至 4.9 倍。我们将优化的 ML-KEM 的 AVX-512 实现集成到 TLS 1.3 中,并在纯 PQ 模式和混合模式下评估握手性能。评估表明,我们更快的 ML-KEM 实现使得两种模式下每秒的 TLS 1.3 握手次数均有所增加。此外,我们重新审视了 Eurocrypt22 和 Asiacrypt23 中讨论的两种 IND-1-CCA KEM 构造。另外,我们基于 ML-KEM 实现了它们,并将性能更好的一种集成到 TLS 1.3 中进行了基准测试。

英文摘要:

TLS is extensively utilized for secure data transmission over networks. However, with the advent of quantum computers, the security of TLS based on traditional public-key cryptography is under threat. To counter quantum threats, it is imperative to integrate post-quantum algorithms into TLS. Most PQ-TLS research focuses on integration and evaluation, but few studies address the improvement of PQ-TLS performance by optimizing PQC implementation. For the TLS protocol, handshake performance is crucial, and for post-quantum TLS (PQ-TLS) the performance of post-quantum key encapsulation mechanisms (KEMs) directly impacts handshake performance. In this work, we explore the impact of post-quantum KEMs on PQ-TLS performance. We explore how to improve ML-KEM performance using the latest Intel's Advanced Vector Extensions instruction set AVX-512. We detail a spectrum of techniques devised to parallelize polynomial multiplication, modular reduction, and other computationally intensive modules within ML-KEM. Our optimized ML-KEM implementation achieves up to 1.64x speedup compared to the latest AVX2 implementation. Furthermore, we introduce a novel batch key generation method for ML-KEM that can seamlessly integrate into the TLS protocols. The batch method accelerates the key generation procedure by 3.5x to 4.9x. We integrate the optimized AVX-512 implementation of ML-KEM into TLS 1.3, and assess handshake performance under both PQ-only and hybrid modes. The assessment demonstrates that our faster ML-KEM implementation results in a higher number of TLS 1.3 handshakes per second under both modes. Additionally, we revisit two IND-1-CCA KEM constructions discussed in Eurocrypt22 and Asiacrypt23. Besides, we implement them based on ML-KEM and integrate the one of better performance into TLS 1.3 with benchmarks.

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

↑