From 95d448b63d1993b4eb32b2843966d59512259de3 Mon Sep 17 00:00:00 2001 From: Jaeden Amero Date: Thu, 29 Aug 2019 12:13:37 +0100 Subject: [PATCH] attestation: Erase storage before test Be robust when keys can't be opened for deletion by erasing storage and thereby all keys. --- features/frameworks/TARGET_PSA/pal/pal_mbed_os_intf.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/features/frameworks/TARGET_PSA/pal/pal_mbed_os_intf.cpp b/features/frameworks/TARGET_PSA/pal/pal_mbed_os_intf.cpp index 807802ab31..f125d1be5e 100644 --- a/features/frameworks/TARGET_PSA/pal/pal_mbed_os_intf.cpp +++ b/features/frameworks/TARGET_PSA/pal/pal_mbed_os_intf.cpp @@ -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