From: Niels Möller Date: Tue, 16 Apr 2013 14:06:49 +0000 (+0200) Subject: Fix for big-endian support. X-Git-Tag: nettle_2.7_release_20130424~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d1439b6e781bb112a16e87446f74568c86228b0;p=thirdparty%2Fnettle.git Fix for big-endian support. --- diff --git a/ChangeLog b/ChangeLog index c979cce2..f2828156 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2013-04-16 Niels Möller + * umac-set-key.c (BE_SWAP32_N): Fixed dummy definition used for + big-endian systems. + * Makefile.in (TARGETS): Deleted eccdata, it should be build only when public key support is enabled. (clean-here): Exlicitly list it here. diff --git a/umac-set-key.c b/umac-set-key.c index 05dcf697..1b9e5e9b 100644 --- a/umac-set-key.c +++ b/umac-set-key.c @@ -53,7 +53,7 @@ umac_kdf (struct aes_ctx *aes, unsigned index, unsigned length, uint8_t *dst) #if WORDS_BIGENDIAN #define BE_SWAP32(x) x -#define BE_SWAP32_N(x) +#define BE_SWAP32_N(n, x) #else #define BE_SWAP32(x) \ ((ROTL32(8, x) & 0x00FF00FFUL) | \