From 0afd386114f567f19806af7142406b5f6c1ca5e7 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sat, 18 Jan 2020 22:12:00 -0600 Subject: [PATCH] RSA: PuTTY public keys couldn't be saved --- phpseclib/Crypt/RSA/Formats/Keys/PuTTY.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Crypt/RSA/Formats/Keys/PuTTY.php b/phpseclib/Crypt/RSA/Formats/Keys/PuTTY.php index 30acd328..4c93b873 100644 --- a/phpseclib/Crypt/RSA/Formats/Keys/PuTTY.php +++ b/phpseclib/Crypt/RSA/Formats/Keys/PuTTY.php @@ -125,6 +125,6 @@ abstract class PuTTY extends Progenitor */ public static function savePublicKey(BigInteger $n, BigInteger $e) { - return self::wrapPublicKey(Strings::packSSH2($e, $n), 'ssh-rsa'); + return self::wrapPublicKey(Strings::packSSH2('ii', $e, $n), 'ssh-rsa'); } }