ESPM-D:面向ARM Cortex-M4与Apple M2的Dilithium高效稀疏多项式乘法
ESPM-D: Efficient Sparse Polynomial Multiplication for Dilithium on ARM Cortex-M4 and Apple M2
AI总结:
本研究针对ARM Cortex-M4和Apple M2平台优化Dilithium的稀疏多项式乘法,通过堆栈优化与计算效率提升,实现最高30%和55%的加速,并提升签名、密钥生成及验证性能,创下新纪录。
摘要:
Dilithium是一种由NIST后量子密码(PQC)项目标准化的基于格的数字签名方案。在本研究中,我们专注于为ARM Cortex-M4和Apple M2开发高效的Dilithium稀疏多项式乘法实现,这两种平台均基于ARM架构。ARM Cortex-M4通常用于传感器等资源受限设备,而Apple M2则常见于移动设备,强调高性能和多功能性。因此,我们在ARM Cortex-M4和Apple M2上的优化策略有所不同:前者优先优化堆栈使用,后者则侧重于提升计算效率。与最先进的数论变换(NTT)实现相比,我们的优化稀疏多项式乘法在ARM Cortex-M4上实现了高达30%的加速,在Apple M2上实现了55%的加速。此外,我们将稀疏多项式乘法与Dilithium签名过程中的无穷范数判断相结合,进一步提升了签名效率。我们的优化实现不仅在Dilithium2、Dilithium3和Dilithium5的签名过程中分别将堆栈使用减少了10.8%、1.2%和7.7%,而且与最先进的ARM Cortex-M4实现相比,签名性能提升了0.4%至0.8%。进一步地,我们利用ARM Cortex-M4的DSP指令优化了多项式采样、舍入函数以及多项式的打包与解包,使得密钥生成和验证流程的性能提升了0.4%至3.2%。在MacBook Air 2022上,我们的Dilithium实现签名过程加速了10%至11%。据我们所知,我们的工作在ARM Cortex-M4和Apple M2平台上均创下了Dilithium的新性能纪录。
英文摘要:
Dilithium is a lattice-based digital signature scheme standardized by the NIST post-quantum cryptography (PQC) project. In this study, we focus on developing efficient sparse polynomial multiplication implementations of Dilithium for ARM Cortex-M4 and Apple M2, which are both based on the ARM architecture. The ARM Cortex-M4 is commonly utilized in resource-constrained devices such as sensors. Conversely, the Apple M2 is typically found on mobile devices, emphasizing high performance and versatility. Accordingly, our optimization strategies differ between ARM Cortex-M4 and Apple M2. We prioritize optimizing stack usage for the former while enhancing computational efficiency for the latter. Our optimized sparse polynomial multiplication achieves significant speedups of up to 30% on ARM Cortex-M4 and 55% on Apple M2 compared to the state-of-the-art Number-Theoretic Transform (NTT) implementation. Additionally, we integrate the sparse polynomial multiplication with the infinity norm judgments in the Dilithium signing process, further enhancing signing efficiency. Our optimized implementation not only reduces stack usage by 10.8%, 1.2%, and 7.7% in the signing procedure of Dilithium2, Dilithium3, and Dilithium5, respectively, but also enhances signing performance by 0.4% to 0.8% compared to the state-of-the-art ARM Cortex-M4 implementation. Furthermore, we optimize polynomial sampling, rounding functions, and polynomial packing and unpacking using ARM Cortex-M4 DSP instructions, resulting in a 0.4%-3.2% improvement in key generation and verification procedures. On the MacBook Air 2022, our Dilithium implementation achieves 10% to 11% speedups in the signing procedure. To the best of our knowledge, our work sets new performance records for Dilithium on both ARM Cortex-M4 and Apple M2 platforms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。