ecc: Fix recomputing of Q for Ed25519.
authorWerner Koch <wk@gnupg.org>
Mon, 30 Sep 2013 18:17:05 +0000 (20:17 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 30 Sep 2013 18:44:50 +0000 (20:44 +0200)
commitc325adb8f5092b80a626bd3bb5e49cf7f3a29fc8
tree256b90ac9ca14a4c6838ac4d361a1da0742dac75
parentd69a13d3d1c14ad6a6aa7cd349d6d2dfb152d422
ecc: Fix recomputing of Q for Ed25519.

* cipher/ecc-misc.c (reverse_buffer): New.
(_gcry_ecc_compute_public): Add ED255519 specific code.
* cipher/ecc.c (sign_eddsa): Allocate DIGEST in secure memory.  Get
rid of HASH_D.
* tests/t-mpi-point.c (context_param): Test recomputing of Q for
Ed25519.

Signed-off-by: Werner Koch <wk@gnupg.org>
cipher/ecc-misc.c
cipher/ecc.c
tests/t-mpi-point.c