Home
last modified time | relevance | path

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

1234567

/mbedtls-latest/tests/src/
Dpsa_test_wrappers.c19 psa_status_t mbedtls_test_wrap_mbedtls_psa_inject_entropy( in mbedtls_test_wrap_mbedtls_psa_inject_entropy()
23 psa_status_t status = (mbedtls_psa_inject_entropy)(arg0_seed, arg1_seed_size); in mbedtls_test_wrap_mbedtls_psa_inject_entropy()
30 psa_status_t mbedtls_test_wrap_mbedtls_psa_platform_get_builtin_key( in mbedtls_test_wrap_mbedtls_psa_platform_get_builtin_key()
35psa_status_t status = (mbedtls_psa_platform_get_builtin_key)(arg0_key_id, arg1_lifetime, arg2_slot… in mbedtls_test_wrap_mbedtls_psa_platform_get_builtin_key()
42 psa_status_t mbedtls_test_wrap_mbedtls_psa_register_se_key( in mbedtls_test_wrap_mbedtls_psa_register_se_key()
45 psa_status_t status = (mbedtls_psa_register_se_key)(arg0_attributes); in mbedtls_test_wrap_mbedtls_psa_register_se_key()
51 psa_status_t mbedtls_test_wrap_psa_aead_abort( in mbedtls_test_wrap_psa_aead_abort()
54 psa_status_t status = (psa_aead_abort)(arg0_operation); in mbedtls_test_wrap_psa_aead_abort()
59 psa_status_t mbedtls_test_wrap_psa_aead_decrypt( in mbedtls_test_wrap_psa_aead_decrypt()
78psa_status_t status = (psa_aead_decrypt)(arg0_key, arg1_alg, arg2_nonce, arg3_nonce_length, arg4_a… in mbedtls_test_wrap_psa_aead_decrypt()
[all …]
/mbedtls-latest/include/psa/
Dcrypto.h94 psa_status_t psa_crypto_init(void);
381 psa_status_t psa_get_key_attributes(mbedtls_svc_key_id_t key,
425 psa_status_t psa_purge_key(mbedtls_svc_key_id_t key);
515 psa_status_t psa_copy_key(mbedtls_svc_key_id_t source_key,
570 psa_status_t psa_destroy_key(mbedtls_svc_key_id_t key);
649 psa_status_t psa_import_key(const psa_key_attributes_t *attributes,
744 psa_status_t psa_export_key(mbedtls_svc_key_id_t key,
819 psa_status_t psa_export_public_key(mbedtls_svc_key_id_t key,
863 psa_status_t psa_hash_compute(psa_algorithm_t alg,
898 psa_status_t psa_hash_compare(psa_algorithm_t alg,
[all …]
Dcrypto_se_driver.h124 typedef psa_status_t (*psa_drv_se_init_t)(psa_drv_se_context_t *drv_context,
173 typedef psa_status_t (*psa_drv_se_mac_setup_t)(psa_drv_se_context_t *drv_context,
188 typedef psa_status_t (*psa_drv_se_mac_update_t)(void *op_context,
208 typedef psa_status_t (*psa_drv_se_mac_finish_t)(void *op_context,
229 typedef psa_status_t (*psa_drv_se_mac_finish_verify_t)(void *op_context,
239 typedef psa_status_t (*psa_drv_se_mac_abort_t)(void *op_context);
259 typedef psa_status_t (*psa_drv_se_mac_generate_t)(psa_drv_se_context_t *drv_context,
288 typedef psa_status_t (*psa_drv_se_mac_verify_t)(psa_drv_se_context_t *drv_context,
379 typedef psa_status_t (*psa_drv_se_cipher_setup_t)(psa_drv_se_context_t *drv_context,
400 typedef psa_status_t (*psa_drv_se_cipher_set_iv_t)(void *op_context,
[all …]
Dcrypto_extra.h111 psa_status_t psa_get_key_slot_number(
206 psa_status_t mbedtls_psa_register_se_key(
333 psa_status_t mbedtls_psa_inject_entropy(const uint8_t *seed,
481 psa_status_t mbedtls_psa_external_get_random(
578 psa_status_t mbedtls_psa_platform_get_builtin_key(
1081 psa_status_t psa_crypto_driver_pake_get_password_len(
1097 psa_status_t psa_crypto_driver_pake_get_password(
1111 psa_status_t psa_crypto_driver_pake_get_user_len(
1125 psa_status_t psa_crypto_driver_pake_get_peer_len(
1143 psa_status_t psa_crypto_driver_pake_get_user(
[all …]
Dcrypto_values.h57 #define PSA_SUCCESS ((psa_status_t)0)
64 #define PSA_ERROR_GENERIC_ERROR ((psa_status_t)-132)
73 #define PSA_ERROR_NOT_SUPPORTED ((psa_status_t)-134)
86 #define PSA_ERROR_NOT_PERMITTED ((psa_status_t)-133)
98 #define PSA_ERROR_BUFFER_TOO_SMALL ((psa_status_t)-138)
104 #define PSA_ERROR_ALREADY_EXISTS ((psa_status_t)-139)
110 #define PSA_ERROR_DOES_NOT_EXIST ((psa_status_t)-140)
126 #define PSA_ERROR_BAD_STATE ((psa_status_t)-137)
137 #define PSA_ERROR_INVALID_ARGUMENT ((psa_status_t)-135)
143 #define PSA_ERROR_INSUFFICIENT_MEMORY ((psa_status_t)-141)
[all …]
/mbedtls-latest/tests/include/test/
Dpsa_test_wrappers.h25 psa_status_t mbedtls_test_wrap_mbedtls_psa_inject_entropy(
33 psa_status_t mbedtls_test_wrap_mbedtls_psa_platform_get_builtin_key(
42 psa_status_t mbedtls_test_wrap_mbedtls_psa_register_se_key(
48 psa_status_t mbedtls_test_wrap_psa_aead_abort(
53 psa_status_t mbedtls_test_wrap_psa_aead_decrypt(
68 psa_status_t mbedtls_test_wrap_psa_aead_decrypt_setup(
75 psa_status_t mbedtls_test_wrap_psa_aead_encrypt(
90 psa_status_t mbedtls_test_wrap_psa_aead_encrypt_setup(
97 psa_status_t mbedtls_test_wrap_psa_aead_finish(
108 psa_status_t mbedtls_test_wrap_psa_aead_generate_nonce(
[all …]
/mbedtls-latest/library/
Dpsa_crypto.c263 psa_status_t local_output_status; \
337 psa_status_t mbedtls_to_psa_error(int ret) in mbedtls_to_psa_error()
595 static void psa_wipe_tag_output_buffer(uint8_t *output_buffer, psa_status_t status, in psa_wipe_tag_output_buffer()
614 psa_status_t psa_validate_unstructured_key_bit_size(psa_key_type_t type, in psa_validate_unstructured_key_bit_size()
684 MBEDTLS_STATIC_TESTABLE psa_status_t psa_mac_key_can_do( in psa_mac_key_can_do()
710 psa_status_t psa_allocate_buffer_to_slot(psa_key_slot_t *slot, in psa_allocate_buffer_to_slot()
732 psa_status_t psa_copy_key_material_into_slot(psa_key_slot_t *slot, in psa_copy_key_material_into_slot()
736 psa_status_t status = psa_allocate_buffer_to_slot(slot, in psa_copy_key_material_into_slot()
746 psa_status_t psa_import_key_into_slot( in psa_import_key_into_slot()
752 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_import_key_into_slot()
[all …]
Dpsa_crypto_core.h255 psa_status_t psa_wipe_key_slot(psa_key_slot_t *slot);
269 psa_status_t psa_allocate_buffer_to_slot(psa_key_slot_t *slot,
273 psa_status_t psa_remove_key_data_from_memory(psa_key_slot_t *slot);
292 psa_status_t psa_copy_key_material_into_slot(psa_key_slot_t *slot,
305 psa_status_t mbedtls_to_psa_error(int ret);
333 psa_status_t psa_import_key_into_slot(
361 psa_status_t psa_export_key_internal(
389 psa_status_t psa_export_public_key_internal(
430 psa_status_t psa_generate_key_internal(const psa_key_attributes_t *attributes,
475 psa_status_t psa_sign_message_builtin(
[all …]
Dpsa_crypto_storage.c76 static psa_status_t psa_crypto_storage_load( in psa_crypto_storage_load()
79 psa_status_t status; in psa_crypto_storage_load()
99 psa_status_t ret; in psa_is_key_present_in_storage()
128 static psa_status_t psa_crypto_storage_store(const mbedtls_svc_key_id_t key, in psa_crypto_storage_store()
132 psa_status_t status; in psa_crypto_storage_store()
166 psa_status_t psa_destroy_persistent_key(const mbedtls_svc_key_id_t key) in psa_destroy_persistent_key()
168 psa_status_t ret; in psa_destroy_persistent_key()
201 static psa_status_t psa_crypto_storage_get_data_length( in psa_crypto_storage_get_data_length()
205 psa_status_t status; in psa_crypto_storage_get_data_length()
257 static psa_status_t check_magic_header(const uint8_t *data) in check_magic_header()
[all …]
Dpsa_crypto_driver_wrappers.h101 static inline psa_status_t psa_driver_wrapper_init( void ) in psa_driver_wrapper_init()
103 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_driver_wrapper_init()
156 static inline psa_status_t psa_driver_wrapper_sign_message( in psa_driver_wrapper_sign_message()
167 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_driver_wrapper_sign_message()
246 static inline psa_status_t psa_driver_wrapper_verify_message( in psa_driver_wrapper_verify_message()
256 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_driver_wrapper_verify_message()
330 static inline psa_status_t psa_driver_wrapper_sign_hash( in psa_driver_wrapper_sign_hash()
356 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_driver_wrapper_sign_hash()
449 static inline psa_status_t psa_driver_wrapper_verify_hash( in psa_driver_wrapper_verify_hash()
475 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_driver_wrapper_verify_hash()
[all …]
Dpsa_crypto_mac.c24 static psa_status_t psa_hmac_abort_internal( in psa_hmac_abort_internal()
31 static psa_status_t psa_hmac_setup_internal( in psa_hmac_setup_internal()
41 psa_status_t status; in psa_hmac_setup_internal()
103 static psa_status_t psa_hmac_update_internal( in psa_hmac_update_internal()
111 static psa_status_t psa_hmac_finish_internal( in psa_hmac_finish_internal()
120 psa_status_t status; in psa_hmac_finish_internal()
157 static psa_status_t cmac_setup(mbedtls_psa_mac_operation_t *operation, in cmac_setup()
202 static psa_status_t mac_init( in mac_init()
206 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mac_init()
234 psa_status_t mbedtls_psa_mac_abort(mbedtls_psa_mac_operation_t *operation) in mbedtls_psa_mac_abort()
[all …]
Dpsa_crypto_slot_management.h93 psa_status_t psa_get_and_lock_key_slot(mbedtls_svc_key_id_t key,
101 psa_status_t psa_initialize_key_slots(void);
161 psa_status_t psa_reserve_free_key_slot(psa_key_id_t *volatile_key_id,
183 psa_status_t psa_free_key_slot(size_t slice_idx,
205 static inline psa_status_t psa_key_slot_state_transition( in psa_key_slot_state_transition()
230 static inline psa_status_t psa_register_read(psa_key_slot_t *slot) in psa_register_read()
265 psa_status_t psa_unregister_read(psa_key_slot_t *slot);
286 psa_status_t psa_unregister_read_under_mutex(psa_key_slot_t *slot);
320 psa_status_t psa_validate_key_location(psa_key_lifetime_t lifetime,
331 psa_status_t psa_validate_key_persistence(psa_key_lifetime_t lifetime);
Dpsa_crypto_aead.c26 static psa_status_t psa_aead_setup( in psa_aead_setup()
33 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_aead_setup()
117 psa_status_t mbedtls_psa_aead_encrypt( in mbedtls_psa_aead_encrypt()
126 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_aead_encrypt()
211 static psa_status_t psa_aead_unpadded_locate_tag(size_t tag_length, in psa_aead_unpadded_locate_tag()
229 psa_status_t mbedtls_psa_aead_decrypt( in mbedtls_psa_aead_decrypt()
238 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_aead_decrypt()
321 psa_status_t mbedtls_psa_aead_encrypt_setup( in mbedtls_psa_aead_encrypt_setup()
328 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_aead_encrypt_setup()
342 psa_status_t mbedtls_psa_aead_decrypt_setup( in mbedtls_psa_aead_decrypt_setup()
[all …]
Dpsa_crypto_se.c107 static psa_status_t psa_get_se_driver_its_file_uid( in psa_get_se_driver_its_file_uid()
125 psa_status_t psa_load_se_persistent_data( in psa_load_se_persistent_data()
128 psa_status_t status; in psa_load_se_persistent_data()
150 psa_status_t psa_save_se_persistent_data( in psa_save_se_persistent_data()
153 psa_status_t status; in psa_save_se_persistent_data()
170 psa_status_t psa_destroy_se_persistent_data(psa_key_location_t location) in psa_destroy_se_persistent_data()
180 psa_status_t psa_find_se_slot_for_key( in psa_find_se_slot_for_key()
186 psa_status_t status; in psa_find_se_slot_for_key()
234 psa_status_t psa_destroy_se_key(psa_se_drv_table_entry_t *driver, in psa_destroy_se_key()
237 psa_status_t status; in psa_destroy_se_key()
[all …]
Dpsa_crypto_aead.h67 psa_status_t mbedtls_psa_aead_encrypt(
130 psa_status_t mbedtls_psa_aead_decrypt(
175 psa_status_t mbedtls_psa_aead_encrypt_setup(
218 psa_status_t mbedtls_psa_aead_decrypt_setup(
253 psa_status_t mbedtls_psa_aead_set_nonce(
294 psa_status_t mbedtls_psa_aead_set_lengths(
331 psa_status_t mbedtls_psa_aead_update_ad(
391 psa_status_t mbedtls_psa_aead_update(
463 psa_status_t mbedtls_psa_aead_finish(
496 psa_status_t mbedtls_psa_aead_abort(
Dpsa_crypto_rsa.c42 static psa_status_t psa_check_rsa_key_byte_aligned( in psa_check_rsa_key_byte_aligned()
46 psa_status_t status; in psa_check_rsa_key_byte_aligned()
59 psa_status_t mbedtls_psa_rsa_load_representation( in mbedtls_psa_rsa_load_representation()
63 psa_status_t status; in mbedtls_psa_rsa_load_representation()
109 psa_status_t mbedtls_psa_rsa_import_key( in mbedtls_psa_rsa_import_key()
115 psa_status_t status; in mbedtls_psa_rsa_import_key()
151 psa_status_t mbedtls_psa_rsa_export_key(psa_key_type_t type, in mbedtls_psa_rsa_export_key()
190 psa_status_t mbedtls_psa_rsa_export_public_key( in mbedtls_psa_rsa_export_public_key()
195 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_rsa_export_public_key()
217 static psa_status_t psa_rsa_read_exponent(const uint8_t *e_bytes, in psa_rsa_read_exponent()
[all …]
Dpsa_crypto_slot_management.c383 static psa_status_t psa_get_and_lock_key_slot_in_memory( in psa_get_and_lock_key_slot_in_memory()
386 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_get_and_lock_key_slot_in_memory()
430 psa_status_t psa_initialize_key_slots(void) in psa_initialize_key_slots()
501 static psa_status_t psa_allocate_volatile_key_slot(psa_key_id_t *key_id, in psa_allocate_volatile_key_slot()
537 psa_status_t status = psa_key_slot_state_transition(slot, in psa_allocate_volatile_key_slot()
555 psa_status_t psa_free_key_slot(size_t slice_idx, in psa_free_key_slot()
595 psa_status_t psa_reserve_free_key_slot(psa_key_id_t *volatile_key_id, in psa_reserve_free_key_slot()
598 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_reserve_free_key_slot()
682 static psa_status_t psa_load_persistent_key_into_slot(psa_key_slot_t *slot) in psa_load_persistent_key_into_slot()
684 psa_status_t status = PSA_SUCCESS; in psa_load_persistent_key_into_slot()
[all …]
Dpsa_crypto_ecp.h33 psa_status_t mbedtls_psa_ecp_load_representation(psa_key_type_t type,
46 psa_status_t mbedtls_psa_ecp_load_public_part(mbedtls_ecp_keypair *ecp);
74 psa_status_t mbedtls_psa_ecp_import_key(
88 psa_status_t mbedtls_psa_ecp_export_key(psa_key_type_t type,
118 psa_status_t mbedtls_psa_ecp_export_public_key(
142 psa_status_t mbedtls_psa_ecp_generate_key(
178 psa_status_t mbedtls_psa_ecdsa_sign_hash(
213 psa_status_t mbedtls_psa_ecdsa_verify_hash(
261 psa_status_t mbedtls_psa_key_agreement_ecdh(
Dpsa_crypto_cipher.h32 psa_status_t mbedtls_cipher_values_from_psa(psa_algorithm_t alg, psa_key_type_t key_type,
78 psa_status_t mbedtls_psa_cipher_encrypt_setup(
108 psa_status_t mbedtls_psa_cipher_decrypt_setup(
136 psa_status_t mbedtls_psa_cipher_set_iv(
161 psa_status_t mbedtls_psa_cipher_update(
192 psa_status_t mbedtls_psa_cipher_finish(
211 psa_status_t mbedtls_psa_cipher_abort(mbedtls_psa_cipher_operation_t *operation);
255 psa_status_t mbedtls_psa_cipher_encrypt(const psa_key_attributes_t *attributes,
306 psa_status_t mbedtls_psa_cipher_decrypt(const psa_key_attributes_t *attributes,
/mbedtls-latest/tests/include/test/drivers/
Dcipher.h25 psa_status_t forced_status;
26 psa_status_t forced_status_encrypt;
27 psa_status_t forced_status_set_iv;
46 psa_status_t mbedtls_test_transparent_cipher_encrypt(
54 psa_status_t mbedtls_test_transparent_cipher_decrypt(
61 psa_status_t mbedtls_test_transparent_cipher_encrypt_setup(
67 psa_status_t mbedtls_test_transparent_cipher_decrypt_setup(
73 psa_status_t mbedtls_test_transparent_cipher_abort(
76 psa_status_t mbedtls_test_transparent_cipher_set_iv(
80 psa_status_t mbedtls_test_transparent_cipher_update(
[all …]
Dmac.h19 psa_status_t forced_status;
23 psa_status_t driver_status;
36 psa_status_t mbedtls_test_transparent_mac_compute(
47 psa_status_t mbedtls_test_transparent_mac_sign_setup(
54 psa_status_t mbedtls_test_transparent_mac_verify_setup(
61 psa_status_t mbedtls_test_transparent_mac_update(
66 psa_status_t mbedtls_test_transparent_mac_sign_finish(
72 psa_status_t mbedtls_test_transparent_mac_verify_finish(
77 psa_status_t mbedtls_test_transparent_mac_abort(
80 psa_status_t mbedtls_test_opaque_mac_compute(
[all …]
Dkey_management.h25 psa_status_t forced_status;
67 psa_status_t mbedtls_test_transparent_init(void);
69 psa_status_t mbedtls_test_opaque_init(void);
72 psa_status_t mbedtls_test_opaque_unwrap_key(
76 psa_status_t mbedtls_test_transparent_generate_key(
80 psa_status_t mbedtls_test_opaque_generate_key(
84 psa_status_t mbedtls_test_opaque_export_key(
89 psa_status_t mbedtls_test_transparent_export_public_key(
94 psa_status_t mbedtls_test_opaque_export_public_key(
99 psa_status_t mbedtls_test_transparent_import_key(
[all …]
Daead.h19 psa_status_t forced_status;
34 psa_status_t driver_status;
47 psa_status_t mbedtls_test_transparent_aead_encrypt(
56 psa_status_t mbedtls_test_transparent_aead_decrypt(
65 psa_status_t mbedtls_test_transparent_aead_encrypt_setup(
71 psa_status_t mbedtls_test_transparent_aead_decrypt_setup(
77 psa_status_t mbedtls_test_transparent_aead_set_nonce(
82 psa_status_t mbedtls_test_transparent_aead_set_lengths(
87 psa_status_t mbedtls_test_transparent_aead_update_ad(
92 psa_status_t mbedtls_test_transparent_aead_update(
[all …]
/mbedtls-latest/tests/src/drivers/
Dtest_driver_cipher.c30 psa_status_t mbedtls_test_transparent_cipher_encrypt( in mbedtls_test_transparent_cipher_encrypt()
83 psa_status_t mbedtls_test_transparent_cipher_decrypt( in mbedtls_test_transparent_cipher_decrypt()
130 psa_status_t mbedtls_test_transparent_cipher_encrypt_setup( in mbedtls_test_transparent_cipher_encrypt_setup()
162 psa_status_t mbedtls_test_transparent_cipher_decrypt_setup( in mbedtls_test_transparent_cipher_decrypt_setup()
188 psa_status_t mbedtls_test_transparent_cipher_abort( in mbedtls_test_transparent_cipher_abort()
209 psa_status_t mbedtls_test_transparent_cipher_set_iv( in mbedtls_test_transparent_cipher_set_iv()
235 psa_status_t mbedtls_test_transparent_cipher_update( in mbedtls_test_transparent_cipher_update()
276 psa_status_t mbedtls_test_transparent_cipher_finish( in mbedtls_test_transparent_cipher_finish()
316 psa_status_t mbedtls_test_opaque_cipher_encrypt( in mbedtls_test_opaque_cipher_encrypt()
338 psa_status_t mbedtls_test_opaque_cipher_decrypt( in mbedtls_test_opaque_cipher_decrypt()
[all …]
/mbedtls-latest/programs/psa/
Dcrypto_examples.c29 (psa_status_t) actual, (psa_status_t) expected); \
49 static psa_status_t cipher_operation(psa_cipher_operation_t *operation, in cipher_operation()
57 psa_status_t status; in cipher_operation()
84 static psa_status_t cipher_encrypt(psa_key_id_t key, in cipher_encrypt()
95 psa_status_t status; in cipher_encrypt()
115 static psa_status_t cipher_decrypt(psa_key_id_t key, in cipher_decrypt()
126 psa_status_t status; in cipher_decrypt()
145 static psa_status_t
155 psa_status_t status; in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
194 static psa_status_t cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi(void) in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
[all …]

1234567