1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

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
This commit is contained in:
Werner Koch 2024-11-14 14:26:21 +01:00
parent 7e066f614a
commit 996e8ae3cb
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -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));