From 3210a70fc0901be76b5d6623f97625e1b8d05d92 Mon Sep 17 00:00:00 2001 From: Moritz Schulte Date: Tue, 17 Jun 2003 17:38:48 +0000 Subject: 2003-06-17 Moritz Schulte * 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 * 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. --- cipher/md4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cipher/md4.c') diff --git a/cipher/md4.c b/cipher/md4.c index db992aad..bf4f104e 100644 --- a/cipher/md4.c +++ b/cipher/md4.c @@ -98,7 +98,7 @@ transform( MD4_CONTEXT *ctx, byte *data ) register u32 C = ctx->C; register u32 D = ctx->D; -#ifdef BIG_ENDIAN_HOST +#ifdef WORDS_BIGENDIAN { int i; byte *p2, *p1; for(i=0, p1=data, p2=(byte*)in; i < 16; i++, p2 += 4 ) { @@ -278,7 +278,7 @@ md4_final( void *context ) _gcry_burn_stack (80+6*sizeof(void*)); p = hd->buf; -#ifdef BIG_ENDIAN_HOST +#ifdef WORDS_BIGENDIAN #define X(a) do { *p++ = hd->a ; *p++ = hd->a >> 8; \ *p++ = hd->a >> 16; *p++ = hd->a >> 24; } while(0) #else /* little endian */ -- cgit v1.2.1