fix DivideByZero exception in InvertibleRSAFunction(n, e, d)

pull/2/head
weidai 2004-05-03 18:15:11 +00:00
parent afb08eb452
commit 60a5c4331c
1 changed files with 1 additions and 1 deletions

View File

@ -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)