From ecee9421906bb817b054331559aadef444770d36 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 23 Apr 2016 17:55:39 +0200 Subject: WIP.. extend the value to 32bit before shifting, proposed by tnt --- src/gsm/milenage/aes_i.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3