PaReNTT:用于同态加密的低延迟并行余数系统与基于NTT的长多项式模乘法
PaReNTT: Low-Latency Parallel Residue Number System and NTT-Based Long Polynomial Modular Multiplication for Homomorphic Encryption
AI总结:
本文提出PaReNTT架构,通过并行NTT/iNTT、消除输出排列、特殊模数选择及优化CRT预处理/后处理,实现低延迟长多项式模乘法,适用于同态加密等实时应用。
摘要:
高速长多项式乘法对于同态加密(HE)和基于格的密码系统中的应用至关重要。本文针对使用数论变换(NTT)和逆NTT(iNTT)的长多项式模乘法,提出了低延迟硬件架构。利用中国剩余定理(CRT)将模数分解为多个较小的模数。我们提出的架构,即PaReNTT,做出了四项新颖贡献。首先,提出了并行NTT和iNTT架构,以减少处理多项式所需的时钟周期数。这可以实现HE应用的实时处理,因为处理多项式所需的时钟周期数与并行度成反比。其次,所提出的架构消除了在NTT输出乘积输入到iNTT之前对NTT输出进行排列的需要。这将延迟减少了n/4个时钟周期,其中n是多项式的长度,并将缓冲区需求减少了一个大小为n的延迟-切换-延迟电路。第三,提出了一种选择特殊模数的方法,其中模数可以用几个带符号的二次幂项来表示。第四,提出了使用CRT计算剩余多项式的预处理和组合剩余多项式的后处理的新颖架构。这些架构显著减少了预处理和后处理步骤的面积消耗。所提出的长模多项式乘法非常适合需要低延迟和高采样率的应用,因为这些前馈架构可以在任意级别进行流水线处理。
英文摘要:
High-speed long polynomial multiplication is important for applications in homomorphic encryption (HE) and lattice-based cryptosystems. This paper addresses low-latency hardware architectures for long polynomial modular multiplication using the number-theoretic transform (NTT) and inverse NTT (iNTT). Chinese remainder theorem (CRT) is used to decompose the modulus into multiple smaller moduli. Our proposed architecture, namely PaReNTT, makes four novel contributions. First, parallel NTT and iNTT architectures are proposed to reduce the number of clock cycles to process the polynomials. This can enable real-time processing for HE applications, as the number of clock cycles to process the polynomial is inversely proportional to the level of parallelism. Second, the proposed architecture eliminates the need for permuting the NTT outputs before their product is input to the iNTT. This reduces latency by n/4 clock cycles, where n is the length of the polynomial, and reduces buffer requirement by one delay-switch-delay circuit of size n. Third, an approach to select special moduli is presented where the moduli can be expressed in terms of a few signed power-of-two terms. Fourth, novel architectures for pre-processing for computing residual polynomials using the CRT and post-processing for combining the residual polynomials are proposed. These architectures significantly reduce the area consumption of the pre-processing and post-processing steps. The proposed long modular polynomial multiplications are ideal for applications that require low latency and high sample rate as these feed-forward architectures can be pipelined at arbitrary levels.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。