1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

gpg: Fix comparing ed448 vs ed25519 with --assert-pubkey-algo.

* g10/keyid.c (extra_algo_strength_offset): New.
(compare_pubkey_string_part): Use the mapping.
--

GnuPG-bug-id: 6425
This commit is contained in:
Werner Koch 2024-11-22 16:46:15 +01:00
parent f0bca16ad3
commit bb6b38c240
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
2 changed files with 25 additions and 1 deletions

View file

@ -60,6 +60,11 @@ test_compare_pubkey_string (void)
{ "brainpoolP384r1", ">brainpoolp384r1" , 0 },
{ "brainpoolP384r1", ">=brainpoolp384r1", 1 },
{ "brainpoolP384r1", ">=brainpoolp384" , 1 },
{ "ed25519", ">ed448", 0 },
{ "cv25519", ">cv448", 0 },
{ "ed448", ">ed25519", 1 },
{ "ed448", ">=ed25519", 1 },
{ "cv448", ">cv25519", 1 },
{ "", "", 0}
};
int idx;