summaryrefslogtreecommitdiff
path: root/cipher/primegen.c
diff options
context:
space:
mode:
authorMoritz Schulte <mo@g10code.com>2003-07-14 22:36:44 +0000
committerMoritz Schulte <mo@g10code.com>2003-07-14 22:36:44 +0000
commita66dbf4c7a0f7c0f6b2fe0378c97605373428154 (patch)
treeb833792b11097a48fbabed172ce981c57460ce9c /cipher/primegen.c
parent88920837676bf80c371ff950670fb2fa7bf58b24 (diff)
downloadlibgcrypt-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/primegen.c')
-rw-r--r--cipher/primegen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher/primegen.c b/cipher/primegen.c
index 34361e3e..751f49ac 100644
--- a/cipher/primegen.c
+++ b/cipher/primegen.c
@@ -456,7 +456,7 @@ gen_prime (unsigned int nbits, int secret, int randomlevel,
break; /* stop loop, continue with a new prime */
}
- if (extra_check && extra_check (ptest, extra_check_arg))
+ if (extra_check && extra_check (extra_check_arg, ptest))
{ /* The extra check told us that this prime is
not of the caller's taste. */
progress ('/');