diff options
author | Moritz Schulte <mo@g10code.com> | 2003-06-17 17:38:48 +0000 |
---|---|---|
committer | Moritz Schulte <mo@g10code.com> | 2003-06-17 17:38:48 +0000 |
commit | 3210a70fc0901be76b5d6623f97625e1b8d05d92 (patch) | |
tree | 5432cf388c4fbd528998347b87b1749c1f1646ee /cipher/blowfish.c | |
parent | b893cd39daa7b79bb2bc785cdefeb600224f0ba4 (diff) | |
download | libgcrypt-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/blowfish.c')
-rw-r--r-- | cipher/blowfish.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cipher/blowfish.c b/cipher/blowfish.c index 97cc1220..59ac9001 100644 --- a/cipher/blowfish.c +++ b/cipher/blowfish.c @@ -248,7 +248,7 @@ function_F( BLOWFISH_context *bc, u32 x ) { u16 a, b, c, d; -#ifdef BIG_ENDIAN_HOST +#ifdef WORDS_BIGENDIAN a = ((byte*)&x)[0]; b = ((byte*)&x)[1]; c = ((byte*)&x)[2]; @@ -264,7 +264,7 @@ function_F( BLOWFISH_context *bc, u32 x ) } #endif -#ifdef BIG_ENDIAN_HOST +#ifdef WORDS_BIGENDIAN #define F(x) ((( s0[((byte*)&x)[0]] + s1[((byte*)&x)[1]]) \ ^ s2[((byte*)&x)[2]]) + s3[((byte*)&x)[3]] ) #else @@ -517,7 +517,7 @@ do_bf_setkey (BLOWFISH_context *c, const byte *key, unsigned keylen) } for(i=j=0; i < BLOWFISH_ROUNDS+2; i++ ) { -#ifdef BIG_ENDIAN_HOST +#ifdef WORDS_BIGENDIAN ((byte*)&data)[0] = key[j]; ((byte*)&data)[1] = key[(j+1)%keylen]; ((byte*)&data)[2] = key[(j+2)%keylen]; |