From 8424a464a6bd53f5f777deda8aa2c5ea0a541383 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 22 Dec 2013 18:25:00 -0600 Subject: [PATCH] SSH2: typos in last commit --- phpseclib/Net/SSH2.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 9d8f553c..b111708a 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -1284,8 +1284,8 @@ class Net_SSH2 -- http://tools.ietf.org/html/rfc4419#section-6.2 */ $one = new Math_BigInteger(1); $keyLength = min($keyLength, $kexHash->getLength()); - $max = $one->bitwise_leftShift(16 * $keyLength); // 2 * 8 * $keyLengt - $max->subtract($one); + $max = $one->bitwise_leftShift(16 * $keyLength); // 2 * 8 * $keyLength + $max = $max->subtract($one); $x = $one->random($one, $max); $e = $g->modPow($x, $prime);