From f04a4e6fda207e7259d6e07479b1ee7affe53757 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Fri, 11 Mar 2022 18:38:01 -0600 Subject: [PATCH] fix error in PHP EvalBarrett Engine: --- phpseclib/Math/BigInteger/Engines/PHP/Reductions/EvalBarrett.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpseclib/Math/BigInteger/Engines/PHP/Reductions/EvalBarrett.php b/phpseclib/Math/BigInteger/Engines/PHP/Reductions/EvalBarrett.php index e5712b0e..5360aebc 100644 --- a/phpseclib/Math/BigInteger/Engines/PHP/Reductions/EvalBarrett.php +++ b/phpseclib/Math/BigInteger/Engines/PHP/Reductions/EvalBarrett.php @@ -283,6 +283,7 @@ abstract class EvalBarrett extends Base $sum = $' . $result . '[$i] + $_' . $y . '[$i] + $carry; $carry = $sum >= ' . self::float2string($class::BASE_FULL) . '; $' . $result . '[$i] = $carry ? $sum - ' . self::float2string($class::BASE_FULL) . ' : $sum; + ++$i; } if ($carry) { for (; $' . $result . '[$i] == ' . $class::MAX_DIGIT . '; ++$i) {