summaryrefslogtreecommitdiff
path: root/cipher/elgamal.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2013-07-17 15:54:32 +0200
committerWerner Koch <wk@gnupg.org>2013-07-17 15:54:32 +0200
commit5940e66cbefea3de5924f494f18aed69bb694bff (patch)
tree054fe254b2bd012281e57d594455754c5309c91c /cipher/elgamal.c
parent6e1adb05d290aeeb1c230c763970695f4a538526 (diff)
downloadlibgcrypt-5940e66cbefea3de5924f494f18aed69bb694bff.tar.gz
cipher: Prepare to pass extra info to the sign functions.
* src/gcrypt-module.h (gcry_pk_sign_t): Add parms flags and hashalgo. * cipher/rsa.c (rsa_sign): Add parms and mark them as unused. * cipher/dsa.c (dsa_sign): Ditto. * cipher/elgamal.c (elg_sign): Ditto. * cipher/pubkey.c (dummy_sign): Ditto. (pubkey_sign): Pass 0 for the new args. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'cipher/elgamal.c')
-rw-r--r--cipher/elgamal.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cipher/elgamal.c b/cipher/elgamal.c
index ce4be852..128dd997 100644
--- a/cipher/elgamal.c
+++ b/cipher/elgamal.c
@@ -753,12 +753,15 @@ elg_decrypt (int algo, gcry_mpi_t *result,
static gcry_err_code_t
-elg_sign (int algo, gcry_mpi_t *resarr, gcry_mpi_t data, gcry_mpi_t *skey)
+elg_sign (int algo, gcry_mpi_t *resarr, gcry_mpi_t data, gcry_mpi_t *skey,
+ int flags, int hashalgo)
{
gcry_err_code_t err = GPG_ERR_NO_ERROR;
ELG_secret_key sk;
(void)algo;
+ (void)flags;
+ (void)hashalgo;
if ((! data)
|| (! skey[0]) || (! skey[1]) || (! skey[2]) || (! skey[3]))