mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-13 18:02:58 +00:00
SSH2: typos in last commit
This commit is contained in:
parent
0f5b3ea416
commit
8424a464a6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user