attestation: Erase storage before test

Be robust when keys can't be opened for deletion by erasing storage and
thereby all keys.
pull/11315/head
Jaeden Amero 2019-08-29 12:13:37 +01:00 committed by Darryl Green
parent 43af68d630
commit 95d448b63d
1 changed files with 1 additions and 0 deletions

View File

@ -118,6 +118,7 @@ void pal_mbed_os_compliance_test_initialize(void)
}
else if (COMPLIANCE_TEST_ATTESTATION == type_g)
{
reset_storage_for_compliance_test();
inject_entropy();
psa_crypto_init();
psa_attestation_inject_key_for_test(); // inject key in case needed