From eab705fbb51b47fa7f8d5b6ab99a75437adafe46 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Tue, 10 Sep 2019 23:15:30 -0500 Subject: [PATCH] SSH2: typo --- 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 84887545..5c781411 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -1774,7 +1774,7 @@ class SSH2 } if (!$this->encrypt->usesNonce()) { - list($this->hmac_create, $createKeyLegth) = self::mac_algorithm_to_hash_instance($mac_algorithm); + list($this->hmac_create, $createKeyLength) = self::mac_algorithm_to_hash_instance($mac_algorithm); } else { $this->hmac_create = new \stdClass; $this->hmac_create->name = $mac_algorithm; @@ -1799,7 +1799,7 @@ class SSH2 } if (!$this->decrypt->usesNonce()) { - list($this->hmac_check, $checkKeyLegth) = self::mac_algorithm_to_hash_instance($mac_algorithm); + list($this->hmac_check, $checkKeyLength) = self::mac_algorithm_to_hash_instance($mac_algorithm); $this->hmac_size = $this->getLengthInBytes(); } else { $this->hmac_check = new \stdClass;