Skip to content

Commit c377bff

Browse files
committed
Revert "[nrf noup] tests: secure_storage: Fix issues"
This reverts commit fcb4238. We shouldn't have noups to fix things that can and should be fixed elsewhere/differently.
1 parent 577490a commit c377bff

File tree

6 files changed

+2
-19
lines changed

6 files changed

+2
-19
lines changed

tests/subsys/secure_storage/psa/crypto/prj.conf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@ CONFIG_ZTEST=y
22

33
CONFIG_PSA_WANT_KEY_TYPE_AES=y
44
CONFIG_PSA_WANT_ALG_CBC_NO_PADDING=y
5-
6-
# native_sim requires ECB cipher to be enabled
7-
CONFIG_PSA_WANT_ALG_ECB_NO_PADDING=y

tests/subsys/secure_storage/psa/crypto/src/main.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,7 @@ ZTEST(secure_storage_psa_crypto, test_its_caller_isolation)
7676

7777
ret = psa_get_key_attributes(ID, &retrieved_key_attributes);
7878
zassert_equal(ret, PSA_SUCCESS);
79-
zassert_equal(key_attributes.private_bits, retrieved_key_attributes.private_bits);
80-
zassert_equal(key_attributes.private_id, retrieved_key_attributes.private_id);
81-
zassert_equal(key_attributes.private_lifetime, retrieved_key_attributes.private_lifetime);
82-
zassert_mem_equal(&key_attributes.private_policy, &retrieved_key_attributes.private_policy,
83-
sizeof(key_attributes.private_policy));
84-
79+
zassert_mem_equal(&retrieved_key_attributes, &key_attributes, sizeof(key_attributes));
8580
ret = psa_destroy_key(ID);
8681
zassert_equal(ret, PSA_SUCCESS);
8782
ret = psa_get_key_attributes(ID, &retrieved_key_attributes);

tests/subsys/secure_storage/psa/crypto/testcase.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,5 @@ tests:
1010
- nrf54l15dk/nrf54l15/cpuapp
1111
secure_storage.psa.crypto.tfm:
1212
filter: CONFIG_BUILD_WITH_TFM
13-
extra_args:
14-
- CONFIG_TFM_PROFILE_TYPE_MEDIUM=y
15-
- CONFIG_PSA_WANT_GENERATE_RANDOM=y
1613
integration_platforms:
1714
- nrf9151dk/nrf9151/ns

tests/subsys/secure_storage/psa/its/overlay-secure_storage.conf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,3 @@ CONFIG_ZTEST_STACK_SIZE=3072
22
CONFIG_MAIN_STACK_SIZE=2048
33

44
CONFIG_SECURE_STORAGE=y
5-
6-
# native_sim requires ECB cipher to be enabled
7-
CONFIG_PSA_WANT_ALG_ECB_NO_PADDING=y
8-
CONFIG_PSA_WANT_KEY_TYPE_AES=y
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
CONFIG_TFM_ITS_MAX_ASSET_SIZE_OVERRIDE=y
2-
CONFIG_TFM_ITS_MAX_ASSET_SIZE=512
3-
CONFIG_TFM_PROFILE_TYPE_MEDIUM=y
2+
CONFIG_TFM_ITS_MAX_ASSET_SIZE=256
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
CONFIG_ZTEST=y
2-
CONFIG_ZTEST_STACK_SIZE=3072

0 commit comments

Comments
 (0)