aboutsummaryrefslogtreecommitdiffstats
path: root/common/openpgp-oid.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2020-06-24 01:05:03 +0000
committerNIIBE Yutaka <[email protected]>2020-06-24 01:05:03 +0000
commita763bb2580b0d586a80b8ccd3654f41e49604f4f (patch)
tree1e32c6510eb9a990bdea02d8b660077858c81fb3 /common/openpgp-oid.c
parentecc: Use "cv448" to specify key using X448. (diff)
downloadgnupg-a763bb2580b0d586a80b8ccd3654f41e49604f4f.tar.gz
gnupg-a763bb2580b0d586a80b8ccd3654f41e49604f4f.zip
gpg,agent: Support Ed448 signing.
* agent/pksign.c (do_encode_eddsa): First argument is NBITs, so that it can support Ed448, as well as Ed25519. (agent_pksign_do): Follow the change. * agent/sexp-secret.c (fixup_when_ecc_private_key): No fix-up needed for Ed448, it's only for classic curves. * common/openpgp-oid.c (oidtable): Add Ed448. * common/sexputil.c (get_pk_algo_from_key): Ed448 is only for EdDSA. * g10/export.c (match_curve_skey_pk): Ed448 is for EdDSA. * g10/keygen.c (gen_ecc): Support Ed448 with the name of "ed448". (ask_algo, parse_key_parameter_part): Handle "ed448". * g10/pkglue.c (pk_verify): Support Ed448. (pk_check_secret_key): Support Ed448. * g10/sign.c (hash_for): Defaults to SHA512 for Ed448. (make_keysig_packet): Likewise. Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'common/openpgp-oid.c')
-rw-r--r--common/openpgp-oid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/openpgp-oid.c b/common/openpgp-oid.c
index 605caa679..4e53a74fd 100644
--- a/common/openpgp-oid.c
+++ b/common/openpgp-oid.c
@@ -49,6 +49,7 @@ static struct {
{ "Curve25519", "1.3.6.1.4.1.3029.1.5.1", 255, "cv25519", PUBKEY_ALGO_ECDH },
{ "Ed25519", "1.3.6.1.4.1.11591.15.1", 255, "ed25519", PUBKEY_ALGO_EDDSA },
{ "X448", "1.3.101.111", 448, "cv448", PUBKEY_ALGO_ECDH },
+ { "Ed448", "1.3.101.113", 448, "ed448", PUBKEY_ALGO_EDDSA },
{ "NIST P-256", "1.2.840.10045.3.1.7", 256, "nistp256" },
{ "NIST P-384", "1.3.132.0.34", 384, "nistp384" },