Skip to content

Commit 8fc65f9

Browse files
juhaylinenanangl
authored andcommitted
[nrf noup] samples: psa: Fix issues
Set CONFIG_TFM_PROFILE_TYPE_MEDIUM for boards with TF-M to enable ITS and PS. Enable CONFIG_PSA_WANT_GENERATE_RANDOM to fix persistent_key sample. native_sim requires ECB cipher to be enabled. Signed-off-by: Juha Ylinen <[email protected]>
1 parent ff1f02e commit 8fc65f9

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

samples/psa/its/overlay-secure_storage.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
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_ALG_ECB_NO_PADDING=y
8+
69
# The default stack size (1024) is not enough for the PSA Crypto core.
710
# On top of that, the ITS implementation uses the stack for buffers.
811
CONFIG_MAIN_STACK_SIZE=3072

samples/psa/its/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ common:
1313
tests:
1414
sample.psa.its.tfm:
1515
filter: CONFIG_BUILD_WITH_TFM
16+
extra_args:
17+
- CONFIG_TFM_PROFILE_TYPE_MEDIUM=y
1618
tags:
1719
- trusted-firmware-m
1820
sample.psa.its.secure_storage.entropy_driver:

samples/psa/persistent_key/overlay-secure_storage.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
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_ALG_ECB_NO_PADDING=y
8+
69
# The default stack size (1024) is not enough for the PSA Crypto core.
710
# On top of that, the ITS implementation uses the stack for buffers.
811
CONFIG_MAIN_STACK_SIZE=3072

samples/psa/persistent_key/sample.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ common:
1313
tests:
1414
sample.psa.persistent_key.tfm:
1515
filter: CONFIG_BUILD_WITH_TFM
16+
extra_args:
17+
- CONFIG_TFM_PROFILE_TYPE_MEDIUM=y
18+
- CONFIG_PSA_WANT_GENERATE_RANDOM=y
1619
tags:
1720
- trusted-firmware-m
1821
sample.psa.persistent_key.secure_storage.entropy_driver:

0 commit comments

Comments
 (0)