Merge pull request #3956 from shelib01/aes_masking_fix

AES masking bug fix
This commit is contained in:
Andrzej Kurek 2020-12-14 09:37:12 +01:00 committed by GitHub
commit cee7ee86af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1422,7 +1422,7 @@ int mbedtls_internal_aes_encrypt( mbedtls_aes_context *ctx,
#if defined MBEDTLS_AES_128_BIT_MASKED #if defined MBEDTLS_AES_128_BIT_MASKED
uint32_t rk_masked[MBEDTLS_AES_128_EXPANDED_KEY_SIZE_IN_WORDS] = {0}; 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}; uint32_t mask[10] = {0};
#endif #endif