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)
|
if (!IsValidModulus)
|
||||||
{
|
{
|
||||||
_hasState = false;
|
throw new InvalidOperationException($"Modulus is invalid for exponent {exponent}");
|
||||||
return false;
|
// _hasState = false;
|
||||||
|
// return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_hasState || exponent <= _previousExponent)
|
if (!_hasState || exponent <= _previousExponent)
|
||||||
|
|||||||
Reference in new issue
Block a user