Lines Matching refs:handle
230 psa_key_handle_t handle = PSA_KEY_HANDLE_INIT;
280 PSA_ASSERT(psa_open_key(id, &handle));
281 TEST_ASSERT(!psa_key_handle_is_null(handle));
282 PSA_ASSERT(psa_get_key_attributes(handle, &attributes));
313 PSA_ASSERT(psa_open_key(id, &handle));
341 PSA_ASSERT(psa_close_key(handle));
347 * Test that the key handle and identifier are now not referring to an
350 TEST_EQUAL(psa_get_key_attributes(handle, &read_attributes),
352 TEST_EQUAL(psa_close_key(handle), PSA_ERROR_INVALID_HANDLE);
451 psa_key_handle_t handle = mbedtls_svc_key_id_make(0xdead, 0xdead);
455 TEST_EQUAL(psa_open_key(id, &handle), expected_status);
456 TEST_ASSERT(psa_key_handle_is_null(handle));
754 /* Allocate a handle and store a key in it. */
763 /* Construct an invalid handle as specified in the test case data. */
795 TEST_FAIL("unknown handle construction");
798 /* Attempt to use the invalid handle. */
804 /* After all this, check that the original handle is intact. */