From b1db7f05d9a91296a977620f19dc0031d67de0d7 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sun, 6 Sep 2015 23:01:03 +0100 Subject: [PATCH] Minor tweaks --- phpseclib/Math/BigInteger.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpseclib/Math/BigInteger.php b/phpseclib/Math/BigInteger.php index 13a54e70..14452dd0 100644 --- a/phpseclib/Math/BigInteger.php +++ b/phpseclib/Math/BigInteger.php @@ -1854,14 +1854,14 @@ class Math_BigInteger } } + // eg. the length of substr($e_bits, $i, $j + 1) for ($k = 0; $k <= $j; ++$k) { - // eg. the length of substr($e_bits, $i, $j+1) $result = $this->_squareReduce($result, $n_value, $mode); } $result = $this->_multiplyReduce($result, $powers[bindec(substr($e_bits, $i, $j + 1))], $n_value, $mode); - $i+=$j + 1; + $i += $j + 1; } }