Home GnuPG

ecc: Fully implement Ed25519 compression in ECDSA mode.
f09ffe8a4802Unpublished

Unpublished Commit · Learn More

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

Description

ecc: Fully implement Ed25519 compression in ECDSA mode.

* src/ec-context.h (mpi_ec_ctx_s): Add field FLAGS.
* mpi/ec.c (ec_p_init): Add arg FLAGS.  Change all callers to pass it.
* cipher/ecc-curves.c (point_from_keyparam): Add arg EC, parse as
 opaque mpi and use eddsa decoding depending on the flag.
(_gcry_mpi_ec_new): Rearrange to parse Q and D after knowing the
curve.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Nov 5 2013, 5:25 PM
Parents
rC630aca794ddf: mpi: Add function gcry_mpi_set_opaque_copy.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rCf09ffe8a4802: ecc: Fully implement Ed25519 compression in ECDSA mode. (authored by Werner Koch <wk@gnupg.org>).Nov 5 2013, 5:26 PM