mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
kbx: Add experimental support for EDDSA.
* kbx/keybox-openpgp.c (parse_key): Use algo constants and add experimental support for EdDSA.
This commit is contained in:
parent
a63ed98758
commit
bdb9c2b314
@ -199,23 +199,24 @@ parse_key (const unsigned char *data, size_t datalen,
|
||||
|
||||
switch (algorithm)
|
||||
{
|
||||
case 1:
|
||||
case 2:
|
||||
case 3: /* RSA */
|
||||
case PUBKEY_ALGO_RSA:
|
||||
case PUBKEY_ALGO_RSA_E:
|
||||
case PUBKEY_ALGO_RSA_S:
|
||||
npkey = 2;
|
||||
break;
|
||||
case 16:
|
||||
case 20: /* Elgamal */
|
||||
case PUBKEY_ALGO_ELGAMAL_E:
|
||||
case PUBKEY_ALGO_ELGAMAL:
|
||||
npkey = 3;
|
||||
break;
|
||||
case 17: /* DSA */
|
||||
case PUBKEY_ALGO_DSA:
|
||||
npkey = 4;
|
||||
break;
|
||||
case 18: /* ECDH */
|
||||
case PUBKEY_ALGO_ECDH:
|
||||
npkey = 3;
|
||||
is_ecc = 1;
|
||||
break;
|
||||
case 19: /* ECDSA */
|
||||
case PUBKEY_ALGO_ECDSA:
|
||||
case PUBKEY_ALGO_EDDSA:
|
||||
npkey = 2;
|
||||
is_ecc = 1;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user