• Home
  • Raw
  • Download

Lines Matching refs:psa_status_t

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()
888 static psa_status_t psa_get_and_lock_key_slot_with_policy( in psa_get_and_lock_key_slot_with_policy()
894 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_get_and_lock_key_slot_with_policy()
947 static psa_status_t psa_get_and_lock_transparent_key_slot_with_policy( in psa_get_and_lock_transparent_key_slot_with_policy()
953 psa_status_t status = psa_get_and_lock_key_slot_with_policy( key, p_slot, in psa_get_and_lock_transparent_key_slot_with_policy()
968 psa_status_t psa_remove_key_data_from_memory( psa_key_slot_t *slot ) in psa_remove_key_data_from_memory()
984 psa_status_t psa_wipe_key_slot( psa_key_slot_t *slot ) in psa_wipe_key_slot()
986 psa_status_t status = psa_remove_key_data_from_memory( slot ); in psa_wipe_key_slot()
1014 psa_status_t psa_destroy_key( mbedtls_svc_key_id_t key ) in psa_destroy_key()
1017 psa_status_t status; /* status of the last operation */ in psa_destroy_key()
1018 psa_status_t overall_status = PSA_SUCCESS; in psa_destroy_key()
1132 static psa_status_t psa_get_rsa_public_exponent( in psa_get_rsa_public_exponent()
1176 psa_status_t psa_get_key_attributes( mbedtls_svc_key_id_t key, in psa_get_key_attributes()
1179 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_get_key_attributes()
1180 psa_status_t unlock_status = PSA_ERROR_CORRUPTION_DETECTED; in psa_get_key_attributes()
1243 psa_status_t psa_get_key_slot_number( in psa_get_key_slot_number()
1257 static psa_status_t psa_export_key_buffer_internal( const uint8_t *key_buffer, in psa_export_key_buffer_internal()
1272 psa_status_t psa_export_key_internal( in psa_export_key_internal()
1296 psa_status_t psa_export_key( mbedtls_svc_key_id_t key, in psa_export_key()
1301 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_export_key()
1302 psa_status_t unlock_status = PSA_ERROR_CORRUPTION_DETECTED; in psa_export_key()
1338 psa_status_t psa_export_public_key_internal( in psa_export_public_key_internal()
1400 psa_status_t psa_export_public_key( mbedtls_svc_key_id_t key, in psa_export_public_key()
1405 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_export_public_key()
1406 psa_status_t unlock_status = PSA_ERROR_CORRUPTION_DETECTED; in psa_export_public_key()
1459 static psa_status_t psa_validate_key_policy( const psa_key_policy_t *policy ) in psa_validate_key_policy()
1489 static psa_status_t psa_validate_key_attributes( in psa_validate_key_attributes()
1493 psa_status_t status = PSA_ERROR_INVALID_ARGUMENT; in psa_validate_key_attributes()
1564 static psa_status_t psa_start_key_creation( in psa_start_key_creation()
1570 psa_status_t status; in psa_start_key_creation()
1695 static psa_status_t psa_finish_key_creation( in psa_finish_key_creation()
1700 psa_status_t status = PSA_SUCCESS; in psa_finish_key_creation()
1815 static psa_status_t psa_validate_optional_attributes( in psa_validate_optional_attributes()
1835 psa_status_t status = mbedtls_psa_rsa_load_representation( in psa_validate_optional_attributes()
1881 psa_status_t psa_import_key( const psa_key_attributes_t *attributes, in psa_import_key()
1886 psa_status_t status; in psa_import_key()
1964 psa_status_t mbedtls_psa_register_se_key( in mbedtls_psa_register_se_key()
1967 psa_status_t status; in mbedtls_psa_register_se_key()
1998 psa_status_t psa_copy_key( mbedtls_svc_key_id_t source_key, in psa_copy_key()
2002 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_copy_key()
2003 psa_status_t unlock_status = PSA_ERROR_CORRUPTION_DETECTED; in psa_copy_key()
2104 psa_status_t psa_hash_abort( psa_hash_operation_t *operation ) in psa_hash_abort()
2110 psa_status_t status = psa_driver_wrapper_hash_abort( operation ); in psa_hash_abort()
2116 psa_status_t psa_hash_setup( psa_hash_operation_t *operation, in psa_hash_setup()
2119 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_hash_setup()
2147 psa_status_t psa_hash_update( psa_hash_operation_t *operation, in psa_hash_update()
2151 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_hash_update()
2173 psa_status_t psa_hash_finish( psa_hash_operation_t *operation, in psa_hash_finish()
2182 psa_status_t status = psa_driver_wrapper_hash_finish( in psa_hash_finish()
2188 psa_status_t psa_hash_verify( psa_hash_operation_t *operation, in psa_hash_verify()
2194 psa_status_t status = psa_hash_finish( in psa_hash_verify()
2219 psa_status_t psa_hash_compute( psa_algorithm_t alg, in psa_hash_compute()
2232 psa_status_t psa_hash_compare( psa_algorithm_t alg, in psa_hash_compare()
2242 psa_status_t status = psa_driver_wrapper_hash_compute( in psa_hash_compare()
2261 psa_status_t psa_hash_clone( const psa_hash_operation_t *source_operation, in psa_hash_clone()
2270 psa_status_t status = psa_driver_wrapper_hash_clone( source_operation, in psa_hash_clone()
2283 psa_status_t psa_mac_abort( psa_mac_operation_t *operation ) in psa_mac_abort()
2289 psa_status_t status = psa_driver_wrapper_mac_abort( operation ); in psa_mac_abort()
2297 static psa_status_t psa_mac_finalize_alg_and_key_validation( in psa_mac_finalize_alg_and_key_validation()
2302 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_mac_finalize_alg_and_key_validation()
2337 static psa_status_t psa_mac_setup( psa_mac_operation_t *operation, in psa_mac_setup()
2342 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_mac_setup()
2343 psa_status_t unlock_status = PSA_ERROR_CORRUPTION_DETECTED; in psa_mac_setup()
2396 psa_status_t psa_mac_sign_setup( psa_mac_operation_t *operation, in psa_mac_sign_setup()
2403 psa_status_t psa_mac_verify_setup( psa_mac_operation_t *operation, in psa_mac_verify_setup()
2410 psa_status_t psa_mac_update( psa_mac_operation_t *operation, in psa_mac_update()
2422 psa_status_t status = psa_driver_wrapper_mac_update( operation, in psa_mac_update()
2430 psa_status_t psa_mac_sign_finish( psa_mac_operation_t *operation, in psa_mac_sign_finish()
2435 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_mac_sign_finish()
2436 psa_status_t abort_status = PSA_ERROR_CORRUPTION_DETECTED; in psa_mac_sign_finish()
2490 psa_status_t psa_mac_verify_finish( psa_mac_operation_t *operation, in psa_mac_verify_finish()
2494 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_mac_verify_finish()
2495 psa_status_t abort_status = PSA_ERROR_CORRUPTION_DETECTED; in psa_mac_verify_finish()
2524 static psa_status_t psa_mac_compute_internal( mbedtls_svc_key_id_t key, in psa_mac_compute_internal()
2533 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_mac_compute_internal()
2534 psa_status_t unlock_status = PSA_ERROR_CORRUPTION_DETECTED; in psa_mac_compute_internal()
2587 psa_status_t psa_mac_compute( mbedtls_svc_key_id_t key, in psa_mac_compute()
2600 psa_status_t psa_mac_verify( mbedtls_svc_key_id_t key, in psa_mac_verify()
2607 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_mac_verify()
2639 static psa_status_t psa_sign_verify_check_alg( int input_is_message, in psa_sign_verify_check_alg()
2662 static psa_status_t psa_sign_internal( mbedtls_svc_key_id_t key, in psa_sign_internal()
2671 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_sign_internal()
2672 psa_status_t unlock_status = PSA_ERROR_CORRUPTION_DETECTED; in psa_sign_internal()
2741 static psa_status_t psa_verify_internal( mbedtls_svc_key_id_t key, in psa_verify_internal()
2749 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_verify_internal()
2750 psa_status_t unlock_status = PSA_ERROR_CORRUPTION_DETECTED; in psa_verify_internal()
2791 psa_status_t psa_sign_message_builtin( in psa_sign_message_builtin()
2802 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_sign_message_builtin()
2826 psa_status_t psa_sign_message( mbedtls_svc_key_id_t key, in psa_sign_message()
2839 psa_status_t psa_verify_message_builtin( in psa_verify_message_builtin()
2849 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_verify_message_builtin()
2873 psa_status_t psa_verify_message( mbedtls_svc_key_id_t key, in psa_verify_message()
2885 psa_status_t psa_sign_hash_builtin( in psa_sign_hash_builtin()
2942 psa_status_t psa_sign_hash( mbedtls_svc_key_id_t key, in psa_sign_hash()
2955 psa_status_t psa_verify_hash_builtin( in psa_verify_hash_builtin()
3011 psa_status_t psa_verify_hash( mbedtls_svc_key_id_t key, in psa_verify_hash()
3035 psa_status_t psa_asymmetric_encrypt( mbedtls_svc_key_id_t key, in psa_asymmetric_encrypt()
3045 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_asymmetric_encrypt()
3046 psa_status_t unlock_status = PSA_ERROR_CORRUPTION_DETECTED; in psa_asymmetric_encrypt()
3151 psa_status_t psa_asymmetric_decrypt( mbedtls_svc_key_id_t key, in psa_asymmetric_decrypt()
3161 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_asymmetric_decrypt()
3162 psa_status_t unlock_status = PSA_ERROR_CORRUPTION_DETECTED; in psa_asymmetric_decrypt()
3273 static psa_status_t psa_cipher_setup( psa_cipher_operation_t *operation, in psa_cipher_setup()
3278 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_cipher_setup()
3279 psa_status_t unlock_status = PSA_ERROR_CORRUPTION_DETECTED; in psa_cipher_setup()
3339 psa_status_t psa_cipher_encrypt_setup( psa_cipher_operation_t *operation, in psa_cipher_encrypt_setup()
3346 psa_status_t psa_cipher_decrypt_setup( psa_cipher_operation_t *operation, in psa_cipher_decrypt_setup()
3353 psa_status_t psa_cipher_generate_iv( psa_cipher_operation_t *operation, in psa_cipher_generate_iv()
3358 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_cipher_generate_iv()
3410 psa_status_t psa_cipher_set_iv( psa_cipher_operation_t *operation, in psa_cipher_set_iv()
3414 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_cipher_set_iv()
3446 psa_status_t psa_cipher_update( psa_cipher_operation_t *operation, in psa_cipher_update()
3453 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_cipher_update()
3481 psa_status_t psa_cipher_finish( psa_cipher_operation_t *operation, in psa_cipher_finish()
3486 psa_status_t status = PSA_ERROR_GENERIC_ERROR; in psa_cipher_finish()
3517 psa_status_t psa_cipher_abort( psa_cipher_operation_t *operation ) in psa_cipher_abort()
3536 psa_status_t psa_cipher_encrypt( mbedtls_svc_key_id_t key, in psa_cipher_encrypt()
3544 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_cipher_encrypt()
3545 psa_status_t unlock_status = PSA_ERROR_CORRUPTION_DETECTED; in psa_cipher_encrypt()
3608 psa_status_t psa_cipher_decrypt( mbedtls_svc_key_id_t key, in psa_cipher_decrypt()
3616 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_cipher_decrypt()
3617 psa_status_t unlock_status = PSA_ERROR_CORRUPTION_DETECTED; in psa_cipher_decrypt()
3674 static psa_status_t psa_aead_check_nonce_length( psa_algorithm_t alg, in psa_aead_check_nonce_length()
3714 psa_status_t psa_aead_encrypt( mbedtls_svc_key_id_t key, in psa_aead_encrypt()
3726 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_aead_encrypt()
3764 psa_status_t psa_aead_decrypt( mbedtls_svc_key_id_t key, in psa_aead_decrypt()
3776 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_aead_decrypt()
3815 static psa_status_t psa_aead_setup( psa_aead_operation_t *operation, in psa_aead_setup()
3820 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_aead_setup()
3821 psa_status_t unlock_status = PSA_ERROR_CORRUPTION_DETECTED; in psa_aead_setup()
3890 psa_status_t psa_aead_encrypt_setup( psa_aead_operation_t *operation, in psa_aead_encrypt_setup()
3898 psa_status_t psa_aead_decrypt_setup( psa_aead_operation_t *operation, in psa_aead_decrypt_setup()
3906 psa_status_t psa_aead_generate_nonce( psa_aead_operation_t *operation, in psa_aead_generate_nonce()
3911 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_aead_generate_nonce()
3966 psa_status_t psa_aead_set_nonce( psa_aead_operation_t *operation, in psa_aead_set_nonce()
3970 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_aead_set_nonce()
4004 psa_status_t psa_aead_set_lengths( psa_aead_operation_t *operation, in psa_aead_set_lengths()
4008 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_aead_set_lengths()
4075 psa_status_t psa_aead_update_ad( psa_aead_operation_t *operation, in psa_aead_update_ad()
4079 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_aead_update_ad()
4125 psa_status_t psa_aead_update( psa_aead_operation_t *operation, in psa_aead_update()
4132 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_aead_update()
4188 static psa_status_t psa_aead_final_checks( const psa_aead_operation_t *operation ) in psa_aead_final_checks()
4201 psa_status_t psa_aead_finish( psa_aead_operation_t *operation, in psa_aead_finish()
4209 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_aead_finish()
4250 psa_status_t psa_aead_verify( psa_aead_operation_t *operation, in psa_aead_verify()
4257 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_aead_verify()
4283 psa_status_t psa_aead_abort( psa_aead_operation_t *operation ) in psa_aead_abort()
4285 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_aead_abort()
4315 static psa_status_t psa_key_derivation_start_hmac( in psa_key_derivation_start_hmac()
4321 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_key_derivation_start_hmac()
4354 psa_status_t psa_key_derivation_abort( psa_key_derivation_operation_t *operation ) in psa_key_derivation_abort()
4356 psa_status_t status = PSA_SUCCESS; in psa_key_derivation_abort()
4415 psa_status_t psa_key_derivation_get_capacity(const psa_key_derivation_operation_t *operation, in psa_key_derivation_get_capacity()
4428 psa_status_t psa_key_derivation_set_capacity( psa_key_derivation_operation_t *operation, in psa_key_derivation_set_capacity()
4442 static psa_status_t psa_key_derivation_hkdf_read( psa_hkdf_key_derivation_t *hkdf, in psa_key_derivation_hkdf_read()
4449 psa_status_t status; in psa_key_derivation_hkdf_read()
4517 static psa_status_t psa_key_derivation_tls12_prf_generate_next_block( in psa_key_derivation_tls12_prf_generate_next_block()
4525 psa_status_t status, cleanup_status; in psa_key_derivation_tls12_prf_generate_next_block()
4627 static psa_status_t psa_key_derivation_tls12_prf_read( in psa_key_derivation_tls12_prf_read()
4635 psa_status_t status; in psa_key_derivation_tls12_prf_read()
4679 psa_status_t psa_key_derivation_output_bytes( in psa_key_derivation_output_bytes()
4684 psa_status_t status; in psa_key_derivation_output_bytes()
4766 static psa_status_t psa_generate_derived_key_internal( in psa_generate_derived_key_internal()
4774 psa_status_t status; in psa_generate_derived_key_internal()
4820 psa_status_t psa_key_derivation_output_key( const psa_key_attributes_t *attributes, in psa_key_derivation_output_key()
4824 psa_status_t status; in psa_key_derivation_output_key()
4871 static psa_status_t psa_key_derivation_setup_kdf( in psa_key_derivation_setup_kdf()
4919 psa_status_t psa_key_derivation_setup( psa_key_derivation_operation_t *operation, in psa_key_derivation_setup()
4922 psa_status_t status; in psa_key_derivation_setup()
4955 static psa_status_t psa_hkdf_input( psa_hkdf_key_derivation_t *hkdf, in psa_hkdf_input()
4961 psa_status_t status; in psa_hkdf_input()
5027 static psa_status_t psa_tls12_prf_set_seed( psa_tls12_prf_key_derivation_t *prf, in psa_tls12_prf_set_seed()
5049 static psa_status_t psa_tls12_prf_set_key( psa_tls12_prf_key_derivation_t *prf, in psa_tls12_prf_set_key()
5071 static psa_status_t psa_tls12_prf_set_label( psa_tls12_prf_key_derivation_t *prf, in psa_tls12_prf_set_label()
5093 static psa_status_t psa_tls12_prf_input( psa_tls12_prf_key_derivation_t *prf, in psa_tls12_prf_input()
5114 static psa_status_t psa_tls12_prf_psk_to_ms_set_key( in psa_tls12_prf_psk_to_ms_set_key()
5119 psa_status_t status; in psa_tls12_prf_psk_to_ms_set_key()
5148 static psa_status_t psa_tls12_prf_psk_to_ms_input( in psa_tls12_prf_psk_to_ms_input()
5198 static psa_status_t psa_key_derivation_input_internal( in psa_key_derivation_input_internal()
5205 psa_status_t status; in psa_key_derivation_input_internal()
5251 psa_status_t psa_key_derivation_input_bytes( in psa_key_derivation_input_bytes()
5262 psa_status_t psa_key_derivation_input_key( in psa_key_derivation_input_key()
5267 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_key_derivation_input_key()
5268 psa_status_t unlock_status = PSA_ERROR_CORRUPTION_DETECTED; in psa_key_derivation_input_key()
5301 static psa_status_t psa_key_agreement_ecdh( const uint8_t *peer_key, in psa_key_agreement_ecdh()
5310 psa_status_t status; in psa_key_agreement_ecdh()
5357 static psa_status_t psa_key_agreement_raw_internal( psa_algorithm_t alg, in psa_key_agreement_raw_internal()
5366 psa_status_t status; in psa_key_agreement_raw_internal()
5404 static psa_status_t psa_key_agreement_internal( psa_key_derivation_operation_t *operation, in psa_key_agreement_internal()
5410 psa_status_t status; in psa_key_agreement_internal()
5438 psa_status_t psa_key_derivation_key_agreement( psa_key_derivation_operation_t *operation, in psa_key_derivation_key_agreement()
5444 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_key_derivation_key_agreement()
5445 psa_status_t unlock_status = PSA_ERROR_CORRUPTION_DETECTED; in psa_key_derivation_key_agreement()
5472 psa_status_t psa_raw_key_agreement( psa_algorithm_t alg, in psa_raw_key_agreement()
5480 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_raw_key_agreement()
5481 psa_status_t unlock_status = PSA_ERROR_CORRUPTION_DETECTED; in psa_raw_key_agreement()
5568 static psa_status_t mbedtls_psa_random_seed( mbedtls_psa_random_context_t *rng ) in mbedtls_psa_random_seed()
5582 psa_status_t psa_generate_random( uint8_t *output, in psa_generate_random()
5590 psa_status_t status = mbedtls_psa_external_get_random( &global_data.rng, in psa_generate_random()
5644 psa_status_t status = psa_generate_random( output, output_size ); in mbedtls_psa_get_random()
5655 psa_status_t mbedtls_psa_inject_entropy( const uint8_t *seed, in mbedtls_psa_inject_entropy()
5683 static psa_status_t psa_validate_key_type_and_size_for_key_generation( in psa_validate_key_type_and_size_for_key_generation()
5686 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_validate_key_type_and_size_for_key_generation()
5724 psa_status_t psa_generate_key_internal( in psa_generate_key_internal()
5728 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_generate_key_internal()
5779 psa_status_t psa_generate_key( const psa_key_attributes_t *attributes, in psa_generate_key()
5782 psa_status_t status; in psa_generate_key()
5854 psa_status_t mbedtls_psa_crypto_configure_entropy_sources( in mbedtls_psa_crypto_configure_entropy_sources()
5889 static psa_status_t psa_crypto_recover_transaction( in psa_crypto_recover_transaction()
5908 psa_status_t psa_crypto_init( void ) in psa_crypto_init()
5910 psa_status_t status; in psa_crypto_init()