Throwing exception added in case of invalid modulus to validate if the check ever kicks off

This commit is contained in:
mlemanczyk committed 2025-10-23 16:43:52 +02:00
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)