summaryrefslogtreecommitdiff
path: root/cipher/ecc-common.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2021-10-07 13:47:07 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2021-10-07 14:12:24 +0900
commit16a9eaad5d1add3a95b1da6e037b074f18b094c7 (patch)
treee322d4961d887c05b53ff8bdd9301fe5fb7e45b1 /cipher/ecc-common.h
parent9fc0d145278d46bb129660a57b7ca2f94577d461 (diff)
downloadlibgcrypt-16a9eaad5d1add3a95b1da6e037b074f18b094c7.tar.gz
cipher:dsa,ecdsa: Support supplying K externally.
* cipher/dsa.c (sign): Add an argument K for DSA. (test_keys, dsa_sign): Follow the change. * cipher/ecc-common.h (_gcry_ecc_ecdsa_sign): Likewise for ECDSA. * cipher/ecc-ecdsa.c (_gcry_ecc_ecdsa_sign): Likewise for ECDSA. * cipher/ecc.c (test_keys, ecc_sign): Follow the change. * cipher/pubkey-util.c (_gcry_pk_util_data_to_mpi): Support "label" for K. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'cipher/ecc-common.h')
-rw-r--r--cipher/ecc-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher/ecc-common.h b/cipher/ecc-common.h
index c128aeb3..01fb9042 100644
--- a/cipher/ecc-common.h
+++ b/cipher/ecc-common.h
@@ -87,7 +87,7 @@ gpg_err_code_t _gcry_ecc_mont_encodepoint (gcry_mpi_t x, unsigned int nbits,
/*-- ecc.c --*/
/*-- ecc-ecdsa.c --*/
-gpg_err_code_t _gcry_ecc_ecdsa_sign (gcry_mpi_t input, mpi_ec_t ec,
+gpg_err_code_t _gcry_ecc_ecdsa_sign (gcry_mpi_t input, gcry_mpi_t k, mpi_ec_t ec,
gcry_mpi_t r, gcry_mpi_t s,
int flags, int hashalgo);
gpg_err_code_t _gcry_ecc_ecdsa_verify (gcry_mpi_t input, mpi_ec_t ec,