From 353a8a02755049d0e32bfde16b81e08cee044edf Mon Sep 17 00:00:00 2001 From: John Safranek Date: Tue, 18 Oct 2022 10:51:51 -0700 Subject: [PATCH] Inline Function Guard Fixed an inline function aes.c that was included, but never used. Added similar preprocessor guard around it as when it is used. --- wolfcrypt/src/aes.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wolfcrypt/src/aes.c b/wolfcrypt/src/aes.c index 8cf8d7184..ddcc9a9f6 100644 --- a/wolfcrypt/src/aes.c +++ b/wolfcrypt/src/aes.c @@ -4691,6 +4691,7 @@ static void GenerateM0(Aes* aes) #elif defined(GCM_TABLE_4BIT) +#if !defined(BIG_ENDIAN_ORDER) && !defined(WC_16BIT_CPU) static WC_INLINE void Shift4_M0(byte *r8, byte* z8) { int i; @@ -4698,6 +4699,7 @@ static WC_INLINE void Shift4_M0(byte *r8, byte* z8) r8[i] = (z8[i-1] << 4) | (z8[i] >> 4); r8[0] = z8[0] >> 4; } +#endif static void GenerateM0(Aes* aes) {