SSH2: typos in last commit

This commit is contained in:
terrafrost 2013-12-22 18:25:00 -06:00
parent 0f5b3ea416
commit 8424a464a6

View File

@ -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);