Clear ITS environment in psa entropy tests

mbed_psa_reboot_and_request_new_security_state() API replaced its_reset() which is now a secure API only

This change is necessary for a clean environment for the test
pull/9701/head
Oren Cohen 2019-02-13 14:21:17 +02:00
parent 6bb0894c47
commit eb48d3cbeb
1 changed files with 3 additions and 0 deletions

View File

@ -102,6 +102,9 @@ utest::v1::status_t greentea_test_setup(const size_t number_of_cases)
seed[i] = i; seed[i] = i;
} }
psa_status_t status = mbed_psa_reboot_and_request_new_security_state(PSA_LIFECYCLE_ASSEMBLY_AND_TEST);
TEST_ASSERT_EQUAL(PSA_SUCCESS, status);
if (mbedtls_psa_inject_entropy(seed, MBEDTLS_ENTROPY_MAX_SEED_SIZE) == PSA_ERROR_NOT_SUPPORTED) { if (mbedtls_psa_inject_entropy(seed, MBEDTLS_ENTROPY_MAX_SEED_SIZE) == PSA_ERROR_NOT_SUPPORTED) {
skip_tests = true; skip_tests = true;
} }