aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2026-10-21 07:51:37 +0200
committerWerner Koch <[email protected]>2026-10-21 07:51:37 +0200
commita85559aa5e7b1e52b0f9aca72ab4a1f1e4a9b3cf (patch)
tree8fa0ba925e2d075e3a62dc3d769f2229cfd3567e
parentscd: Factor out pinpad_prompt, clean-up for app-openpgp. (diff)
downloadgnupg-a85559aa5e7b1e52b0f9aca72ab4a1f1e4a9b3cf.tar.gz
gnupg-a85559aa5e7b1e52b0f9aca72ab4a1f1e4a9b3cf.zip
gpg: Fix colon listing for ietf25 and ietf27 curves.
* g10/keylist.c (list_keyblock_colon): Print the fixed curve name for PUBKEY_ALGO_X25519 and ...ED25519 -- GnuPG-bug-id: 8521
-rw-r--r--g10/keylist.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/g10/keylist.c b/g10/keylist.c
index 71f392147..cd9f2dcc2 100644
--- a/g10/keylist.c
+++ b/g10/keylist.c
@@ -2140,6 +2140,10 @@ list_keyblock_colon (ctrl_t ctrl, kbnode_t keyblock,
curvename = curve;
es_fputs (curvename, es_stdout);
}
+ else if (pk->pubkey_algo == PUBKEY_ALGO_X25519)
+ es_fputs ("ietf25", es_stdout);
+ else if (pk->pubkey_algo == PUBKEY_ALGO_ED25519)
+ es_fputs ("ietf27", es_stdout);
else if (pk->pubkey_algo == PUBKEY_ALGO_KYBER
|| pk->pubkey_algo == PUBKEY_ALGO_MLD65_25519
|| pk->pubkey_algo == PUBKEY_ALGO_MLD87_448
@@ -2327,6 +2331,10 @@ list_keyblock_colon (ctrl_t ctrl, kbnode_t keyblock,
curvename = curve;
es_fputs (curvename, es_stdout);
}
+ else if (pk2->pubkey_algo == PUBKEY_ALGO_X25519)
+ es_fputs ("ietf25", es_stdout);
+ else if (pk2->pubkey_algo == PUBKEY_ALGO_ED25519)
+ es_fputs ("ietf27", es_stdout);
else if (pk2->pubkey_algo == PUBKEY_ALGO_KYBER
|| pk2->pubkey_algo == PUBKEY_ALGO_MLD65_25519
|| pk2->pubkey_algo == PUBKEY_ALGO_MLD87_448