summaryrefslogtreecommitdiffstats
path: root/g10/keygen.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2024-05-06 10:47:01 +0200
committerWerner Koch <wk@gnupg.org>2024-05-06 10:47:01 +0200
commit351fc6e6fa65e654d4b087e8577cf46b36ce0a2e (patch)
tree3581cc8ac81b88c93c64a82faa9c17561d59862a /g10/keygen.c
parentscd:piv: Support listing of retired keys with KEYINFO. (diff)
downloadgnupg2-351fc6e6fa65e654d4b087e8577cf46b36ce0a2e.tar.xz
gnupg2-351fc6e6fa65e654d4b087e8577cf46b36ce0a2e.zip
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.
Diffstat (limited to '')
-rw-r--r--g10/keygen.c4
1 files 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;