diff options
author | Werner Koch <[email protected]> | 2019-01-30 10:28:14 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-01-30 10:28:14 +0000 |
commit | 346a98fabe03adf2e202e36fc2aa24b1c2571154 (patch) | |
tree | b859196bd1bdc5df2576a06fbbd0f91f7223c2d2 | |
parent | common: New function decode_c_string. (diff) | |
download | gnupg-346a98fabe03adf2e202e36fc2aa24b1c2571154.tar.gz gnupg-346a98fabe03adf2e202e36fc2aa24b1c2571154.zip |
gpg: Allow generating Ed25519 key from an existing key.
* g10/misc.c (map_pk_gcry_to_openpgp): Add EdDSA mapping.
--
Due to this missing mapping a "gpg --export --full-gen-key" with
selection "13 - Existing key" did not worked for an ed25519 key.
Signed-off-by: Werner Koch <[email protected]>
-rw-r--r-- | g10/misc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/misc.c b/g10/misc.c index a3f0c679e..0541d2b77 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -513,6 +513,7 @@ map_pk_gcry_to_openpgp (enum gcry_pk_algos algo) { switch (algo) { + case GCRY_PK_EDDSA: return PUBKEY_ALGO_EDDSA; case GCRY_PK_ECDSA: return PUBKEY_ALGO_ECDSA; case GCRY_PK_ECDH: return PUBKEY_ALGO_ECDH; default: return algo < 110 ? (pubkey_algo_t)algo : 0; |