summaryrefslogtreecommitdiff
path: root/cipher/md.c
diff options
context:
space:
mode:
authorMoritz Schulte <mo@g10code.com>2003-06-17 17:38:48 +0000
committerMoritz Schulte <mo@g10code.com>2003-06-17 17:38:48 +0000
commit3210a70fc0901be76b5d6623f97625e1b8d05d92 (patch)
tree5432cf388c4fbd528998347b87b1749c1f1646ee /cipher/md.c
parentb893cd39daa7b79bb2bc785cdefeb600224f0ba4 (diff)
downloadlibgcrypt-3210a70fc0901be76b5d6623f97625e1b8d05d92.tar.gz
2003-06-17 Moritz Schulte <moritz@g10code.com>
* md.c (md_open): Use _gcry_fast_random_poll instead of fast_random_poll. * cipher.c (gcry_cipher_open): Likewise. * random.h (fast_random_poll): Removed macro. * blowfish.c, md4.c, md5.c, rmd160.c, sha1.c, sha256.c, sha512.c, tiger.c: Use Autoconf's WORDS_BIGENDIAN instead of our own BIG_ENDIAN_HOST. 2003-06-16 Moritz Schulte <moritz@g10code.com> * random.c (getfnc_gather_random): Do not special-case USE_ALL_RANDOM_MODULES, make it the default. * dsa.c: Replace last occurences of old type names with newer names (i.e. replace MPI with gcry_mpi_t). * elgamal.c: Likewise. * primegen.c: Likewise. * pubkey.c: Likewise. * rsa.c: Likewise.
Diffstat (limited to 'cipher/md.c')
-rw-r--r--cipher/md.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cipher/md.c b/cipher/md.c
index 78f4b4ef..4ee87542 100644
--- a/cipher/md.c
+++ b/cipher/md.c
@@ -86,7 +86,7 @@ static struct
#if USE_SHA256
{ &digest_spec_sha256, 0 },
#endif
-#if USE_SHA256
+#if USE_SHA512
{ &digest_spec_sha512, 0 },
{ &digest_spec_sha384, 0 },
#endif
@@ -441,7 +441,7 @@ md_open (gcry_md_hd_t *h, int algo, int secure, int hmac)
if (! err)
{
/* FIXME: should we really do that? */
- fast_random_poll ();
+ _gcry_fast_random_poll ();
if (algo)
{