summaryrefslogtreecommitdiff
path: root/cipher/sha1.c
diff options
context:
space:
mode:
Diffstat (limited to 'cipher/sha1.c')
-rw-r--r--cipher/sha1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cipher/sha1.c b/cipher/sha1.c
index bc284c42..64f56fb7 100644
--- a/cipher/sha1.c
+++ b/cipher/sha1.c
@@ -77,7 +77,7 @@ transform( SHA1_CONTEXT *hd, byte *data )
d = hd->h3;
e = hd->h4;
-#ifdef BIG_ENDIAN_HOST
+#ifdef WORDS_BIGENDIAN
memcpy( x, data, 64 );
#else
{ int i;
@@ -293,7 +293,7 @@ sha1_final(void *context)
_gcry_burn_stack (88+4*sizeof(void*));
p = hd->buf;
-#ifdef BIG_ENDIAN_HOST
+#ifdef WORDS_BIGENDIAN
#define X(a) do { *(u32*)p = hd->h##a ; p += 4; } while(0)
#else /* little endian */
#define X(a) do { *p++ = hd->h##a >> 24; *p++ = hd->h##a >> 16; \