diff options
author | Moritz Schulte <mo@g10code.com> | 2003-07-14 22:36:44 +0000 |
---|---|---|
committer | Moritz Schulte <mo@g10code.com> | 2003-07-14 22:36:44 +0000 |
commit | a66dbf4c7a0f7c0f6b2fe0378c97605373428154 (patch) | |
tree | b833792b11097a48fbabed172ce981c57460ce9c /cipher/dsa.c | |
parent | 88920837676bf80c371ff950670fb2fa7bf58b24 (diff) | |
download | libgcrypt-a66dbf4c7a0f7c0f6b2fe0378c97605373428154.tar.gz |
2003-07-14 Moritz Schulte <moritz@g10code.com>
* cipher.c (gcry_cipher_lookup_func_name): Also check the cipher
name aliases, not just the primary name.
(gcry_cipher_map_name): Remove kludge for aliasing Rijndael to
AES.
* arcfour.c, blowfish.c, cast5.c, des.c, twofish.c: Adjust cipher
specification structures.
* rijndael.c (rijndael_names, rijndael192_names,
rijndael256_names): New variables, use them in the cipher
specifications.
* rmd160test.c: Removed file.
* ac.c, arcfour.c, blowfish.c, cast5.c, cipher.c, des.c, dsa.c,
elgamal.c, md.c, pubkey.c, random.c, rijndael.c, rsa.c, twofish.c:
Used gcry_err* wrappers for libgpg symbols.
* primegen.c (gen_prime): Correct the order arguments to
extra_check.
2003-07-12 Moritz Schulte <moritz@g10code.com>
* ac.c: Replaced all public occurences of gpg_error_t with
gcry_error_t.
* cipher.c: Likewise.
* md.c: Likewise.
* pubkey.c: Likewise.
* random.c: Likewise.
* cipher.c: Added support for TWOFISH128.
Diffstat (limited to 'cipher/dsa.c')
-rw-r--r-- | cipher/dsa.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cipher/dsa.c b/cipher/dsa.c index 970002e9..62fd082a 100644 --- a/cipher/dsa.c +++ b/cipher/dsa.c @@ -356,7 +356,7 @@ verify(gcry_mpi_t r, gcry_mpi_t s, gcry_mpi_t hash, DSA_public_key *pkey ) ************** interface ****************** *********************************************/ -gpg_err_code_t +gcry_err_code_t _gcry_dsa_generate (int algo, unsigned nbits, unsigned long dummy, gcry_mpi_t *skey, gcry_mpi_t **retfactors) { @@ -373,10 +373,10 @@ _gcry_dsa_generate (int algo, unsigned nbits, unsigned long dummy, } -gpg_err_code_t +gcry_err_code_t _gcry_dsa_check_secret_key (int algo, gcry_mpi_t *skey) { - gpg_err_code_t err = GPG_ERR_NO_ERROR; + gcry_err_code_t err = GPG_ERR_NO_ERROR; DSA_secret_key sk; if ((! skey[0]) || (! skey[1]) || (! skey[2]) || (! skey[3]) || (! skey[4])) @@ -396,10 +396,10 @@ _gcry_dsa_check_secret_key (int algo, gcry_mpi_t *skey) } -gpg_err_code_t +gcry_err_code_t _gcry_dsa_sign (int algo, gcry_mpi_t *resarr, gcry_mpi_t data, gcry_mpi_t *skey) { - gpg_err_code_t err = GPG_ERR_NO_ERROR; + gcry_err_code_t err = GPG_ERR_NO_ERROR; DSA_secret_key sk; if ((! data) @@ -420,11 +420,11 @@ _gcry_dsa_sign (int algo, gcry_mpi_t *resarr, gcry_mpi_t data, gcry_mpi_t *skey) return err; } -gpg_err_code_t +gcry_err_code_t _gcry_dsa_verify (int algo, gcry_mpi_t hash, gcry_mpi_t *data, gcry_mpi_t *pkey, int (*cmp) (void *, gcry_mpi_t), void *opaquev) { - gpg_err_code_t err = GPG_ERR_NO_ERROR; + gcry_err_code_t err = GPG_ERR_NO_ERROR; DSA_public_key pk; if ((! data[0]) || (! data[1]) || (! hash) |