From bf804e6febc4b6703c76f2190a7d23d653839c25 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 27 Nov 2022 12:17:12 -0600 Subject: [PATCH] DSA/PuTTY: ssh-dsa should be ssh-dss --- phpseclib/Crypt/DSA/Formats/Keys/PuTTY.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpseclib/Crypt/DSA/Formats/Keys/PuTTY.php b/phpseclib/Crypt/DSA/Formats/Keys/PuTTY.php index ff7f4c95..177bfdd4 100644 --- a/phpseclib/Crypt/DSA/Formats/Keys/PuTTY.php +++ b/phpseclib/Crypt/DSA/Formats/Keys/PuTTY.php @@ -86,7 +86,7 @@ abstract class PuTTY extends Progenitor $public = Strings::packSSH2('iiii', $p, $q, $g, $y); $private = Strings::packSSH2('i', $x); - return self::wrapPrivateKey($public, $private, 'ssh-dsa', $password, $options); + return self::wrapPrivateKey($public, $private, 'ssh-dss', $password, $options); } /** @@ -104,6 +104,6 @@ abstract class PuTTY extends Progenitor throw new \InvalidArgumentException('SSH only supports keys with an N (length of Group Order q) of 160'); } - return self::wrapPublicKey(Strings::packSSH2('iiii', $p, $q, $g, $y), 'ssh-dsa'); + return self::wrapPublicKey(Strings::packSSH2('iiii', $p, $q, $g, $y), 'ssh-dss'); } }