mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
43af68d630
commit
95d448b63d
|
@ -118,6 +118,7 @@ void pal_mbed_os_compliance_test_initialize(void)
|
||||||
}
|
}
|
||||||
else if (COMPLIANCE_TEST_ATTESTATION == type_g)
|
else if (COMPLIANCE_TEST_ATTESTATION == type_g)
|
||||||
{
|
{
|
||||||
|
reset_storage_for_compliance_test();
|
||||||
inject_entropy();
|
inject_entropy();
|
||||||
psa_crypto_init();
|
psa_crypto_init();
|
||||||
psa_attestation_inject_key_for_test(); // inject key in case needed
|
psa_attestation_inject_key_for_test(); // inject key in case needed
|
||||||
|
|
Loading…
Reference in New Issue