commit | 3ac21aca9b7afbbba2881844856b2e7421e76f0d | [log] [tgz] |
---|---|---|
author | Hanno Becker <hanno.becker@arm.com> | Fri Oct 26 09:13:26 2018 +0100 |
committer | Gilles Peskine <Gilles.Peskine@arm.com> | Wed Apr 24 10:52:45 2019 +0200 |
tree | c650064d4b06b22e1734d6d442554ada508fe793 | |
parent | ee60034a60d944d6abfa3a5f8a6767528040a2e1 [diff] [blame] |
Add further missing brackets around macro parameters
diff --git a/library/aes.c b/library/aes.c index b2e346e..aff0a99 100644 --- a/library/aes.c +++ b/library/aes.c
@@ -397,7 +397,7 @@ */ #define ROTL8(x) ( ( (x) << 8 ) & 0xFFFFFFFF ) | ( (x) >> 24 ) #define XTIME(x) ( ( (x) << 1 ) ^ ( ( (x) & 0x80 ) ? 0x1B : 0x00 ) ) -#define MUL(x,y) ( ( (x) && (y) ) ? pow[(log[x]+log[y]) % 255] : 0 ) +#define MUL(x,y) ( ( (x) && (y) ) ? pow[(log[(x)]+log[(y)]) % 255] : 0 ) static int aes_init_done = 0;