diff options
author | weidai <weidai11@users.noreply.github.com> | 2004-05-03 18:15:11 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2004-05-03 18:15:11 +0000 |
commit | 60a5c4331c83e8a4fc6b4399e97263a0b9f14a8b (patch) | |
tree | 6a9a1fbc005c2137695f56ba9c91b1ba0d0fbae3 /rsa.cpp | |
parent | afb08eb452e78d288db14004948bbfd8a26c5922 (diff) | |
download | cryptopp-git-60a5c4331c83e8a4fc6b4399e97263a0b9f14a8b.tar.gz |
fix DivideByZero exception in InvertibleRSAFunction(n, e, d)
Diffstat (limited to 'rsa.cpp')
-rw-r--r-- | rsa.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -170,7 +170,7 @@ void InvertibleRSAFunction::Initialize(const Integer &n, const Integer &e, const continue; Integer b; unsigned int j = 0; - while (a != -1) + while (a != n-1) { b = modn.Square(a); if (b == 1) |