Lines Matching refs:keys
18 /**< Terminate and reinitialize without closing/destroying keys */
54 /* Closing the key invalidate only volatile keys, not persistent ones. */
63 /* Purging the key just purges RAM data of persistent keys. */
88 /* All keys must have been closed. */
92 /* Some keys may remain behind, and we're testing that this
823 mbedtls_svc_key_id_t *keys = NULL;
831 ASSERT_ALLOC( keys, max_keys );
842 &keys[i] );
846 TEST_ASSERT( ! mbedtls_svc_key_id_is_null( keys[i] ) );
848 TEST_ASSERT( ! mbedtls_svc_key_id_equal( keys[i], keys[j] ) );
854 PSA_ASSERT( psa_close_key( keys[i - 1] ) );
855 PSA_ASSERT( psa_export_key( keys[i],
861 PSA_ASSERT( psa_close_key( keys[i - 1] ) );
865 mbedtls_free( keys );
886 * Create MBEDTLS_PSA_KEY_SLOT_COUNT persistent keys.
900 * one of the descriptions of the previously created persistent keys
919 * Check that we can export all ( MBEDTLS_PSA_KEY_SLOT_COUNT + 1 ) keys,
956 mbedtls_svc_key_id_t *keys = NULL;
960 ASSERT_ALLOC( keys, MBEDTLS_PSA_KEY_SLOT_COUNT );
980 * Create MBEDTLS_PSA_KEY_SLOT_COUNT volatile keys
987 &keys[i]) );
993 * occupied by volatile keys and the implementation needs to load the
1003 PSA_ASSERT( psa_export_key( keys[MBEDTLS_PSA_KEY_SLOT_COUNT - 1],
1008 PSA_ASSERT( psa_destroy_key( keys[MBEDTLS_PSA_KEY_SLOT_COUNT - 1] ) );
1019 * by the persistent key and the volatile keys and the slot containing the
1028 * Check we can export the remaining volatile keys and that they have the
1033 PSA_ASSERT( psa_export_key( keys[i],
1038 PSA_ASSERT( psa_destroy_key( keys[i] ) );
1059 mbedtls_free( keys );