summaryrefslogtreecommitdiffstats
path: root/cipher/sha1.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1997-12-19 12:41:47 +0100
committerWerner Koch <wk@gnupg.org>1997-12-19 12:41:47 +0100
commitee8d92fefa5902f97e92856b9c657fb18d0dd93e (patch)
treecf86cf2d45d7dbeb3f8c01a53402435ac1257f88 /cipher/sha1.c
parentadded some stuff for signing keys (diff)
downloadgnupg2-ee8d92fefa5902f97e92856b9c657fb18d0dd93e.tar.xz
gnupg2-ee8d92fefa5902f97e92856b9c657fb18d0dd93e.zip
better prime number generator. improved ELG key generation
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 95d6cc949..afb815e44 100644
--- a/cipher/sha1.c
+++ b/cipher/sha1.c
@@ -139,7 +139,7 @@ transform( SHA1HANDLE hd, byte *data )
D = hd->h3;
E = hd->h4;
- #ifdef HAVE_BIG_ENDIAN
+ #ifdef BIG_ENDIAN_HOST
memcpy( eData, data, 64 );
#else
{ int i;
@@ -379,7 +379,7 @@ sha1_final(SHA1HANDLE hd)
transform( hd, hd->buffer );
p = hd->buffer;
- #ifdef HAVE_BIG_ENDIAN
+ #ifdef BIG_ENDIAN_HOST
#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; \