summaryrefslogtreecommitdiff
path: root/cipher/ecc-common.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2020-06-18 09:51:58 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2020-06-18 09:51:58 +0900
commit2856ac14ae3e4c9e6288e1f0d8bc1945bb874081 (patch)
treec09479ee227b55b08fae9b467350c8353b031800 /cipher/ecc-common.h
parent1cf49754694611620fd383327cf127e91f6883df (diff)
downloadlibgcrypt-2856ac14ae3e4c9e6288e1f0d8bc1945bb874081.tar.gz
ecc: Change EdDSA internal API.
* cipher/ecc-common.h (_gcry_ecc_eddsa_sign): Last arg is CTX. (_gcry_ecc_eddsa_verify): Ditto. * cipher/ecc-eddsa.c (_gcry_ecc_eddsa_sign): Get hash algo from CTX. (_gcry_ecc_eddsa_verify): Ditto. * cipher/ecc.c (ecc_sign, ecc_verify): Follow the change. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'cipher/ecc-common.h')
-rw-r--r--cipher/ecc-common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cipher/ecc-common.h b/cipher/ecc-common.h
index b8b7c763..25c31112 100644
--- a/cipher/ecc-common.h
+++ b/cipher/ecc-common.h
@@ -110,11 +110,11 @@ gpg_err_code_t _gcry_ecc_eddsa_genkey (mpi_ec_t ec, int flags);
gpg_err_code_t _gcry_ecc_eddsa_sign (gcry_mpi_t input,
mpi_ec_t ec,
gcry_mpi_t r_r, gcry_mpi_t s,
- int hashalgo);
+ struct pk_encoding_ctx *ctx);
gpg_err_code_t _gcry_ecc_eddsa_verify (gcry_mpi_t input,
mpi_ec_t ec,
gcry_mpi_t r, gcry_mpi_t s,
- int hashalgo);
+ struct pk_encoding_ctx *ctx);
void reverse_buffer (unsigned char *buffer, unsigned int length);