多层递归剩余数系统
A Multi-layer Recursive Residue Number System
摘要:
我们提出了一种方法来增加动态范围的剩余数系统(RNS),通过添加虚拟RNS层上的原始RNS,其中所需的模运算的模上的任何非底层上的实现通过一个RNS蒙哥马利乘法算法,使用的RNS在下面的层。因此,实际的运算被推迟到底层。我们使用的乘法算法是基于Bajard和Imbert的算法,扩展到使用伪剩余(范围大于模的剩余)。由此产生的递归余数系统(RRNS)可以用于实现非常大(2000+位)模的模加法,乘法和乘法和累加,仅使用小(例如8位)模的模运算。该方法的硬件实现允许大规模并行化。该方法可应用于RSA等密码算法中,实现大模数(2048位,甚至4096位)的模幂运算。由于使用全RNS蒙哥马利算法,系统不涉及任何进位,因此不能应用利用进位的密码攻击。
英文摘要:
We present a method to increase the dynamical range of a Residue Number System (RNS) by adding virtual RNS layers on top of the original RNS, where the required modular arithmetic for a modulus on any non-bottom layer is implemented by means of an RNS Montgomery multiplication algorithm that uses the RNS on the layer below. As a result, the actual arithmetic is deferred to the bottom layer. The multiplication algorithm that we use is based on an algorithm by Bajard and Imbert, extended to work with pseudo-residues (remainders with a larger range than the modulus). The resulting Recursive Residue Number System (RRNS) can be used to implement modular addition, multiplication, and multiply-and-accumulate for very large (2000+ bits) moduli, using only modular operations for small (for example 8-bits) moduli. A hardware implementation of this method allows for massive parallelization. Our method can be applied in cryptographic algorithms such as RSA to realize modular exponentiation with a large (2048-bit, or even 4096-bit) modulus. Due to the use of full RNS Montgomery algorithms, the system does not involve any carries, therefore cryptographic attacks that exploit carries cannot be applied.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。