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.
This commit is contained in:
John Safranek
2022-10-18 10:51:51 -07:00
parent b7c4ddba72
commit 353a8a0275

View File

@@ -4691,6 +4691,7 @@ static void GenerateM0(Aes* aes)
#elif defined(GCM_TABLE_4BIT) #elif defined(GCM_TABLE_4BIT)
#if !defined(BIG_ENDIAN_ORDER) && !defined(WC_16BIT_CPU)
static WC_INLINE void Shift4_M0(byte *r8, byte* z8) static WC_INLINE void Shift4_M0(byte *r8, byte* z8)
{ {
int i; 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[i] = (z8[i-1] << 4) | (z8[i] >> 4);
r8[0] = z8[0] >> 4; r8[0] = z8[0] >> 4;
} }
#endif
static void GenerateM0(Aes* aes) static void GenerateM0(Aes* aes)
{ {