aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-04-23 17:55:39 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-04-23 17:55:39 +0200
commitecee9421906bb817b054331559aadef444770d36 (patch)
treebd07abfb807f75f3cdc6f40a7251995744b19e9f
parent8a5346ba2f7ed7b4e69d32397b99d11c14694a2a (diff)
WIP.. extend the value to 32bit before shifting, proposed by tntzecke/aes-ubsan
-rw-r--r--src/gsm/milenage/aes_i.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsm/milenage/aes_i.h b/src/gsm/milenage/aes_i.h
index c8317575..5d89abce 100644
--- a/src/gsm/milenage/aes_i.h
+++ b/src/gsm/milenage/aes_i.h
@@ -66,7 +66,7 @@ extern const u8 rcons[10];
#else /* AES_SMALL_TABLES */
-#define RCON(i) (rcons[(i)] << 24)
+#define RCON(i) ((u32)rcons[(i)] << 24)
static inline u32 rotr(u32 val, int bits)
{