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:
parent
f0bca16ad3
commit
bb6b38c240
2 changed files with 25 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue