1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-04 18:48:24 +01:00

RSA: PuTTY public keys couldn't be saved

This commit is contained in:
terrafrost 2020-01-18 22:12:00 -06:00
parent b65bad4a1d
commit 0afd386114

View File

@ -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');
}
}