mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-10 07:38:48 +00:00
RSA: PuTTY public keys couldn't be saved
This commit is contained in:
parent
b65bad4a1d
commit
0afd386114
@ -125,6 +125,6 @@ abstract class PuTTY extends Progenitor
|
|||||||
*/
|
*/
|
||||||
public static function savePublicKey(BigInteger $n, BigInteger $e)
|
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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user