CRYSTALS-Dilithium 的优化向量化实现
Optimized Vectorization Implementation of CRYSTALS-Dilithium
AI总结:
本文针对后量子签名方案 CRYSTALS-Dilithium,提出基于 AVX2 和 AVX-512 的优化向量化实现,通过改进的 PSPM-TEE 多项式乘法、定制约简方法及全面向量化,在 Intel x86-64 平台上实现了密钥生成、签名和验证性能的显著提升。
摘要:
CRYSTALS-Dilithium 是一种基于格的签名方案,将被 NIST 标准化为主要的后量子签名算法。在本工作中,我们通过利用高级向量扩展(AVX)指令,特别是 AVX2 和最新的 AVX-512,对 Dilithium 的实现优化进行了深入研究。我们首先提出了一种改进的带定制早期求值的并行小多项式乘法(PSPM-TEE),以进一步加速签名过程。我们的 PSPM 算法在 AVX2 和 AVX-512 实现中比 NTT 快 47%-66%。然后我们提出了一种定制约简方法,比 Montgomery 约简更简单、更快。我们通过使用 AVX-512IFMA 最小化了定制约简 AVX-512 实现的 CPU 周期。最后,我们提出了一个使用 AVX-512 的完全且高度向量化的 Dilithium 实现。这是通过使用 AVX-512 指令仔细向量化 Dilithium 的大部分函数来实现的,以便同时提高时间和空间效率。经过所有优化努力,对于 Dilithium2/3/5 的参数集,我们的 AVX-512 实现在密钥生成方面性能分别提升了 43.2%/39.3%/45.6%,在签名方面提升了 36.6%/41.6%/43.7%,在验证方面提升了 45.3%/46.5%/47.4%。据我们所知,我们的 AVX-512 实现迄今为止在 Intel x86-64 CPU 平台上具有 Dilithium 的最佳性能。
英文摘要:
CRYSTALS-Dilithium is a lattice-based signature scheme to be standardized by NIST as the primary post-quantum signature algorithm. In this work, we make a thorough study of optimizing the implementations of Dilithium by utilizing the Advanced Vector Extension (AVX) instructions, specifically AVX2 and the latest AVX-512. We first present an improved parallel small polynomial multiplication with tailored early evaluation (PSPM-TEE) to further speed up the signing procedure. Our PSPM algorithm outperform the NTT by 47%-66% in AVX2 and AVX-512 implementation. We then present a tailored reduction method that is simpler and faster than Montgomery reduction. We minimize the CPU cycles of tailored reduction AVX-512 implementation by using AVX-512IFMA. Finally, we propose a fully and highly vectorized implementation of Dilithium using AVX-512. This is achieved by carefully vectorizing most of Dilithium functions with the AVX-512 instructions in order to improve efficiency both for time and for space simultaneously. With all the optimization efforts, our AVX-512 implementation improves the performance by 43.2%/39.3%/45.6% in key generation, 36.6%/41.6%/43.7% in signing, and 45.3%/46.5%/47.4% in verification for the parameter sets of Dilithium2/3/5 respectively. To the best of our knowledge, our AVX-512 implementation has the best performance for Dilithium on the Intel x86-64 CPU platform to date.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。