Home
last modified time | relevance | path

Searched refs:slot_number (Results 1 – 17 of 17) sorted by relevance

/third_party/mbedtls/tests/suites/
Dtest_suite_psa_crypto_attributes.function97 psa_key_slot_number_t slot_number = 0xdeadbeef;
101 TEST_EQUAL(psa_get_key_slot_number(&attributes, &slot_number),
106 PSA_ASSERT(psa_get_key_slot_number(&attributes, &slot_number));
107 TEST_EQUAL(slot_number, 0);
111 PSA_ASSERT(psa_get_key_slot_number(&attributes, &slot_number));
112 TEST_EQUAL(slot_number, 42);
116 TEST_EQUAL(psa_get_key_slot_number(&attributes, &slot_number),
121 TEST_EQUAL(psa_get_key_slot_number(&attributes, &slot_number),
126 PSA_ASSERT(psa_get_key_slot_number(&attributes, &slot_number));
127 TEST_EQUAL(slot_number, 42);
[all …]
Dtest_suite_psa_crypto_se_driver_hal.function123 psa_key_slot_number_t slot_number;
135 psa_key_slot_number_t slot_number)
140 DRIVER_ASSERT_RETURN(slot_number ==
141 validate_slot_number_directions.slot_number);
157 psa_key_slot_number_t *slot_number)
170 *slot_number = *p_counter;
177 psa_key_slot_number_t slot_number,
184 (void) slot_number;
197 psa_key_slot_number_t slot_number,
204 (void) slot_number;
[all …]
Dtest_suite_psa_crypto_se_driver_hal_mocks.function38 psa_key_slot_number_t slot_number;
45 psa_key_slot_number_t slot_number;
75 psa_key_slot_number_t slot_number;
166 psa_key_slot_number_t slot_number,
176 mock_export_data.slot_number = slot_number;
183 psa_key_slot_number_t slot_number,
193 mock_export_public_data.slot_number = slot_number;
263 psa_key_slot_number_t slot_number)
269 mock_destroy_data.slot_number = slot_number;
/third_party/mbedtls/tests/src/drivers/
Dplatform_builtin_keys.c35 psa_drv_slot_number_t slot_number; member
74 psa_drv_slot_number_t *slot_number) in mbedtls_psa_platform_get_builtin_key() argument
84 *slot_number = builtin_key->slot_number; in mbedtls_psa_platform_get_builtin_key()
Dtest_driver_key_management.c432 psa_drv_slot_number_t slot_number = *((psa_drv_slot_number_t *) key); in mbedtls_test_opaque_export_key() local
434 switch (slot_number) { in mbedtls_test_opaque_export_key()
639 psa_drv_slot_number_t slot_number = *((psa_drv_slot_number_t *) key); in mbedtls_test_opaque_export_public_key() local
640 switch (slot_number) { in mbedtls_test_opaque_export_public_key()
681 psa_drv_slot_number_t slot_number, in mbedtls_test_opaque_get_builtin_key() argument
685 switch (slot_number) { in mbedtls_test_opaque_get_builtin_key()
/third_party/mbedtls/library/
Dpsa_crypto_se.h140 psa_key_slot_number_t *slot_number);
148 psa_key_slot_number_t slot_number);
194 uint8_t slot_number[sizeof(psa_key_slot_number_t)]; member
Dpsa_crypto_se.c196 psa_key_slot_number_t *slot_number) in psa_find_se_slot_for_key() argument
212 if (psa_get_key_slot_number(attributes, slot_number) == PSA_SUCCESS) { in psa_find_se_slot_for_key()
225 *slot_number); in psa_find_se_slot_for_key()
241 slot_number); in psa_find_se_slot_for_key()
247 psa_key_slot_number_t slot_number) in psa_destroy_se_key() argument
266 slot_number); in psa_destroy_se_key()
Dpsa_crypto_slot_management.c253 slot, data->slot_number, sizeof(data->slot_number)); in psa_load_persistent_key_into_slot()
273 psa_drv_slot_number_t slot_number = 0; in psa_load_builtin_key_into_slot() local
284 slot->attr.id, &lifetime, &slot_number); in psa_load_builtin_key_into_slot()
297 slot_number, &attributes, in psa_load_builtin_key_into_slot()
323 slot_number, &attributes, in psa_load_builtin_key_into_slot()
Dpsa_crypto.c1304 psa_key_slot_number_t *slot_number) in psa_get_key_slot_number() argument
1307 *slot_number = attributes->slot_number; in psa_get_key_slot_number()
1689 psa_key_slot_number_t slot_number; in psa_start_key_creation() local
1691 &slot_number); in psa_start_key_creation()
1699 psa_crypto_transaction.key.slot = slot_number; in psa_start_key_creation()
1709 slot, (uint8_t *) (&slot_number), sizeof(slot_number)); in psa_start_key_creation()
1765 psa_key_slot_number_t slot_number = in psa_finish_key_creation() local
1768 MBEDTLS_STATIC_ASSERT(sizeof(slot_number) == in psa_finish_key_creation()
1769 sizeof(data.slot_number), in psa_finish_key_creation()
1772 memcpy(&data.slot_number, &slot_number, sizeof(slot_number)); in psa_finish_key_creation()
Dpsa_crypto_driver_wrappers.h141 psa_drv_slot_number_t slot_number,
Dpsa_crypto_driver_wrappers.c1069 psa_drv_slot_number_t slot_number, in psa_driver_wrapper_get_builtin_key() argument
1082 (slot_number, in psa_driver_wrapper_get_builtin_key()
1093 (void) slot_number; in psa_driver_wrapper_get_builtin_key()
/third_party/mbedtls/include/psa/
Dcrypto_extra.h117 psa_key_slot_number_t *slot_number);
144 psa_key_slot_number_t slot_number) in psa_set_key_slot_number() argument
147 attributes->MBEDTLS_PRIVATE(slot_number) = slot_number; in psa_set_key_slot_number()
813 psa_drv_slot_number_t *slot_number);
Dcrypto_struct.h348 psa_key_slot_number_t MBEDTLS_PRIVATE(slot_number);
/third_party/mbedtls/tests/include/test/drivers/
Dkey_management.h122 psa_drv_slot_number_t slot_number,
/third_party/mbedtls/tests/src/
Dpsa_exercise_key.c72 psa_key_slot_number_t slot_number = 0xec94d4a5058a1a21; in check_key_attributes_sanity() local
73 psa_status_t status = psa_get_key_slot_number(&attributes, &slot_number); in check_key_attributes_sanity()
79 TEST_ASSERT(slot_number != 0xec94d4a5058a1a21); in check_key_attributes_sanity()
/third_party/mbedtls/scripts/data_files/driver_templates/
Dpsa_crypto_driver_wrappers.c.jinja1060 psa_drv_slot_number_t slot_number,
1066 slot_number,
1081 (void) slot_number;
/third_party/mbedtls/docs/proposed/
Dpsa-driver-interface.md980 psa_status_t acme_get_builtin_key(psa_drv_slot_number_t slot_number,
998 …the key's attributes in `*attributes`. In particular, `get_builtin_key(slot_number, &attributes, N…