From d0856357ea1dbab11a675b371c87f686e45b9228 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 19 Jan 2020 08:05:55 -0600 Subject: [PATCH] SSH2: don't adjust ssh-ed25519 signatures --- phpseclib/Net/SSH2.php | 1 - 1 file changed, 1 deletion(-) diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 601ccac4..24a695bd 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -4660,7 +4660,6 @@ class SSH2 ->withSignatureFormat('SSH2'); switch ($this->signature_format) { case 'ssh-ed25519': - Strings::shift($signature, 4 + strlen('ssh-ed25519') + 4); $hash = 'sha512'; break; case 'ecdsa-sha2-nistp256':