Skip to content

Commit a9a6e4e

Browse files
committed
[nrf noup] samples: psa: Fix issues with native_sim
native_sim requires ECB cipher to be enabled. Signed-off-by: Juha Ylinen <[email protected]>
1 parent e04668d commit a9a6e4e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

samples/psa/its/overlay-secure_storage.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
CONFIG_MBEDTLS=y
44
CONFIG_MBEDTLS_PSA_CRYPTO_C=y
55

6+
# native_sim requires ECB cipher to be enabled
7+
CONFIG_PSA_WANT_KEY_TYPE_AES=y
8+
CONFIG_PSA_WANT_ALG_ECB_NO_PADDING=y
9+
610
# The default stack size (1024) is not enough for the PSA Crypto core.
711
# On top of that, the ITS implementation uses the stack for buffers.
812
CONFIG_MAIN_STACK_SIZE=3072

samples/psa/persistent_key/overlay-secure_storage.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
CONFIG_MBEDTLS=y
44
CONFIG_MBEDTLS_PSA_CRYPTO_C=y
55

6+
# native_sim requires ECB cipher to be enabled
7+
CONFIG_PSA_WANT_KEY_TYPE_AES=y
8+
CONFIG_PSA_WANT_ALG_ECB_NO_PADDING=y
9+
610
# The default stack size (1024) is not enough for the PSA Crypto core.
711
# On top of that, the ITS implementation uses the stack for buffers.
812
CONFIG_MAIN_STACK_SIZE=3072

0 commit comments

Comments
 (0)