From 51701bb4affed95ea876b083f9185f4c842f076f Mon Sep 17 00:00:00 2001 From: Shelly Liberman Date: Sun, 13 Dec 2020 18:30:42 +0200 Subject: [PATCH] aes masking bug fix Signed-off-by: Shelly Liberman --- library/aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/aes.c b/library/aes.c index 8fa680fcb..50f970227 100644 --- a/library/aes.c +++ b/library/aes.c @@ -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