mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
g10: EdDSA support.
* g10/keyid.c (keygrip_from_pk): Compute keygrip of EdDSA key. * g10/keygen.c (generate_subkeypair): Ed25519 is for EdDSA. * common/openpgp-oid.c (oid_ed25519): Update.
This commit is contained in:
parent
513c67b746
commit
40c3b0741e
3 changed files with 9 additions and 3 deletions
|
@ -4031,7 +4031,11 @@ generate_subkeypair (ctrl_t ctrl, kbnode_t keyblock)
|
|||
else if (algo == PUBKEY_ALGO_ECDSA
|
||||
|| algo == PUBKEY_ALGO_EDDSA
|
||||
|| algo == PUBKEY_ALGO_ECDH)
|
||||
curve = ask_curve ();
|
||||
{
|
||||
curve = ask_curve ();
|
||||
if (curve && !strcmp (curve, "Ed25519"))
|
||||
algo = PUBKEY_ALGO_EDDSA;
|
||||
}
|
||||
else
|
||||
nbits = ask_keysize (algo, 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue