作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2007, Vol. 33 ›› Issue (24): 155-157. doi: 10.3969/j.issn.1000-3428.2007.24.054

• 安全技术 • 上一篇    下一篇

Montgomery模平方算法及其应用

王金荣1,2,周 贇3,王红霞4   

  1. 1. 杭州师范学院信息工程学院,杭州 310018;2. 浙江大学计算机科学与技术学院,杭州 310027;
    3. 衢州学院信电系,衢州 324000;4. 成都理工大学信息工程学院,成都610059
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-12-20 发布日期:2007-12-20

Montgomery Modular Squaring Algorithm and Its Application

WANG Jin-rong1,2, ZHOU Yun3, WANG Hong-xia4   

  1. 1. College of Information Engineering, Hangzhou Teacher’s College, Hangzhou 310018; 2. College of Computer Science, Zhejiang University, Hangzhou 310027; 3. Department of Information and Electronic, Quzhou College, Quzhou 324000;
    4. College of Information Engineering, Chengdu University of Technology, Chengdu 610059
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-12-20 Published:2007-12-20

摘要: 分析Montgomery模乘算法的设计思想和模平方中乘法的计算过程,通过引入两种新的平方计算方法以及对Montgomery算法的优化,提出适合于通用32位处理器实现的Montgomery模平方算法。将该方法应用于模幂计算,给出基于滑动窗口技术的Montgomery模幂算法。实验结果表明,该算法能将模幂的计算速度提高9%~12%。

关键词: RSA公钥, DSA公钥, Montgomery模乘算法

Abstract: This paper analyzes the basic design principle of Montgomery algorithm and the computing produce of multiplication in computing modular squaring. By adopting two new methods of computing squaring and optimizing Montgomery algorithm for squaring, it proposes the Montgomery modular squaring algorithm which is best suited for standard 32-bit processors. It also applies this new method to modular exponentiation and gives a Montgomery modular exponentiation algorithm based on sliding window techniques. According to experimentation, the new algorithm improves its efficiency with 9%~12%.

Key words: RSA, DSA, Montgomery modular multiplication algorithm

中图分类号: