From c7fe14a9160424bd1f01c3d8b1c34ec624041137 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 21 Oct 1998 01:23:00 +0000 Subject: [PATCH] Have code use BYTE_ORDER as before. --- libraries/liblutil/sha1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/liblutil/sha1.c b/libraries/liblutil/sha1.c index 1104cec709..833317d708 100644 --- a/libraries/liblutil/sha1.c +++ b/libraries/liblutil/sha1.c @@ -35,12 +35,12 @@ * blk0() and blk() perform the initial expand. * I got the idea of expanding during the round function from SSLeay */ -#if WORDS_BIGENDIAN -# define blk0(i) block->l[i] -#else +#if BYTE_ORDER = LITTLE_ENDIAN # define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \ |(rol(block->l[i],8)&0x00FF00FF)) #endif +#else +# define blk0(i) block->l[i] #define blk(i) (block->l[i&15] = rol(block->l[(i+13)&15]^block->l[(i+8)&15] \ ^block->l[(i+2)&15]^block->l[i&15],1)) -- 2.39.5