diff options
author | Werner Koch <wk@gnupg.org> | 2013-10-23 14:20:10 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2013-10-24 14:56:08 +0200 |
commit | 1cf5699b6febab1ef9d300531acc2ee33a7df739 (patch) | |
tree | eb726dc204a3741f6c2281ae5bd97c9eac48f9bb /cipher/ecc-common.h | |
parent | 9ce54e5b512418ddf45ce18f2cbd48cdced779f5 (diff) | |
download | libgcrypt-1cf5699b6febab1ef9d300531acc2ee33a7df739.tar.gz |
ecc: Refactor _gcry_ecc_eddsa_decodepoint.
* cipher/ecc-eddsa.c (_gcry_ecc_eddsa_decodepoint): Factor some code
out to ..
(_gcry_ecc_eddsa_recover_x): new.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'cipher/ecc-common.h')
-rw-r--r-- | cipher/ecc-common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cipher/ecc-common.h b/cipher/ecc-common.h index 0a95b95f..e451f8d8 100644 --- a/cipher/ecc-common.h +++ b/cipher/ecc-common.h @@ -97,6 +97,8 @@ gpg_err_code_t _gcry_ecc_ecdsa_verify (gcry_mpi_t input, ECC_public_key *pkey, gcry_mpi_t r, gcry_mpi_t s); /*-- ecc-eddsa.c --*/ +void _gcry_ecc_eddsa_recover_x (gcry_mpi_t x, gcry_mpi_t y, int sign, + mpi_ec_t ec); gpg_err_code_t _gcry_ecc_eddsa_encodepoint (mpi_point_t point, mpi_ec_t ctx, gcry_mpi_t x, gcry_mpi_t y, unsigned char **r_buffer, |