ecc: Merge partly duplicated code.
authorWerner Koch <wk@gnupg.org>
Tue, 22 Oct 2013 12:26:53 +0000 (14:26 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 6 Dec 2013 19:59:24 +0000 (20:59 +0100)
commit405021cb6d4e470337302c65dec5bc91491a89c1
treefa9b5b6b98c2f37aac1d80ac8e0c035030513ac7
parent4cf2c65fe15173c8d68a141a01b34fc1fb9080b7
ecc: Merge partly duplicated code.

* cipher/ecc-eddsa.c (_gcry_ecc_eddsa_sign): Factor A hashing out to ...
(_gcry_ecc_eddsa_compute_h_d): new function.
* cipher/ecc-misc.c (_gcry_ecc_compute_public): Use new function.
(reverse_buffer): Remove.

Signed-off-by: Werner Koch <wk@gnupg.org>
cipher/ecc-common.h
cipher/ecc-eddsa.c
cipher/ecc-misc.c