Home GnuPG

ecc: Make gcry_pk_testkey work for Ed25519.
14ae6224b1b1Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

ecc: Make gcry_pk_testkey work for Ed25519.

* cipher/ecc-misc.c (_gcry_ecc_compute_public): Add optional args G
and d.  Change all callers.
* cipher/ecc.c (gen_y_2): Remove.
(check_secret_key): Use generic public key compute function.  Adjust
for use with Ed25519 and EdDSA.
(nist_generate_key): Do not use the compliant key thingy for Ed25519.
(ecc_check_secret_key): Make parameter parsing similar to the other
functions.
* cipher/ecc-curves.c (domain_parms): Zero prefix some parameters so
that _gcry_ecc_update_curve_param works correctly.
* tests/keygen.c (check_ecc_keys): Add "param" flag.  Check all
Ed25519 keys.

Details

Provenance
wernerAuthored on Dec 2 2013, 4:18 PM
Parents
rC485f35124b1a: ecc: Fix eddsa point decompression.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC14ae6224b1b1: ecc: Make gcry_pk_testkey work for Ed25519. (authored by Werner Koch <wk@gnupg.org>).Dec 2 2013, 4:21 PM