From caf9e032e6b4ccb114a74a3936c916bcfaba262d Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 2 Mar 2009 02:39:17 +0000 Subject: changes for 5.6: - added AuthenticatedSymmetricCipher interface class and Filter wrappers - added CCM, GCM (with SSE2 assembly), CMAC, and SEED - improved AES speed on x86 and x64 - removed WORD64_AVAILABLE; compiler 64-bit int support is now required git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@433 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- rsa.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rsa.cpp') diff --git a/rsa.cpp b/rsa.cpp index 8fab061..59449c4 100644 --- a/rsa.cpp +++ b/rsa.cpp @@ -120,7 +120,7 @@ void InvertibleRSAFunction::GenerateRandom(RandomNumberGenerator &rng, const Nam m_p.GenerateRandom(rng, primeParam); m_q.GenerateRandom(rng, primeParam); - m_d = EuclideanMultiplicativeInverse(m_e, LCM(m_p-1, m_q-1)); + m_d = m_e.InverseMod(LCM(m_p-1, m_q-1)); assert(m_d.IsPositive()); m_dp = m_d % (m_p-1); -- cgit v1.2.1