From 62b6c1f16ae0ed7b0eb1b095ee383aa0910314bb Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 14 Nov 2024 12:31:21 +0100 Subject: Support the Kyber algorithm in key listings. * src/gpgme.h.in (GPGME_PK_KYBER): New. * src/conversion.c (_gpgme_map_pk_algo): Handle Kyber. * src/gpgme.c (gpgme_pubkey_algo_string): Support Kyber. (gpgme_pubkey_algo_name): Add Kyber. --- tests/run-keylist.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/run-keylist.c b/tests/run-keylist.c index 8e784451..7bbb9769 100644 --- a/tests/run-keylist.c +++ b/tests/run-keylist.c @@ -347,13 +347,17 @@ main (int argc, char **argv) subkey = key->subkeys; for (nsub=0; subkey; subkey = subkey->next, nsub++) { + char *algostr; + printf ("fpr %2d: %s\n", nsub, nonnull (subkey->fpr)); if (subkey->v5fpr) printf ("v5fpr %2d: %s\n", nsub, nonnull (subkey->v5fpr)); if (subkey->keygrip) printf ("grip %2d: %s\n", nsub, subkey->keygrip); - if (subkey->curve) - printf ("curve %2d: %s\n", nsub, subkey->curve); + algostr = gpgme_pubkey_algo_string (subkey); + printf ("algo %2d: %s (%s)\n", nsub, algostr, + gpgme_pubkey_algo_name (subkey->pubkey_algo)); + gpgme_free (algostr); printf ("caps %2d: %s%s%s%s%s%s\n", nsub, subkey->can_encrypt? "e":"", -- cgit v1.2.3