摘 要
RSA作為最重要的公開密鑰算法,在各領域的應用數不勝數。然而,RSA算法加密速度很慢,難以像其他加密算法那樣得到更廣泛的應用。冪模運算是RSA的速度瓶頸,在全過程中都有使用。蒙哥馬利算法對冪模運算的改進大大的提高了RSA的加解密效率。本課題將RSA公鑰加密算法用蒙哥馬利算法實現。通過對冪模運算的改進,簡化,提高RSA加密效率。本文主要論述RSA基本原理以及相關函數類的設計與實現,使用Microsoft Visual C++ 6.0 操作平臺,實現RSA加密算法,界面友善,操作方便。
關鍵詞: RSA;RSA算法;蒙哥馬利算法;加密;解密;
A Rapid Way to Implement RSA Public Key Cryptography Algorithm
Abstract
The RSA encryption speed is very slow, and to apply it is difficult. So it constrained the development of the RSA algorithm. Modular multiplication is the speed bottleneck of algorithm in the whole using process. The advancing of Montgomery algorithm for the computation power module greatly improves the RSA encryption efficiency. The task implement RSA public key encryption algorithm with Montgomery algorithm. With the improvements of modular multiplication, it enhances the efficiency of RSA encryption. This paper mainly discusses the basic tenets of RSA and the design and implementation of the correlation function. The development platform for RSA encryption algorithm is Microsoft Visual C + + 6.0.