summaryrefslogtreecommitdiffstats
path: root/cipher/gost.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/gost.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/gost.c')
-rw-r--r--cipher/gost.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cipher/gost.c b/cipher/gost.c
index 21b63cbc9..b890bc5e1 100644
--- a/cipher/gost.c
+++ b/cipher/gost.c
@@ -153,7 +153,7 @@ cipher( byte *inbuf, byte *outbuf, u16 *key )
x2 = *in++;
x3 = *in++;
x4 = *in;
- #ifdef HAVE_LITTLE_ENDIAN
+ #ifdef LITTLE_ENDIAN_HOST
x1 = (x1>>8) | (x1<<8);
x2 = (x2>>8) | (x2<<8);
x3 = (x3>>8) | (x3<<8);
@@ -186,7 +186,7 @@ cipher( byte *inbuf, byte *outbuf, u16 *key )
MUL(x4, *key);
out = (u16*)outbuf;
- #ifdef HAVE_LITTLE_ENDIAN
+ #ifdef LITTLE_ENDIAN_HOST
*out++ = (x1>>8) | (x1<<8);
*out++ = (x3>>8) | (x3<<8);
*out++ = (x2>>8) | (x2<<8);