]> git.sur5r.net Git - openldap/commitdiff
Have code use <sys/types.h> BYTE_ORDER as before.
authorKurt Zeilenga <kurt@openldap.org>
Wed, 21 Oct 1998 01:23:00 +0000 (01:23 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 21 Oct 1998 01:23:00 +0000 (01:23 +0000)
libraries/liblutil/sha1.c

index 1104cec70993e7f1c1bdccf04db38f1340074cb9..833317d70878068cc25a0da2eae78d1a3a8eefac 100644 (file)
  * 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))