diff options
author | Werner Koch <wk@gnupg.org> | 2013-07-17 15:54:32 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2013-07-17 15:54:32 +0200 |
commit | 5940e66cbefea3de5924f494f18aed69bb694bff (patch) | |
tree | 054fe254b2bd012281e57d594455754c5309c91c /cipher/dsa.c | |
parent | 6e1adb05d290aeeb1c230c763970695f4a538526 (diff) | |
download | libgcrypt-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/dsa.c')
-rw-r--r-- | cipher/dsa.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cipher/dsa.c b/cipher/dsa.c index 90edeb5a..55805e21 100644 --- a/cipher/dsa.c +++ b/cipher/dsa.c @@ -906,12 +906,15 @@ dsa_check_secret_key (int algo, gcry_mpi_t *skey) static gcry_err_code_t -dsa_sign (int algo, gcry_mpi_t *resarr, gcry_mpi_t data, gcry_mpi_t *skey) +dsa_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; DSA_secret_key sk; (void)algo; + (void)flags; + (void)hashalgo; if ((! data) || (! skey[0]) || (! skey[1]) || (! skey[2]) |