aes masking bug fix

Signed-off-by: Shelly Liberman <[email protected]>
This commit is contained in:
Shelly Liberman
2020-12-13 18:32:09 +02:00
parent 25d0202ac5
commit 51701bb4af
+1 -1
View File
@@ -1422,7 +1422,7 @@ int mbedtls_internal_aes_encrypt( mbedtls_aes_context *ctx,
#if defined MBEDTLS_AES_128_BIT_MASKED
uint32_t rk_masked[MBEDTLS_AES_128_EXPANDED_KEY_SIZE_IN_WORDS] = {0};
static uint8_t sbox_masked[256] = {0};
uint8_t sbox_masked[256] = {0};
uint32_t mask[10] = {0};
#endif