Skip to content

Commit 8e73b72

Browse files
committed
attestation: Erase storage before test
Be robust when keys can't be opened for deletion by erasing storage and thereby all keys.
1 parent 89ce891 commit 8e73b72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

features/frameworks/TARGET_PSA/pal/pal_mbed_os_intf.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ void pal_mbed_os_compliance_test_initialize(void)
118118
}
119119
else if (COMPLIANCE_TEST_ATTESTATION == type_g)
120120
{
121+
reset_storage_for_compliance_test();
121122
inject_entropy();
122123
psa_crypto_init();
123124
psa_attestation_inject_key_for_test(); // inject key in case needed

0 commit comments

Comments
 (0)