From 5ba61146e60db14de263e0d9f88463375a37a6e0 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Wed, 22 Nov 2017 19:49:55 -0600 Subject: [PATCH] BigInteger: adjustment to isPrime --- phpseclib/Math/BigInteger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Math/BigInteger.php b/phpseclib/Math/BigInteger.php index 6f9d5915..e2a219c7 100644 --- a/phpseclib/Math/BigInteger.php +++ b/phpseclib/Math/BigInteger.php @@ -3492,7 +3492,7 @@ class Math_BigInteger break; } } - $s = 26 * $i + $j - 1; + $s = 26 * $i + $j; $r->_rshift($s); }