mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
gpg: Ed448 and X448 are only for v5 (for subkey).
* g10/keygen.c (generate_subkeypair): Specify KEYGEN_FLAG_CREATE_V5_KEY for Ed448 or X448 key. -- Reported-by: William Holmes Fixes-commit: 36355394d865f5760075e62267d70f7a7d5dd671 GnuPG-bug-id: 5609 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
08a3a4db27
commit
86cb04a23d
@ -5879,7 +5879,12 @@ generate_subkeypair (ctrl_t ctrl, kbnode_t keyblock, const char *algostr,
|
|||||||
else if (algo == PUBKEY_ALGO_ECDSA
|
else if (algo == PUBKEY_ALGO_ECDSA
|
||||||
|| algo == PUBKEY_ALGO_EDDSA
|
|| algo == PUBKEY_ALGO_EDDSA
|
||||||
|| algo == PUBKEY_ALGO_ECDH)
|
|| algo == PUBKEY_ALGO_ECDH)
|
||||||
curve = ask_curve (&algo, NULL, NULL);
|
{
|
||||||
|
curve = ask_curve (&algo, NULL, NULL);
|
||||||
|
|
||||||
|
if (curve && (!strcmp (curve, "X448") || !strcmp (curve, "Ed448")))
|
||||||
|
keygen_flags |= KEYGEN_FLAG_CREATE_V5_KEY;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
nbits = ask_keysize (algo, 0);
|
nbits = ask_keysize (algo, 0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user