HomePhabricator

pki_crypto: Support Ed25519 keys in PEM files

Authored by ansasaki on Aug 30 2019, 6:41 PM.

Description

pki_crypto: Support Ed25519 keys in PEM files

This adds support for Ed25519 keys from files in PEM format when using
OpenSSL with Ed25519 support. The default encoding for the PEM file is
expected to be PKCS#8. Encrypted files are supported.

For the lack of an API, it is not possible to export keys in PEM format,
only in OpenSSH format.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
(cherry picked from commit a3a0529b41e5ce4789cc8a5bd5e09b4ed15efe32)

Details

Committed
ansasakiSep 30 2019, 4:58 PM
Parents
rLIBSSH3f6820694eeb: cmake: Do not build internal ed25519 when unnecessary
Branches
Unknown
Tags
Unknown