From 996e8ae3cb0908f2b9eca0d8cbac9e972e355a5a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 14 Nov 2024 14:26:21 +0100 Subject: [PATCH] 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 --- g10/keygen.c | 2 ++ 1 file changed, 2 insertions(+) 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));