Home GnuPG

ecc: Change keygrip computation for Ed25519+EdDSA.
4fb3c8e5a7fcUnpublished

Unpublished Commit · Learn More

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

Description

ecc: Change keygrip computation for Ed25519+EdDSA.

* cipher/ecc.c (compute_keygrip): Rework.
* cipher/ecc-eddsa.c (_gcry_ecc_eddsa_ensure_compact): New.
* cipher/ecc-curves.c (_gcry_ecc_update_curve_param): New.
* tests/keygrip.c (key_grips): Add flag param and test cases for
Ed25519.

The keygrip for Ed25519+EdDSA has not yet been used - thus it is
possible to change it. Using the compact representation saves us the
recovering of x from the standard representation. Compacting is
basically free.

Details

Provenance
wernerAuthored on Nov 11 2013, 7:14 PM
Parents
rC8b3eecee2d89: mpi: Add special format GCRYMPI_FMT_OPAQUE.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC4fb3c8e5a7fc: ecc: Change keygrip computation for Ed25519+EdDSA. (authored by Werner Koch <wk@gnupg.org>).Nov 11 2013, 7:15 PM