3 ms·
It is possible to store SSH private keys in gpg-agent, which uses the openpgp-s2k3-sha1-aes-cbc algo to encrypt the key for storage. s2k3 is an iterated-and-sa
by edwintorok 13y ago
It is possible to store SSH private keys in gpg-agent,
which uses the openpgp-s2k3-sha1-aes-cbc algo to encrypt the key for storage.
s2k3 is an iterated-and-salted s2k algorithm from RFC2440,
the protected private key format is:
https://gitorious.org/gnupg-org/gnupg/blobs/master/agent/keyformat.txt https://gitorious.org/gnupg-org/gnupg/blobs/master/agent/key...
The number of iterations is at least 65536, whereas with pkcs8 openssl uses 2048 iterations by default.
More details on how to use SSH keys with GPG agent:
http://budts.be/weblog/2012/08/ssh-authentication-with-your-pgp-key http://budts.be/weblog/2012/08/ssh-authentication-with-your-...