Home
last modified time | relevance | path

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

/third_party/mbedtls/tests/suites/
Dtest_suite_psa_crypto_attributes.function94 psa_key_slot_number_t slot_number = 0xdeadbeef;
98 TEST_EQUAL( psa_get_key_slot_number( &attributes, &slot_number ),
103 PSA_ASSERT( psa_get_key_slot_number( &attributes, &slot_number ) );
104 TEST_EQUAL( slot_number, 0 );
108 PSA_ASSERT( psa_get_key_slot_number( &attributes, &slot_number ) );
109 TEST_EQUAL( slot_number, 42 );
113 TEST_EQUAL( psa_get_key_slot_number( &attributes, &slot_number ),
118 TEST_EQUAL( psa_get_key_slot_number( &attributes, &slot_number ),
123 PSA_ASSERT( psa_get_key_slot_number( &attributes, &slot_number ) );
124 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 )
168 *slot_number = *p_counter;
174 psa_key_slot_number_t slot_number,
181 (void) slot_number;
192 psa_key_slot_number_t slot_number,
199 (void) slot_number;
[all …]
Dtest_suite_psa_crypto_se_driver_hal_mocks.function42 psa_key_slot_number_t slot_number;
50 psa_key_slot_number_t slot_number;
84 psa_key_slot_number_t slot_number;
173 psa_key_slot_number_t slot_number,
183 mock_export_data.slot_number = slot_number;
190 psa_key_slot_number_t slot_number,
200 mock_export_public_data.slot_number = slot_number;
270 psa_key_slot_number_t slot_number )
276 mock_destroy_data.slot_number = slot_number;
/third_party/mbedtls/tests/src/drivers/
Dplatform_builtin_keys.c36 psa_drv_slot_number_t slot_number; member
75 psa_drv_slot_number_t *slot_number ) in mbedtls_psa_platform_get_builtin_key() argument
87 *slot_number = builtin_key->slot_number; in mbedtls_psa_platform_get_builtin_key()
Dtest_driver_key_management.c422 psa_drv_slot_number_t slot_number = *( ( psa_drv_slot_number_t* ) key ); in mbedtls_test_opaque_export_key() local
424 switch( slot_number ) in mbedtls_test_opaque_export_key()
632 psa_drv_slot_number_t slot_number = *( ( psa_drv_slot_number_t* ) key ); in mbedtls_test_opaque_export_public_key() local
633 switch( slot_number ) in mbedtls_test_opaque_export_public_key()
671 psa_drv_slot_number_t slot_number, in mbedtls_test_opaque_get_builtin_key() argument
675 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 );
195 uint8_t slot_number[sizeof( psa_key_slot_number_t )]; member
Dpsa_crypto_se.c198 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()
244 slot_number ); in psa_find_se_slot_for_key()
250 psa_key_slot_number_t slot_number ) in psa_destroy_se_key() argument
268 slot_number ); in psa_destroy_se_key()
Dpsa_crypto_slot_management.c264 slot, data->slot_number, sizeof( data->slot_number ) ); in psa_load_persistent_key_into_slot()
284 psa_drv_slot_number_t slot_number = 0; in psa_load_builtin_key_into_slot() local
296 slot->attr.id, &lifetime, &slot_number ); in psa_load_builtin_key_into_slot()
308 slot_number, &attributes, in psa_load_builtin_key_into_slot()
332 slot_number, &attributes, in psa_load_builtin_key_into_slot()
Dpsa_crypto.c1245 psa_key_slot_number_t *slot_number ) in psa_get_key_slot_number() argument
1249 *slot_number = attributes->slot_number; in psa_get_key_slot_number()
1631 psa_key_slot_number_t slot_number; in psa_start_key_creation() local
1633 &slot_number ); in psa_start_key_creation()
1641 psa_crypto_transaction.key.slot = slot_number; in psa_start_key_creation()
1652 slot, (uint8_t *)( &slot_number ), sizeof( slot_number ) ); in psa_start_key_creation()
1711 psa_key_slot_number_t slot_number = in psa_finish_key_creation() local
1715 static_assert( sizeof( slot_number ) == in psa_finish_key_creation()
1716 sizeof( data.slot_number ), in psa_finish_key_creation()
1719 memcpy( &data.slot_number, &slot_number, sizeof( slot_number ) ); in psa_finish_key_creation()
Dpsa_crypto_driver_wrappers.h105 psa_drv_slot_number_t slot_number,
Dpsa_crypto_driver_wrappers.c801 psa_drv_slot_number_t slot_number, in psa_driver_wrapper_get_builtin_key() argument
811 slot_number, in psa_driver_wrapper_get_builtin_key()
816 (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.h341 psa_key_slot_number_t MBEDTLS_PRIVATE(slot_number);
/third_party/mbedtls/tests/include/test/drivers/
Dkey_management.h116 psa_drv_slot_number_t slot_number,
/third_party/mbedtls/tests/src/
Dpsa_exercise_key.c75 psa_key_slot_number_t slot_number = 0xec94d4a5058a1a21; in check_key_attributes_sanity() local
76 psa_status_t status = psa_get_key_slot_number( &attributes, &slot_number ); in check_key_attributes_sanity()
83 TEST_ASSERT( slot_number != 0xec94d4a5058a1a21 ); in check_key_attributes_sanity()
/third_party/mbedtls/docs/proposed/
Dpsa-driver-interface.md807 psa_status_t acme_get_builtin_key(psa_drv_slot_number_t slot_number,
825 …the key's attributes in `*attributes`. In particular, `get_builtin_key(slot_number, &attributes, N…