/third_party/mbedtls/include/psa/ |
D | crypto.h | 102 psa_status_t psa_crypto_init(void); 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, 571 psa_status_t psa_destroy_key(mbedtls_svc_key_id_t key); 652 psa_status_t psa_import_key(const psa_key_attributes_t *attributes, 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, 867 psa_status_t psa_hash_compute(psa_algorithm_t alg, 903 psa_status_t psa_hash_compare(psa_algorithm_t alg, [all …]
|
D | crypto_se_driver.h | 136 typedef psa_status_t (*psa_drv_se_init_t)(psa_drv_se_context_t *drv_context, 185 typedef psa_status_t (*psa_drv_se_mac_setup_t)(psa_drv_se_context_t *drv_context, 200 typedef psa_status_t (*psa_drv_se_mac_update_t)(void *op_context, 220 typedef psa_status_t (*psa_drv_se_mac_finish_t)(void *op_context, 241 typedef psa_status_t (*psa_drv_se_mac_finish_verify_t)(void *op_context, 251 typedef psa_status_t (*psa_drv_se_mac_abort_t)(void *op_context); 271 typedef psa_status_t (*psa_drv_se_mac_generate_t)(psa_drv_se_context_t *drv_context, 300 typedef psa_status_t (*psa_drv_se_mac_verify_t)(psa_drv_se_context_t *drv_context, 391 typedef psa_status_t (*psa_drv_se_cipher_setup_t)(psa_drv_se_context_t *drv_context, 412 typedef psa_status_t (*psa_drv_se_cipher_set_iv_t)(void *op_context, [all …]
|
D | crypto_extra.h | 115 psa_status_t psa_get_key_slot_number( 205 psa_status_t mbedtls_psa_register_se_key( 331 psa_status_t mbedtls_psa_inject_entropy(const uint8_t *seed, 502 psa_status_t psa_set_key_domain_parameters(psa_key_attributes_t *attributes, 530 psa_status_t psa_get_key_domain_parameters( 713 psa_status_t mbedtls_psa_external_get_random( 810 psa_status_t mbedtls_psa_platform_get_builtin_key( 1364 psa_status_t psa_pake_setup(psa_pake_operation_t *operation, 1404 psa_status_t psa_pake_set_password_key(psa_pake_operation_t *operation, 1443 psa_status_t psa_pake_set_user(psa_pake_operation_t *operation, [all …]
|
D | crypto_values.h | 45 #define PSA_SUCCESS ((psa_status_t)0) 52 #define PSA_ERROR_GENERIC_ERROR ((psa_status_t)-132) 61 #define PSA_ERROR_NOT_SUPPORTED ((psa_status_t)-134) 74 #define PSA_ERROR_NOT_PERMITTED ((psa_status_t)-133) 86 #define PSA_ERROR_BUFFER_TOO_SMALL ((psa_status_t)-138) 92 #define PSA_ERROR_ALREADY_EXISTS ((psa_status_t)-139) 98 #define PSA_ERROR_DOES_NOT_EXIST ((psa_status_t)-140) 114 #define PSA_ERROR_BAD_STATE ((psa_status_t)-137) 125 #define PSA_ERROR_INVALID_ARGUMENT ((psa_status_t)-135) 131 #define PSA_ERROR_INSUFFICIENT_MEMORY ((psa_status_t)-141) [all …]
|
/third_party/mbedtls/library/ |
D | psa_crypto_driver_wrappers.h | 31 psa_status_t psa_driver_wrapper_init( void ); 37 psa_status_t psa_driver_wrapper_sign_message( 48 psa_status_t psa_driver_wrapper_verify_message( 58 psa_status_t psa_driver_wrapper_sign_hash( 64 psa_status_t psa_driver_wrapper_verify_hash( 74 psa_status_t psa_driver_wrapper_import_key( 80 psa_status_t psa_driver_wrapper_export_key( 85 psa_status_t psa_driver_wrapper_export_public_key( 90 psa_status_t psa_driver_wrapper_get_key_buffer_size( 94 psa_status_t psa_driver_wrapper_get_key_buffer_size_from_key_data( [all …]
|
D | psa_crypto.c | 122 psa_status_t mbedtls_to_psa_error( int ret ) in mbedtls_to_psa_error() 432 psa_status_t psa_validate_unstructured_key_bit_size( psa_key_type_t type, in psa_validate_unstructured_key_bit_size() 495 MBEDTLS_STATIC_TESTABLE psa_status_t psa_mac_key_can_do( in psa_mac_key_can_do() 522 psa_status_t psa_allocate_buffer_to_slot( psa_key_slot_t *slot, in psa_allocate_buffer_to_slot() 536 psa_status_t psa_copy_key_material_into_slot( psa_key_slot_t *slot, in psa_copy_key_material_into_slot() 540 psa_status_t status = psa_allocate_buffer_to_slot( slot, in psa_copy_key_material_into_slot() 549 psa_status_t psa_import_key_into_slot( in psa_import_key_into_slot() 555 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_import_key_into_slot() 817 static psa_status_t psa_key_policy_permits( const psa_key_policy_t *policy, in psa_key_policy_permits() 854 static psa_status_t psa_restrict_key_policy( in psa_restrict_key_policy() [all …]
|
D | psa_crypto_storage.c | 94 static psa_status_t psa_crypto_storage_load( in psa_crypto_storage_load() 97 psa_status_t status; in psa_crypto_storage_load() 115 psa_status_t ret; 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() 147 psa_status_t status; 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() 186 psa_status_t ret; in psa_destroy_persistent_key() 216 static psa_status_t psa_crypto_storage_get_data_length( in psa_crypto_storage_get_data_length() 220 psa_status_t status; in psa_crypto_storage_get_data_length() 270 static psa_status_t check_magic_header( const uint8_t *data ) in check_magic_header() [all …]
|
D | psa_crypto_driver_wrappers.c | 70 psa_status_t psa_driver_wrapper_init( void ) in psa_driver_wrapper_init() 72 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_driver_wrapper_init() 109 psa_status_t psa_driver_wrapper_sign_message( in psa_driver_wrapper_sign_message() 120 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_driver_wrapper_sign_message() 184 psa_status_t psa_driver_wrapper_verify_message( in psa_driver_wrapper_verify_message() 194 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_driver_wrapper_verify_message() 255 psa_status_t psa_driver_wrapper_sign_hash( in psa_driver_wrapper_sign_hash() 281 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_driver_wrapper_sign_hash() 339 psa_status_t psa_driver_wrapper_verify_hash( in psa_driver_wrapper_verify_hash() 365 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_driver_wrapper_verify_hash() [all …]
|
D | psa_crypto_mac.c | 34 static psa_status_t psa_hmac_abort_internal( in psa_hmac_abort_internal() 41 static psa_status_t psa_hmac_setup_internal( in psa_hmac_setup_internal() 51 psa_status_t status; in psa_hmac_setup_internal() 106 static psa_status_t psa_hmac_update_internal( in psa_hmac_update_internal() 114 static psa_status_t psa_hmac_finish_internal( in psa_hmac_finish_internal() 123 psa_status_t status; in psa_hmac_finish_internal() 155 static psa_status_t cmac_setup( mbedtls_psa_mac_operation_t *operation, in cmac_setup() 197 static psa_status_t mac_init( in mac_init() 201 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mac_init() 232 psa_status_t mbedtls_psa_mac_abort( mbedtls_psa_mac_operation_t *operation ) in mbedtls_psa_mac_abort() [all …]
|
D | psa_crypto_core.h | 197 psa_status_t psa_wipe_key_slot( psa_key_slot_t *slot ); 211 psa_status_t psa_allocate_buffer_to_slot( psa_key_slot_t *slot, 215 psa_status_t psa_remove_key_data_from_memory( psa_key_slot_t *slot ); 234 psa_status_t psa_copy_key_material_into_slot( psa_key_slot_t *slot, 247 psa_status_t mbedtls_to_psa_error( int ret ); 291 psa_status_t psa_import_key_into_slot( 319 psa_status_t psa_export_key_internal( 347 psa_status_t psa_export_public_key_internal( 372 psa_status_t psa_generate_key_internal( const psa_key_attributes_t *attributes, 414 psa_status_t psa_sign_message_builtin( [all …]
|
D | psa_crypto_aead.h | 79 psa_status_t mbedtls_psa_aead_encrypt( 142 psa_status_t mbedtls_psa_aead_decrypt( 187 psa_status_t mbedtls_psa_aead_encrypt_setup( 230 psa_status_t mbedtls_psa_aead_decrypt_setup( 265 psa_status_t mbedtls_psa_aead_set_nonce( 306 psa_status_t mbedtls_psa_aead_set_lengths( 343 psa_status_t mbedtls_psa_aead_update_ad( 403 psa_status_t mbedtls_psa_aead_update( 475 psa_status_t mbedtls_psa_aead_finish( 508 psa_status_t mbedtls_psa_aead_abort(
|
D | psa_crypto_slot_management.c | 101 static psa_status_t psa_get_and_lock_key_slot_in_memory( in psa_get_and_lock_key_slot_in_memory() 104 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_get_and_lock_key_slot_in_memory() 149 psa_status_t psa_initialize_key_slots( void ) in psa_initialize_key_slots() 171 psa_status_t psa_get_empty_key_slot( psa_key_id_t *volatile_key_id, in psa_get_empty_key_slot() 174 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_get_empty_key_slot() 237 static psa_status_t psa_load_persistent_key_into_slot( psa_key_slot_t *slot ) in psa_load_persistent_key_into_slot() 239 psa_status_t status = PSA_SUCCESS; in psa_load_persistent_key_into_slot() 279 static psa_status_t psa_load_builtin_key_into_slot( psa_key_slot_t *slot ) in psa_load_builtin_key_into_slot() 281 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_load_builtin_key_into_slot() 348 psa_status_t psa_get_and_lock_key_slot( mbedtls_svc_key_id_t key, in psa_get_and_lock_key_slot() [all …]
|
D | psa_crypto_se.c | 124 static psa_status_t psa_get_se_driver_its_file_uid( in psa_get_se_driver_its_file_uid() 142 psa_status_t psa_load_se_persistent_data( in psa_load_se_persistent_data() 145 psa_status_t status; in psa_load_se_persistent_data() 166 psa_status_t psa_save_se_persistent_data( in psa_save_se_persistent_data() 169 psa_status_t status; in psa_save_se_persistent_data() 185 psa_status_t psa_destroy_se_persistent_data( psa_key_location_t location ) in psa_destroy_se_persistent_data() 194 psa_status_t psa_find_se_slot_for_key( in psa_find_se_slot_for_key() 200 psa_status_t status; in psa_find_se_slot_for_key() 249 psa_status_t psa_destroy_se_key( psa_se_drv_table_entry_t *driver, in psa_destroy_se_key() 252 psa_status_t status; in psa_destroy_se_key() [all …]
|
D | psa_crypto_aead.c | 41 static psa_status_t psa_aead_setup( in psa_aead_setup() 48 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_aead_setup() 141 psa_status_t mbedtls_psa_aead_encrypt( in mbedtls_psa_aead_encrypt() 150 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_aead_encrypt() 241 static psa_status_t psa_aead_unpadded_locate_tag( size_t tag_length, in psa_aead_unpadded_locate_tag() 257 psa_status_t mbedtls_psa_aead_decrypt( in mbedtls_psa_aead_decrypt() 266 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_aead_decrypt() 352 psa_status_t mbedtls_psa_aead_encrypt_setup( in mbedtls_psa_aead_encrypt_setup() 359 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_aead_encrypt_setup() 372 psa_status_t mbedtls_psa_aead_decrypt_setup( in mbedtls_psa_aead_decrypt_setup() [all …]
|
D | psa_crypto_rsa.c | 56 static psa_status_t psa_check_rsa_key_byte_aligned( in psa_check_rsa_key_byte_aligned() 60 psa_status_t status; in psa_check_rsa_key_byte_aligned() 73 psa_status_t mbedtls_psa_rsa_load_representation( in mbedtls_psa_rsa_load_representation() 77 psa_status_t status; in mbedtls_psa_rsa_load_representation() 133 psa_status_t mbedtls_psa_rsa_import_key( in mbedtls_psa_rsa_import_key() 139 psa_status_t status; in mbedtls_psa_rsa_import_key() 169 psa_status_t mbedtls_psa_rsa_export_key( psa_key_type_t type, in mbedtls_psa_rsa_export_key() 225 psa_status_t mbedtls_psa_rsa_export_public_key( in mbedtls_psa_rsa_export_public_key() 230 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_rsa_export_public_key() 254 static psa_status_t psa_rsa_read_exponent( const uint8_t *domain_parameters, in psa_rsa_read_exponent() [all …]
|
D | psa_crypto_cipher.h | 67 psa_status_t mbedtls_psa_cipher_encrypt_setup( 97 psa_status_t mbedtls_psa_cipher_decrypt_setup( 125 psa_status_t mbedtls_psa_cipher_set_iv( 150 psa_status_t mbedtls_psa_cipher_update( 181 psa_status_t mbedtls_psa_cipher_finish( 200 psa_status_t mbedtls_psa_cipher_abort( mbedtls_psa_cipher_operation_t *operation ); 244 psa_status_t mbedtls_psa_cipher_encrypt( const psa_key_attributes_t *attributes, 295 psa_status_t mbedtls_psa_cipher_decrypt( const psa_key_attributes_t *attributes,
|
D | psa_crypto_slot_management.h | 95 psa_status_t psa_get_and_lock_key_slot( mbedtls_svc_key_id_t key, 103 psa_status_t psa_initialize_key_slots( void ); 125 psa_status_t psa_get_empty_key_slot( psa_key_id_t *volatile_key_id, 140 static inline psa_status_t psa_lock_key_slot( psa_key_slot_t *slot ) in psa_lock_key_slot() 166 psa_status_t psa_unlock_key_slot( psa_key_slot_t *slot ); 200 psa_status_t psa_validate_key_location( psa_key_lifetime_t lifetime, 211 psa_status_t psa_validate_key_persistence( psa_key_lifetime_t lifetime );
|
D | psa_crypto_storage.h | 108 psa_status_t psa_save_persistent_key( const psa_core_key_attributes_t *attr, 138 psa_status_t psa_load_persistent_key( psa_core_key_attributes_t *attr, 153 psa_status_t psa_destroy_persistent_key( const mbedtls_svc_key_id_t key ); 197 psa_status_t psa_parse_key_data_from_storage( const uint8_t *storage_data, 333 psa_status_t psa_crypto_save_transaction( void ); 349 psa_status_t psa_crypto_load_transaction( void ); 369 psa_status_t psa_crypto_stop_transaction( void ); 391 psa_status_t mbedtls_psa_storage_inject_entropy( const unsigned char *seed,
|
/third_party/mbedtls/tests/include/test/drivers/ |
D | mac.h | 31 psa_status_t forced_status; 35 psa_status_t driver_status; 48 psa_status_t mbedtls_test_transparent_mac_compute( 59 psa_status_t mbedtls_test_transparent_mac_sign_setup( 66 psa_status_t mbedtls_test_transparent_mac_verify_setup( 73 psa_status_t mbedtls_test_transparent_mac_update( 78 psa_status_t mbedtls_test_transparent_mac_sign_finish( 84 psa_status_t mbedtls_test_transparent_mac_verify_finish( 89 psa_status_t mbedtls_test_transparent_mac_abort( 92 psa_status_t mbedtls_test_opaque_mac_compute( [all …]
|
D | cipher.h | 37 psa_status_t forced_status; 52 psa_status_t mbedtls_test_transparent_cipher_encrypt( 60 psa_status_t mbedtls_test_transparent_cipher_decrypt( 67 psa_status_t mbedtls_test_transparent_cipher_encrypt_setup( 73 psa_status_t mbedtls_test_transparent_cipher_decrypt_setup( 79 psa_status_t mbedtls_test_transparent_cipher_abort( 82 psa_status_t mbedtls_test_transparent_cipher_set_iv( 86 psa_status_t mbedtls_test_transparent_cipher_update( 91 psa_status_t mbedtls_test_transparent_cipher_finish( 98 psa_status_t mbedtls_test_opaque_cipher_encrypt( [all …]
|
D | aead.h | 31 psa_status_t forced_status; 46 psa_status_t driver_status; 59 psa_status_t mbedtls_test_transparent_aead_encrypt( 68 psa_status_t mbedtls_test_transparent_aead_decrypt( 77 psa_status_t mbedtls_test_transparent_aead_encrypt_setup( 83 psa_status_t mbedtls_test_transparent_aead_decrypt_setup( 89 psa_status_t mbedtls_test_transparent_aead_set_nonce( 94 psa_status_t mbedtls_test_transparent_aead_set_lengths( 99 psa_status_t mbedtls_test_transparent_aead_update_ad( 104 psa_status_t mbedtls_test_transparent_aead_update( [all …]
|
D | key_management.h | 37 psa_status_t forced_status; 69 psa_status_t mbedtls_test_transparent_init( void ); 71 psa_status_t mbedtls_test_opaque_init( void ); 74 psa_status_t mbedtls_test_transparent_generate_key( 78 psa_status_t mbedtls_test_opaque_generate_key( 82 psa_status_t mbedtls_test_opaque_export_key( 87 psa_status_t mbedtls_test_transparent_export_public_key( 92 psa_status_t mbedtls_test_opaque_export_public_key( 97 psa_status_t mbedtls_test_transparent_import_key( 106 psa_status_t mbedtls_test_opaque_import_key( [all …]
|
D | hash.h | 31 psa_status_t forced_status; 35 psa_status_t driver_status; 48 psa_status_t mbedtls_test_transparent_hash_compute( 53 psa_status_t mbedtls_test_transparent_hash_setup( 57 psa_status_t mbedtls_test_transparent_hash_clone( 61 psa_status_t mbedtls_test_transparent_hash_update( 66 psa_status_t mbedtls_test_transparent_hash_finish( 72 psa_status_t mbedtls_test_transparent_hash_abort(
|
D | signature.h | 34 psa_status_t forced_status; 53 psa_status_t mbedtls_test_transparent_signature_sign_message( 64 psa_status_t mbedtls_test_opaque_signature_sign_message( 75 psa_status_t mbedtls_test_transparent_signature_verify_message( 85 psa_status_t mbedtls_test_opaque_signature_verify_message( 95 psa_status_t mbedtls_test_transparent_signature_sign_hash( 102 psa_status_t mbedtls_test_opaque_signature_sign_hash( 109 psa_status_t mbedtls_test_transparent_signature_verify_hash( 116 psa_status_t mbedtls_test_opaque_signature_verify_hash(
|
/third_party/mbedtls/tests/src/drivers/ |
D | test_driver_cipher.c | 42 psa_status_t mbedtls_test_transparent_cipher_encrypt( in mbedtls_test_transparent_cipher_encrypt() 90 psa_status_t mbedtls_test_transparent_cipher_decrypt( in mbedtls_test_transparent_cipher_decrypt() 136 psa_status_t mbedtls_test_transparent_cipher_encrypt_setup( in mbedtls_test_transparent_cipher_encrypt_setup() 167 psa_status_t mbedtls_test_transparent_cipher_decrypt_setup( in mbedtls_test_transparent_cipher_decrypt_setup() 192 psa_status_t mbedtls_test_transparent_cipher_abort( in mbedtls_test_transparent_cipher_abort() 213 psa_status_t mbedtls_test_transparent_cipher_set_iv( in mbedtls_test_transparent_cipher_set_iv() 234 psa_status_t mbedtls_test_transparent_cipher_update( in mbedtls_test_transparent_cipher_update() 274 psa_status_t mbedtls_test_transparent_cipher_finish( in mbedtls_test_transparent_cipher_finish() 313 psa_status_t mbedtls_test_opaque_cipher_encrypt( in mbedtls_test_opaque_cipher_encrypt() 335 psa_status_t mbedtls_test_opaque_cipher_decrypt( in mbedtls_test_opaque_cipher_decrypt() [all …]
|