]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Fix for big-endian support.
authorNiels Möller <nisse@lysator.liu.se>
Tue, 16 Apr 2013 14:06:49 +0000 (16:06 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 16 Apr 2013 14:06:49 +0000 (16:06 +0200)
ChangeLog
umac-set-key.c

index c979cce26faabed2d938ca82e70bde93971b7220..f28281569752b156481223f13e017b93ff2ea402 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2013-04-16  Niels Möller  <nisse@lysator.liu.se>
 
+       * 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.
index 05dcf697879adacf4a7fb8fb96daa2b28c1dd55e..1b9e5e9b13b8eaf556aed7869618adb3605bed40 100644 (file)
@@ -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) |            \