Home
last modified time | relevance | path

Searched refs:psa_status_t (Results 1 – 25 of 74) sorted by relevance

123

/third_party/mbedtls/include/psa/
Dcrypto.h102 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 …]
Dcrypto_se_driver.h136 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 …]
/third_party/mbedtls/library/
Dpsa_crypto_driver_wrappers.h31 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 …]
Dpsa_crypto.c122 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 …]
Dpsa_crypto_storage.c94 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 …]
Dpsa_crypto_core.h197 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 …]
Dpsa_crypto_driver_wrappers.c70 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 …]
Dpsa_crypto_aead.h79 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(
Dpsa_crypto_mac.c34 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 …]
Dpsa_crypto_slot_management.c101 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 …]
Dpsa_crypto_slot_management.h95 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 );
Dpsa_crypto_cipher.h67 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,
Dpsa_crypto_storage.h108 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,
Dpsa_crypto_mac.h58 psa_status_t mbedtls_psa_mac_compute(
97 psa_status_t mbedtls_psa_mac_sign_setup(
132 psa_status_t mbedtls_psa_mac_verify_setup(
164 psa_status_t mbedtls_psa_mac_update(
206 psa_status_t mbedtls_psa_mac_sign_finish(
247 psa_status_t mbedtls_psa_mac_verify_finish(
273 psa_status_t mbedtls_psa_mac_abort(
Dpsa_crypto_se.c124 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 …]
Dpsa_crypto_rsa.h37 psa_status_t mbedtls_psa_rsa_load_representation( psa_key_type_t type,
68 psa_status_t mbedtls_psa_rsa_import_key(
82 psa_status_t mbedtls_psa_rsa_export_key( psa_key_type_t type,
112 psa_status_t mbedtls_psa_rsa_export_public_key(
136 psa_status_t mbedtls_psa_rsa_generate_key(
173 psa_status_t mbedtls_psa_rsa_sign_hash(
209 psa_status_t mbedtls_psa_rsa_verify_hash(
Dpsa_crypto_its.h59 #define PSA_ERROR_INVALID_SIGNATURE ((psa_status_t)-149)
60 #define PSA_ERROR_DATA_CORRUPT ((psa_status_t)-152)
83 psa_status_t psa_its_set(psa_storage_uid_t uid,
108 psa_status_t psa_its_get(psa_storage_uid_t uid,
128 psa_status_t psa_its_get_info(psa_storage_uid_t uid,
143 psa_status_t psa_its_remove(psa_storage_uid_t uid);
Dpsa_crypto_hash.h63 psa_status_t mbedtls_psa_hash_compute(
103 psa_status_t mbedtls_psa_hash_setup(
135 psa_status_t mbedtls_psa_hash_clone(
162 psa_status_t mbedtls_psa_hash_update(
201 psa_status_t mbedtls_psa_hash_finish(
231 psa_status_t mbedtls_psa_hash_abort(
/third_party/mbedtls/tests/include/test/drivers/
Dmac.h31 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 …]
Dcipher.h37 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 …]
Daead.h31 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 …]
Dkey_management.h37 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 …]
Dhash.h31 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(
Dsignature.h34 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/
Dtest_driver_cipher.c42 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 …]

123