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:
parent
b65bad4a1d
commit
0afd386114
@ -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');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user