首页>
外国专利>
Logic circuit for performing modular multiplication and exponentiation
Logic circuit for performing modular multiplication and exponentiation
展开▼
机译:用于执行模乘和求幂的逻辑电路
展开▼
页面导航
摘要
著录项
相似文献
摘要
A logic circuit for performing modular multiplication of a first multi-bit binary number and a second multi-bit binary number is provided. Combination logic 12 combines the second multi-bit binary value with a group of W bits of the first multi-bit binary value every jSPth/SP input cycle to generate W multi-bit binary combination values every jSPth/SP input cycle, where the W bits comprise bits FjW to (jW + W - 1), W 1/F, j is the cycle index from F0 to k - 1, k = N/W/F, and N is the number of bits of the first multi-bit binary value. Thus in this way a plurality of multi-bit binary combinations are input every cycle in a parallel manner. Accumulation logic holds a plurality of multi-bit binary values accumulated over previous cycles. Reduction logic 13 generates a W bit value G in a current cycle for use in the next cycle. A multi-bit modulus binary value Mi is received and combined with the W bit value G generated in a current cycle to generate W multi-bit binary values for use in the next cycle. Combination logic receives the combinations from the combination logic 12 and the W multi-bit binary values from the reduction logic 13 as well as the binary values held by the accumulator logic to generate new multi-bit binary values for input to the accumulator logic to be held for the next cycle. The reduction logic 13 generates the W bit value G based on the multi-bit modulus binary value, the multi-bit binary values held in the accumulator logic, W multi-bit binary combination values generated by the combination of the second multi-bit binary number and a group of W bits of the first multi-bit binary number in the current cycle, and the W bit value G generated for the current cycle.
展开▼
机译:提供一种用于执行第一多位二进制数和第二多位二进制数的模乘的逻辑电路。组合逻辑12每第j个输入周期将第二个多位二进制值与第一个多位二进制值的W个位组合,以每j 第 SP>个输入周期,其中W位包括 jW至(jW + W-1)位,W> 1 F>,j是从 0至k-1的周期索引,k = N / W F>,N是第一个多位二进制值的位数。因此,以此方式,每个周期以并行方式输入多个多位二进制组合。累积逻辑保存在先前周期中累积的多个多位二进制值。减少逻辑13在当前周期中产生W位值G,以在下一周期中使用。接收多位模数二进制值Mi并将其与在当前周期中生成的W位值G组合以生成W个多位二进制值,以在下一个周期中使用。组合逻辑接收来自组合逻辑12的组合和来自归约逻辑13的W个多位二进制值,以及由累加器逻辑保持的二进制值,以生成新的多位二进制值,以输入到要累加的累加器逻辑。为下一个周期举行。归约逻辑13基于多位模数二进制值,累加器逻辑中保持的多位二进制值,通过第二多位二进制的组合生成的W个多位二进制组合值来生成W位值G。循环中的第一个多位二进制数的W位和一组W位,以及为当前周期生成的W位值G。
展开▼