From 04f62f9e9ceb004e9ef4427c37cde83e2696cc53 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 27 May 2018 10:48:03 -0500 Subject: [PATCH] SSH2: adjustments for 2.0 branch --- phpseclib/Net/SSH2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index a4baa77e..5ebfd422 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -4589,7 +4589,7 @@ class SSH2 default: $hash = 'sha1'; } - $hashObj = new Crypt_Hash($hash); + $hashObj = new Hash($hash); switch ($this->signature_format) { case 'rsa-sha2-512': $h = pack('N5a*', 0x00305130, 0x0D060960, 0x86480165, 0x03040203, 0x05000440, $hashObj->hash($this->exchange_hash));