ecc: Change algorithm for Ed25519 x recovery.
authorWerner Koch <wk@gnupg.org>
Thu, 24 Oct 2013 11:59:29 +0000 (13:59 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 24 Oct 2013 12:56:08 +0000 (14:56 +0200)
commitc630fd71b336eb9209e914d24dc1e26a34521882
treef949e93728507648a1f7f2fe444a6d9c61fef243
parent1cf5699b6febab1ef9d300531acc2ee33a7df739
ecc: Change algorithm for Ed25519 x recovery.

* cipher/ecc-eddsa.c (scanval): Add as temporary hack.
(_gcry_ecc_eddsa_recover_x): Use the algorithm from page 15 of the
paper.  Return an error code.
(_gcry_ecc_eddsa_decodepoint): Take care of the error code.
* mpi/mpi-mul.c (gcry_mpi_mulm): Use truncated division.

Signed-off-by: Werner Koch <wk@gnupg.org>
cipher/ecc-common.h
cipher/ecc-eddsa.c
mpi/mpi-mul.c
tests/t-ed25519.c