From 351fc6e6fa65e654d4b087e8577cf46b36ce0a2e Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 6 May 2024 10:47:01 +0200 Subject: [PATCH] gpg: Algo "kyber" is now a shortcut for ky768_bp256. * g10/keygen.c (parse_key_parameter_part): Change Kyber defaults. -- Also kyber1024 is now a shortcut for ky1024_bp384. This change is to align it with the original wussler draft. --- g10/keygen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/g10/keygen.c b/g10/keygen.c index 13d46e43c..fe9a5d8f2 100644 --- a/g10/keygen.c +++ b/g10/keygen.c @@ -3769,7 +3769,7 @@ parse_key_parameter_part (ctrl_t ctrl, { /* Get the curve and check that it can technically be used * (i.e. everything except the EdXXXX curves. */ - curve = openpgp_is_curve_supported ("brainpoolP384r1", &algo, NULL); + curve = openpgp_is_curve_supported ("brainpoolP256r1", &algo, NULL); if (!curve || algo == PUBKEY_ALGO_EDDSA) return gpg_error (GPG_ERR_UNKNOWN_CURVE); algo = PUBKEY_ALGO_KYBER; @@ -3780,7 +3780,7 @@ parse_key_parameter_part (ctrl_t ctrl, { /* Get the curve and check that it can technically be used * (i.e. everything except the EdXXXX curves. */ - curve = openpgp_is_curve_supported ("brainpoolP512r1", &algo, NULL); + curve = openpgp_is_curve_supported ("brainpoolP384r1", &algo, NULL); if (!curve || algo == PUBKEY_ALGO_EDDSA) return gpg_error (GPG_ERR_UNKNOWN_CURVE); algo = PUBKEY_ALGO_KYBER;