fix comment typo
parent
e9669d172f
commit
f651a6502e
2
rsa.cpp
2
rsa.cpp
|
|
@ -225,7 +225,7 @@ Integer InvertibleRSAFunction::CalculateInverse(RandomNumberGenerator &rng, cons
|
||||||
DoQuickSanityCheck();
|
DoQuickSanityCheck();
|
||||||
ModularArithmetic modn(m_n);
|
ModularArithmetic modn(m_n);
|
||||||
Integer r, rInv;
|
Integer r, rInv;
|
||||||
do { // do this loop for people using small numbers for testing
|
do { // do this in a loop for people using small numbers for testing
|
||||||
r.Randomize(rng, Integer::One(), m_n - Integer::One());
|
r.Randomize(rng, Integer::One(), m_n - Integer::One());
|
||||||
rInv = modn.MultiplicativeInverse(r);
|
rInv = modn.MultiplicativeInverse(r);
|
||||||
} while (rInv.IsZero());
|
} while (rInv.IsZero());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue