1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-09-21 15:01:41 +02:00

Fix idea.c for big endian CPUs.

* cipher/idea.c: Replace use of WORDS_BIGENDIAN by BIG_ENDIAN_HOST.
--
GnuPG-bug-id: 1461
This commit is contained in:
Werner Koch 2013-01-11 15:10:38 +01:00
parent ff5cfadc2c
commit 37f1a42744

View File

@ -201,7 +201,7 @@ cipher( byte *outbuf, const byte *inbuf, u16 *key )
x2 = *in++;
x3 = *in++;
x4 = *in;
#ifndef WORDS_BIGENDIAN
#ifndef BIG_ENDIAN_HOST
x1 = (x1>>8) | (x1<<8);
x2 = (x2>>8) | (x2<<8);
x3 = (x3>>8) | (x3<<8);
@ -234,7 +234,7 @@ cipher( byte *outbuf, const byte *inbuf, u16 *key )
MUL(x4, *key);
out = (u16*)outbuf;
#ifndef WORDS_BIGENDIAN
#ifndef BIG_ENDIAN_HOST
*out++ = (x1>>8) | (x1<<8);
*out++ = (x3>>8) | (x3<<8);
*out++ = (x2>>8) | (x2<<8);