diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-04-23 17:55:39 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-04-23 17:55:39 +0200 |
commit | ecee9421906bb817b054331559aadef444770d36 (patch) | |
tree | bd07abfb807f75f3cdc6f40a7251995744b19e9f | |
parent | 8a5346ba2f7ed7b4e69d32397b99d11c14694a2a (diff) |
WIP.. extend the value to 32bit before shifting, proposed by tntzecke/aes-ubsan
-rw-r--r-- | src/gsm/milenage/aes_i.h | 2 |
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) { |