发明名称 |
Method and apparatus for calculating a modular inverse |
摘要 |
Apparatus for calculating a classical modular inverse or a Montgomery modular inverse of an integer a (mod p), where p is a k-bit integer, comprising: a first calculator operable to calculate an "Almost Montgomery Inverse" of a first input variable; a counter z; a second calculator operable to calculate a Montgomery modular product of the output from the first calculator and the second input variable in the event that z=k; a third calculator operable to calculate a Montgomery modular product of the output of the first calculator and 2<SUP>2*k-z </SUP>in the event that z<>k; a fourth calculator operable to calculate a Montgomery modular product of the output from the third calculator and the second input variable in the event that z<>k; and further comprising a selector for selecting a first and second input variable when calculating the classical modular inverse being different from the first and second input variables selected when calculating the Montgomery modular inverse.
|
申请公布号 |
US2005283514(A1) |
申请公布日期 |
2005.12.22 |
申请号 |
US20050139957 |
申请日期 |
2005.05.27 |
申请人 |
THE QUEEN'S UNIVERSITY OF BELFAST - RESEARCH & REGIONAL SERVICES |
发明人 |
MCIVOR CIARAN J.;MCCANNY JOHN V. |
分类号 |
G06F7/72;(IPC1-7):G06F7/38 |
主分类号 |
G06F7/72 |
代理机构 |
|
代理人 |
|
主权项 |
|
地址 |
|