summaryrefslogtreecommitdiff
path: root/cipher/ecc-common.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2013-10-23 14:20:10 +0200
committerWerner Koch <wk@gnupg.org>2013-10-24 14:56:08 +0200
commit1cf5699b6febab1ef9d300531acc2ee33a7df739 (patch)
treeeb726dc204a3741f6c2281ae5bd97c9eac48f9bb /cipher/ecc-common.h
parent9ce54e5b512418ddf45ce18f2cbd48cdced779f5 (diff)
downloadlibgcrypt-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.h2
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,