mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 19:54:40 +02:00
Merge pull request #3045 from SparkiDev/aes_small_fix
AES small table fix
This commit is contained in:
@@ -1561,6 +1561,7 @@ static word32 col_mul(word32 t, int i2, int i3, int ia, int ib)
|
|||||||
return GETBYTE(t, ia) ^ GETBYTE(t, ib) ^ t3 ^ tm;
|
return GETBYTE(t, ia) ^ GETBYTE(t, ib) ^ t3 ^ tm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(HAVE_AES_CBC) || defined(WOLFSSL_AES_DIRECT)
|
||||||
static word32 inv_col_mul(word32 t, int i9, int ib, int id, int ie)
|
static word32 inv_col_mul(word32 t, int i9, int ib, int id, int ie)
|
||||||
{
|
{
|
||||||
byte t9 = GETBYTE(t, i9);
|
byte t9 = GETBYTE(t, i9);
|
||||||
@@ -1571,8 +1572,10 @@ static word32 inv_col_mul(word32 t, int i9, int ib, int id, int ie)
|
|||||||
return t0 ^ AES_XTIME(AES_XTIME(AES_XTIME(t0 ^ te) ^ td ^ te) ^ tb ^ te);
|
return t0 ^ AES_XTIME(AES_XTIME(AES_XTIME(t0 ^ te) ^ td ^ te) ^ tb ^ te);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_AES_CBC) || defined(WOLFSSL_AES_DIRECT) || defined(HAVE_AESGCM)
|
#if defined(HAVE_AES_CBC) || defined(WOLFSSL_AES_DIRECT) || \
|
||||||
|
defined(HAVE_AESCCM) || defined(HAVE_AESGCM)
|
||||||
|
|
||||||
#ifndef WC_CACHE_LINE_SZ
|
#ifndef WC_CACHE_LINE_SZ
|
||||||
#if defined(__x86_64__) || defined(_M_X64) || \
|
#if defined(__x86_64__) || defined(_M_X64) || \
|
||||||
|
Reference in New Issue
Block a user