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

针对SIMD的大整数高效加法与Montgomery约简

Efficient Additions and Montgomery Reductions of Large Integers for SIMD

Pengchang Ren, Reiji Suda, Vorapong Suppakitpaisarn

AI总结:

本文提出利用SIMD的高效大整数加法与Montgomery约简算法,通过模拟进位和预计算替代串行操作,显著提升后量子密码实现性能,分别提速CTIDH 30%、CSIDH 11%和SIKEp503 7%。

摘要:

本文提出了高效算法,旨在利用SIMD对大于512位的整数执行Montgomery约简和加法。现有算法在使用SIMD并行化时,由于两种操作中广泛的依赖性而效率低下,在诸如ARM的SVE等成本高昂的操作中尤为明显。为缓解此问题,引入了一种新颖的加法算法,该算法通过较小的加法模拟大整数的加法,快速产生相同的进位集合。随后利用这些进位对大整数执行并行加法。对于Montgomery约简,串行乘法被替换为可通过SIMD扩展有效计算的预计算。实验证据表明,所提算法显著提升了多种后量子密码算法的最新实现的性能。值得注意的是,它们使最新的CTIDH实现提速30%,在AVX-512处理器上使最新的CSIDH实现提速11%,并使微软针对A64FX上SIKEp503的标准PQCrypto-SIDH提速7%。

英文摘要:

This paper presents efficient algorithms, designed to leverage SIMD for performing Montgomery reductions and additions on integers larger than 512 bits. The existing algorithms encounter inefficiencies when parallelized using SIMD due to extensive dependencies in both operations, particularly noticeable in costly operations like ARM's SVE. To mitigate this problem, a novel addition algorithm is introduced that simulates the addition of large integers using a smaller addition, quickly producing the same set of carries. These carries are then utilized to perform parallel additions on large integers. For Montgomery reductions, serial multiplications are replaced with precomputations that can be effectively calculated using SIMD extensions. Experimental evidence demonstrates that these proposed algorithms substantially enhance the performance of state-of-the-art implementations of several post-quantum cryptography algorithms. Notably, they deliver a 30% speed-up from the latest CTIDH implementation, an 11% speed-up from the latest CSIDH implementation in AVX-512 processors, and a 7% speed-up from Microsoft's standard PQCrypto-SIDH for SIKEp503 on A64FX.

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

↑