Throwing exception added in case of invalid modulus to validate if the check ever kicks off
This commit is contained in:
1 parent
c03aa53689
commit
8e3e990499
1 file changed
+3
-2
@@ -69,8 +69,9 @@ internal struct ExponentRemainderStepper
|
||||
{
|
||||
if (!IsValidModulus)
|
||||
{
|
||||
_hasState = false;
|
||||
return false;
|
||||
throw new InvalidOperationException($"Modulus is invalid for exponent {exponent}");
|
||||
// _hasState = false;
|
||||
// return false;
|
||||
}
|
||||
|
||||
if (!_hasState || exponent <= _previousExponent)
|
||||
|
||||
Reference in new issue
Block a user