summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2013-04-16 16:06:49 +0200
committerNiels Möller <nisse@lysator.liu.se>2013-04-16 16:06:49 +0200
commit2d1439b6e781bb112a16e87446f74568c86228b0 (patch)
tree3daef36be7ef862b269f7007a3bb5c88cdfc81ac
parentf5ad511ccc348a36db58a2b8a69b1abdd7081f19 (diff)
downloadnettle-2d1439b6e781bb112a16e87446f74568c86228b0.tar.gz
Fix for big-endian support.
-rw-r--r--ChangeLog3
-rw-r--r--umac-set-key.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c979cce2..f2828156 100644
--- 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.
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) | \