projects
/
gnupg2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af674b2
)
gpg: Allow generating Ed25519 key from an existing key.
author
Werner Koch
<wk@gnupg.org>
Wed, 30 Jan 2019 10:28:14 +0000
(11:28 +0100)
committer
Daniel Kahn Gillmor
<dkg@fifthhorseman.net>
Fri, 1 Jul 2022 16:06:43 +0000
(17:06 +0100)
* 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 <wk@gnupg.org>
(cherry picked from commit
346a98fabe03adf2e202e36fc2aa24b1c2571154
)
(cherry picked from commit
31d2a1eecaee766919b18bc42b918d9168f601f8
)
Gbp-Pq: Topic from-2.2.13
Gbp-Pq: Name gpg-Allow-generating-
Ed25519
-key-from-an-existing-key.patch
g10/misc.c
patch
|
blob
|
history
diff --git
a/g10/misc.c
b/g10/misc.c
index d9ebf483c21de9847849e8d46d789708c91f2163..814447132dde4a0870015fd1661dbc86ecc64f9b 100644
(file)
--- a/
g10/misc.c
+++ b/
g10/misc.c
@@
-508,6
+508,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;