tests: secure_storage: psa: enable malloc arena for Mbed TLS
The PSA Crypto implementation provided by Mbed TLS generally requires some amount of heap to function, so enable the arena unconditionally to make the test compatible with MINIMAL_LIBC configurations where the arena is disabled by default. Signed-off-by: Ilya Tagunov <Ilya.Tagunov@synopsys.com>
This commit is contained in:
parent
b7ffb3d59d
commit
065bd32220
2 changed files with 4 additions and 0 deletions
|
@ -4,6 +4,8 @@ CONFIG_MAIN_STACK_SIZE=2048
|
|||
CONFIG_MBEDTLS=y
|
||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||
CONFIG_TIMER_RANDOM_GENERATOR=y
|
||||
# PSA Crypto needs some heap, but MINIMAL_LIBC has none by default.
|
||||
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=2048
|
||||
CONFIG_MBEDTLS_PSA_CRYPTO_C=y
|
||||
|
||||
CONFIG_SECURE_STORAGE=y
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
CONFIG_MBEDTLS=y
|
||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||
CONFIG_TIMER_RANDOM_GENERATOR=y
|
||||
# PSA Crypto needs some heap, but MINIMAL_LIBC has none by default.
|
||||
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=2048
|
||||
CONFIG_MBEDTLS_PSA_CRYPTO_C=y
|
||||
|
||||
# SETTINGS_MAX_VAL_LEN (256) - flags (1) - CONFIG_SECURE_STORAGE_ITS_TRANSFORM_OUTPUT_OVERHEAD (28)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue