diff --git a/components/TARGET_PSA/TESTS/compliance_crypto/test_c043/test_c043.c b/components/TARGET_PSA/TESTS/compliance_crypto/test_c043/test_c043.c index 2d66574675..a82a3ab454 100644 --- a/components/TARGET_PSA/TESTS/compliance_crypto/test_c043/test_c043.c +++ b/components/TARGET_PSA/TESTS/compliance_crypto/test_c043/test_c043.c @@ -108,6 +108,10 @@ int32_t psa_key_agreement_test(security_t caller) /* Abort a generator */ status = val->crypto_function(VAL_CRYPTO_GENERATOR_ABORT, &generator); TEST_ASSERT_EQUAL(status, PSA_SUCCESS, TEST_CHECKPOINT_NUM(12)); + + /* Destroy a key and restore the slot to its default state */ + status = val->crypto_function(VAL_CRYPTO_DESTROY_KEY, check1[i].key_handle); + TEST_ASSERT_EQUAL(status, PSA_SUCCESS, TEST_CHECKPOINT_NUM(13)); } return VAL_STATUS_SUCCESS;