@@ -279,6 +279,10 @@ static struct xmalloc_slot xmalloc_pool[] = {
279279 defined(WOLFBOOT_SIGN_RSA3072)
280280
281281static uint32_t sha_block [HASH_BLOCK_SIZE ];
282+
283+ #define ASNCHECK_BUF_SIZE (224)
284+ static uint8_t asncheck_buf [ASNCHECK_BUF_SIZE ];
285+
282286#ifndef USE_FAST_MATH
283287 #ifdef WOLFBOOT_SIGN_RSA2048
284288 #define MP_SCHEME "SP RSA2048"
@@ -315,6 +319,7 @@ static uint32_t sha_block[HASH_BLOCK_SIZE];
315319 #if defined(WOLFBOOT_HASH_SHA256 ) || defined(WOLFBOOT_HASH_SHA384 )
316320 { (uint8_t * )sha_block , HASH_BLOCK_SIZE * sizeof (uint32_t ), 0 },
317321 #endif
322+ { asncheck_buf , ASNCHECK_BUF_SIZE , 0 },
318323 { mp_digit_buf0 , MPDIGIT_BUF0_SIZE , 0 },
319324 #ifndef WOLFSSL_SP_ARM_CORTEX_M_ASM
320325 { mp_digit_buf1 , MPDIGIT_BUF1_SIZE , 0 },
@@ -335,6 +340,7 @@ static uint32_t sha_block[HASH_BLOCK_SIZE];
335340 #if defined(WOLFBOOT_HASH_SHA256 ) || defined(WOLFBOOT_HASH_SHA384 )
336341 { (uint8_t * )sha_block , HASH_BLOCK_SIZE * sizeof (uint32_t ), 0 },
337342 #endif
343+ { asncheck_buf , ASNCHECK_BUF_SIZE , 0 },
338344 { mp_int_buffer0 , MP_INT_TYPE_SIZE , 0 },
339345 { mp_int_buffer1 , MP_INT_TYPE_SIZE * 3 , 0 },
340346 { mp_int_buffer2 , MP_INT_TYPE_SIZE , 0 },
0 commit comments