mirror of
https://github.com/danog/phpseclib.git
synced 2025-01-22 04:51:19 +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…
x
Reference in New Issue
Block a user