Skip to content

Commit eb48d3c

Browse files
author
Oren Cohen
committed
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
1 parent 6bb0894 commit eb48d3c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

TESTS/psa/entropy_inject/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ utest::v1::status_t greentea_test_setup(const size_t number_of_cases)
102102
seed[i] = i;
103103
}
104104

105+
psa_status_t status = mbed_psa_reboot_and_request_new_security_state(PSA_LIFECYCLE_ASSEMBLY_AND_TEST);
106+
TEST_ASSERT_EQUAL(PSA_SUCCESS, status);
107+
105108
if (mbedtls_psa_inject_entropy(seed, MBEDTLS_ENTROPY_MAX_SEED_SIZE) == PSA_ERROR_NOT_SUPPORTED) {
106109
skip_tests = true;
107110
}

0 commit comments

Comments
 (0)