summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2024-11-14 14:26:21 +0100
committerWerner Koch <wk@gnupg.org>2024-11-14 14:26:21 +0100
commit996e8ae3cb0908f2b9eca0d8cbac9e972e355a5a (patch)
tree7d24a67463706c4aa73cbcea82677047ae4ce9d1
parentgpg: For composite algos add the algo string to the colons listings. (diff)
downloadgnupg2-996e8ae3cb0908f2b9eca0d8cbac9e972e355a5a.tar.xz
gnupg2-996e8ae3cb0908f2b9eca0d8cbac9e972e355a5a.zip
gpg: Allow "Kyber" as algorithm for the Subkey-Type keyword.
* g10/keygen.c (get_parameter_algo): Make "KYBER" to PUBKEY_ALGO_KYBER. -- GnuPG-bug-id: 7397
-rw-r--r--g10/keygen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/keygen.c b/g10/keygen.c
index 77feb8e72..a0cfb5c83 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -4551,6 +4551,8 @@ get_parameter_algo (ctrl_t ctrl, struct para_data_s *para, enum para_name key,
i = PUBKEY_ALGO_ECDSA;
else if (!ascii_strcasecmp (r->u.value, "ECDH"))
i = PUBKEY_ALGO_ECDH;
+ else if (!ascii_strcasecmp (r->u.value, "KYBER"))
+ i = PUBKEY_ALGO_KYBER;
else
i = map_gcry_pk_to_openpgp (gcry_pk_map_name (r->u.value));