Home
last modified time | relevance | path

Searched refs:mbedtls_svc_key_id_t (Results 1 – 25 of 30) sorted by relevance

12

/third_party/mbedtls/include/psa/
Dcrypto.h141 mbedtls_svc_key_id_t key );
202 static mbedtls_svc_key_id_t psa_get_key_id(
384 psa_status_t psa_get_key_attributes(mbedtls_svc_key_id_t key,
428 psa_status_t psa_purge_key(mbedtls_svc_key_id_t key);
521 psa_status_t psa_copy_key(mbedtls_svc_key_id_t source_key,
523 mbedtls_svc_key_id_t *target_key);
571 psa_status_t psa_destroy_key(mbedtls_svc_key_id_t key);
655 mbedtls_svc_key_id_t *key);
747 psa_status_t psa_export_key(mbedtls_svc_key_id_t key,
822 psa_status_t psa_export_public_key(mbedtls_svc_key_id_t key,
[all …]
Dcrypto_values.h2210 static inline mbedtls_svc_key_id_t mbedtls_svc_key_id_make( in mbedtls_svc_key_id_make()
2225 static inline int mbedtls_svc_key_id_equal( mbedtls_svc_key_id_t id1, in mbedtls_svc_key_id_equal()
2226 mbedtls_svc_key_id_t id2 ) in mbedtls_svc_key_id_equal()
2237 static inline int mbedtls_svc_key_id_is_null( mbedtls_svc_key_id_t key ) in mbedtls_svc_key_id_is_null()
2244 #define MBEDTLS_SVC_KEY_ID_INIT ( (mbedtls_svc_key_id_t){ 0, 0 } )
2253 static inline mbedtls_svc_key_id_t mbedtls_svc_key_id_make( in mbedtls_svc_key_id_make()
2256 return( (mbedtls_svc_key_id_t){ .MBEDTLS_PRIVATE(key_id) = key_id, in mbedtls_svc_key_id_make()
2267 static inline int mbedtls_svc_key_id_equal( mbedtls_svc_key_id_t id1, in mbedtls_svc_key_id_equal()
2268 mbedtls_svc_key_id_t id2 ) in mbedtls_svc_key_id_equal()
2280 static inline int mbedtls_svc_key_id_is_null( mbedtls_svc_key_id_t key ) in mbedtls_svc_key_id_is_null()
Dcrypto_compat.h43 typedef mbedtls_svc_key_id_t psa_key_handle_t;
118 psa_status_t psa_open_key( mbedtls_svc_key_id_t key,
Dcrypto_types.h228 typedef psa_key_id_t mbedtls_svc_key_id_t; typedef
240 } mbedtls_svc_key_id_t; typedef
Dcrypto_struct.h327 mbedtls_svc_key_id_t MBEDTLS_PRIVATE(id);
360 mbedtls_svc_key_id_t key ) in psa_set_key_id()
375 static inline mbedtls_svc_key_id_t psa_get_key_id( in psa_get_key_id()
Dcrypto_extra.h811 mbedtls_svc_key_id_t key_id,
1405 mbedtls_svc_key_id_t password);
/third_party/mbedtls/tests/src/
Dpsa_exercise_key.c43 static int check_key_attributes_sanity( mbedtls_svc_key_id_t key ) in check_key_attributes_sanity()
48 mbedtls_svc_key_id_t id; in check_key_attributes_sanity()
117 static int exercise_mac_key( mbedtls_svc_key_id_t key, in exercise_mac_key()
162 static int exercise_cipher_key( mbedtls_svc_key_id_t key, in exercise_cipher_key()
235 static int exercise_aead_key( mbedtls_svc_key_id_t key, in exercise_aead_key()
297 static int exercise_signature_key( mbedtls_svc_key_id_t key, in exercise_signature_key()
381 static int exercise_asymmetric_encryption_key( mbedtls_svc_key_id_t key, in exercise_asymmetric_encryption_key()
421 mbedtls_svc_key_id_t key, in mbedtls_test_psa_setup_key_derivation_wrap()
469 static int exercise_key_derivation_key( mbedtls_svc_key_id_t key, in exercise_key_derivation_key()
505 mbedtls_svc_key_id_t key ) in mbedtls_test_psa_key_agreement_with_self()
[all …]
Dpsa_crypto_helpers.c36 static mbedtls_svc_key_id_t key_ids_used_in_test[9];
39 int mbedtls_test_uses_key_id( mbedtls_svc_key_id_t key_id ) in mbedtls_test_uses_key_id()
/third_party/mbedtls/tests/suites/
Dtest_suite_psa_crypto_slot_management.function50 mbedtls_svc_key_id_t key )
123 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
151 mbedtls_svc_key_id_t key_with_invalid_owner =
202 mbedtls_svc_key_id_t id = mbedtls_svc_key_id_make( owner_id_arg, id_arg );
208 mbedtls_svc_key_id_t returned_id = MBEDTLS_SVC_KEY_ID_INIT;
216 mbedtls_svc_key_id_t wrong_owner_id =
218 mbedtls_svc_key_id_t invalid_svc_key_id = MBEDTLS_SVC_KEY_ID_INIT;
357 mbedtls_svc_key_id_t id = mbedtls_svc_key_id_make( owner_id_arg, id_arg );
358 mbedtls_svc_key_id_t returned_id = MBEDTLS_SVC_KEY_ID_INIT;
428 mbedtls_svc_key_id_t id = mbedtls_svc_key_id_make( 1, id_arg );
[all …]
Dtest_suite_psa_crypto_persistent_key.function119 mbedtls_svc_key_id_t key_id = mbedtls_svc_key_id_make( 1, 42 );
149 mbedtls_svc_key_id_t key_id =
151 mbedtls_svc_key_id_t returned_key_id = MBEDTLS_SVC_KEY_ID_INIT;
200 mbedtls_svc_key_id_t key_id =
202 mbedtls_svc_key_id_t returned_key_id;
258 mbedtls_svc_key_id_t key_id = mbedtls_svc_key_id_make( 1, 42 );
260 mbedtls_svc_key_id_t returned_key_id = MBEDTLS_SVC_KEY_ID_INIT;
330 mbedtls_svc_key_id_t id = mbedtls_svc_key_id_make( 1, id_arg );
Dtest_suite_psa_crypto_se_driver_hal_mocks.function334 mbedtls_svc_key_id_t id = mbedtls_svc_key_id_make( 1, 1 );
335 mbedtls_svc_key_id_t returned_id;
403 mbedtls_svc_key_id_t id = mbedtls_svc_key_id_make( 1, 1 );
404 mbedtls_svc_key_id_t returned_id;
457 mbedtls_svc_key_id_t id = mbedtls_svc_key_id_make( 1, 1 );
458 mbedtls_svc_key_id_t returned_id;
524 mbedtls_svc_key_id_t id = mbedtls_svc_key_id_make( 1, 1 );
525 mbedtls_svc_key_id_t returned_id;
574 mbedtls_svc_key_id_t id = mbedtls_svc_key_id_make( 1, 1 );
575 mbedtls_svc_key_id_t returned_id;
[all …]
Dtest_suite_psa_crypto_attributes.function16 mbedtls_svc_key_id_t id = mbedtls_svc_key_id_make( owner_id_arg, id_arg );
69 mbedtls_svc_key_id_t id1 =
72 mbedtls_svc_key_id_t id2 =
74 mbedtls_svc_key_id_t expected_id =
Dtest_suite_psa_crypto_se_driver_hal.function370 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
453 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
486 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
525 mbedtls_svc_key_id_t key,
661 static int smoke_test_key( mbedtls_svc_key_id_t key )
671 mbedtls_svc_key_id_t key2 = MBEDTLS_SVC_KEY_ID_INIT;
862 mbedtls_svc_key_id_t id = mbedtls_svc_key_id_make( 1, 1 );
863 mbedtls_svc_key_id_t returned_id = MBEDTLS_SVC_KEY_ID_INIT;
998 mbedtls_svc_key_id_t id = mbedtls_svc_key_id_make( 1, 1 );
999 mbedtls_svc_key_id_t returned_id;
[all …]
Dtest_suite_psa_crypto.function149 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
182 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
209 static int test_operations_on_invalid_key( mbedtls_svc_key_id_t key )
212 mbedtls_svc_key_id_t key_id = mbedtls_svc_key_id_make( 1, 0x6964 );
330 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
618 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
668 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
713 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
764 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
809 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
[all …]
Dtest_suite_psa_crypto_not_supported.function19 mbedtls_svc_key_id_t key_id = INVALID_KEY_ID;
39 mbedtls_svc_key_id_t key_id = INVALID_KEY_ID;
Dtest_suite_psa_crypto_driver_wrappers.function20 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
78 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
134 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
194 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
249 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
324 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
430 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
521 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
653 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
783 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
[all …]
Dtest_suite_psa_crypto_storage_format.function24 mbedtls_svc_key_id_t created_key_id = MBEDTLS_SVC_KEY_ID_INIT;
76 mbedtls_svc_key_id_t key_id = psa_get_key_id( expected_attributes );
166 mbedtls_svc_key_id_t key_id = mbedtls_svc_key_id_make( 0, 1 );
210 mbedtls_svc_key_id_t key_id = mbedtls_svc_key_id_make( 0, 1 );
Dtest_suite_psa_crypto_entropy.function47 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
80 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
/third_party/mbedtls/tests/include/test/
Dpsa_exercise_key.h161 mbedtls_svc_key_id_t key,
181 mbedtls_svc_key_id_t key );
200 mbedtls_svc_key_id_t key );
251 int mbedtls_test_psa_exercise_key( mbedtls_svc_key_id_t key,
/third_party/mbedtls/library/
Dpsa_crypto_storage.c58 static psa_storage_uid_t psa_its_identifier_of_slot( mbedtls_svc_key_id_t key ) in psa_its_identifier_of_slot()
95 const mbedtls_svc_key_id_t key, uint8_t *data, size_t data_size ) in psa_crypto_storage_load()
113 int psa_is_key_present_in_storage( const mbedtls_svc_key_id_t key ) in psa_is_key_present_in_storage()
143 static psa_status_t psa_crypto_storage_store( const mbedtls_svc_key_id_t key, in psa_crypto_storage_store()
184 psa_status_t psa_destroy_persistent_key( const mbedtls_svc_key_id_t key ) in psa_destroy_persistent_key()
217 const mbedtls_svc_key_id_t key, in psa_crypto_storage_get_data_length()
373 mbedtls_svc_key_id_t key = attr->id; in psa_load_persistent_key()
Dpsa_crypto_storage.h75 int psa_is_key_present_in_storage( const mbedtls_svc_key_id_t key );
153 psa_status_t psa_destroy_persistent_key( const mbedtls_svc_key_id_t key );
303 mbedtls_svc_key_id_t id;
Dpsa_crypto.c889 mbedtls_svc_key_id_t key, in psa_get_and_lock_key_slot_with_policy()
948 mbedtls_svc_key_id_t key, in psa_get_and_lock_transparent_key_slot_with_policy()
1014 psa_status_t psa_destroy_key( mbedtls_svc_key_id_t key ) in psa_destroy_key()
1176 psa_status_t psa_get_key_attributes( mbedtls_svc_key_id_t key, in psa_get_key_attributes()
1296 psa_status_t psa_export_key( mbedtls_svc_key_id_t key, in psa_export_key()
1400 psa_status_t psa_export_public_key( mbedtls_svc_key_id_t key, in psa_export_public_key()
1495 mbedtls_svc_key_id_t key = psa_get_key_id( attributes ); in psa_validate_key_attributes()
1698 mbedtls_svc_key_id_t *key) in psa_finish_key_creation()
1884 mbedtls_svc_key_id_t *key ) in psa_import_key()
1970 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT; in mbedtls_psa_register_se_key()
[all …]
Dpsa_crypto_slot_management.c54 int psa_is_valid_key_id( mbedtls_svc_key_id_t key, int vendor_ok ) in psa_is_valid_key_id()
102 mbedtls_svc_key_id_t key, psa_key_slot_t **p_slot ) in psa_get_and_lock_key_slot_in_memory()
348 psa_status_t psa_get_and_lock_key_slot( mbedtls_svc_key_id_t key, in psa_get_and_lock_key_slot()
480 psa_status_t psa_open_key( mbedtls_svc_key_id_t key, psa_key_handle_t *handle ) in psa_open_key()
530 psa_status_t psa_purge_key( mbedtls_svc_key_id_t key ) in psa_purge_key()
Dpsa_crypto_slot_management.h95 psa_status_t psa_get_and_lock_key_slot( mbedtls_svc_key_id_t key,
222 int psa_is_valid_key_id( mbedtls_svc_key_id_t key, int vendor_ok );
/third_party/mbedtls/tests/src/drivers/
Dplatform_builtin_keys.c73 mbedtls_svc_key_id_t key_id, in mbedtls_psa_platform_get_builtin_key()

12