ecc: Fully implement Ed25519 compression in ECDSA mode.
authorWerner Koch <wk@gnupg.org>
Tue, 5 Nov 2013 16:25:02 +0000 (17:25 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 5 Nov 2013 16:26:52 +0000 (17:26 +0100)
commitf09ffe8a4802af65a116e79eceeb1cb4ed4fa2f4
tree294ee667a0c27bd20c333eab4fb69bb04b8c8de3
parent630aca794ddf057fb7265b7dc346374743036af4
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>
cipher/ecc-curves.c
cipher/ecc-ecdsa.c
cipher/ecc-eddsa.c
cipher/ecc-gost.c
cipher/ecc-misc.c
cipher/ecc.c
doc/gcrypt.texi
mpi/ec.c
src/ec-context.h
src/mpi.h