Lines Matching refs:TEE_SUCCESS

648 	return TEE_SUCCESS;  in op_u32_to_binary_helper()
675 return TEE_SUCCESS; in op_attr_secret_value_from_user()
688 if (res != TEE_SUCCESS) in op_attr_secret_value_to_user()
693 if (res != TEE_SUCCESS) in op_attr_secret_value_to_user()
710 if (res != TEE_SUCCESS) in op_attr_secret_value_to_binary()
720 return TEE_SUCCESS; in op_attr_secret_value_to_binary()
754 return TEE_SUCCESS; in op_attr_secret_value_from_obj()
777 TEE_Result res = TEE_SUCCESS; in op_attr_bignum_to_user()
783 if (res != TEE_SUCCESS) in op_attr_bignum_to_user()
788 if (res != TEE_SUCCESS) in op_attr_bignum_to_user()
791 return TEE_SUCCESS; in op_attr_bignum_to_user()
803 if (res != TEE_SUCCESS) in op_attr_bignum_to_user()
810 return TEE_SUCCESS; in op_attr_bignum_to_user()
822 if (res != TEE_SUCCESS) in op_attr_bignum_to_binary()
832 return TEE_SUCCESS; in op_attr_bignum_to_binary()
858 return TEE_SUCCESS; in op_attr_bignum_from_obj()
886 return TEE_SUCCESS; in op_attr_value_from_user()
900 if (res != TEE_SUCCESS) in op_attr_value_to_user()
931 return TEE_SUCCESS; in op_attr_value_from_obj()
951 return TEE_SUCCESS; in op_attr_25519_from_user()
964 if (res != TEE_SUCCESS) in op_attr_25519_to_user()
968 if (res != TEE_SUCCESS) in op_attr_25519_to_user()
986 if (res != TEE_SUCCESS) in op_attr_25519_to_binary()
996 return TEE_SUCCESS; in op_attr_25519_to_binary()
1029 return TEE_SUCCESS; in op_attr_25519_from_obj()
1115 TEE_Result res = TEE_SUCCESS; in syscall_cryp_obj_get_info()
1120 if (res != TEE_SUCCESS) in syscall_cryp_obj_get_info()
1140 TEE_Result res = TEE_SUCCESS; in syscall_cryp_obj_restrict_usage()
1144 if (res != TEE_SUCCESS) in syscall_cryp_obj_restrict_usage()
1207 TEE_Result res = TEE_SUCCESS; in syscall_cryp_obj_get_attr()
1215 if (res != TEE_SUCCESS) in syscall_cryp_obj_get_attr()
1290 return TEE_SUCCESS; /* pure data object */ in tee_obj_attr_to_binary()
1303 if (res != TEE_SUCCESS) in tee_obj_attr_to_binary()
1310 return TEE_SUCCESS; in tee_obj_attr_to_binary()
1321 return TEE_SUCCESS; /* pure data object */ in tee_obj_attr_from_binary()
1336 return TEE_SUCCESS; in tee_obj_attr_from_binary()
1350 return TEE_SUCCESS; /* pure data object */ in tee_obj_attr_copy_from()
1364 if (res != TEE_SUCCESS) in tee_obj_attr_copy_from()
1419 if (res != TEE_SUCCESS) in tee_obj_attr_copy_from()
1425 return TEE_SUCCESS; in tee_obj_attr_copy_from()
1455 return TEE_SUCCESS; in check_key_size()
1461 TEE_Result res = TEE_SUCCESS; in tee_obj_set_type()
1546 if (res != TEE_SUCCESS) in tee_obj_set_type()
1553 return TEE_SUCCESS; in tee_obj_set_type()
1560 TEE_Result res = TEE_SUCCESS; in syscall_cryp_obj_alloc()
1569 if (res != TEE_SUCCESS) { in syscall_cryp_obj_alloc()
1577 if (res != TEE_SUCCESS) in syscall_cryp_obj_alloc()
1585 TEE_Result res = TEE_SUCCESS; in syscall_cryp_obj_close()
1589 if (res != TEE_SUCCESS) in syscall_cryp_obj_close()
1600 return TEE_SUCCESS; in syscall_cryp_obj_close()
1606 TEE_Result res = TEE_SUCCESS; in syscall_cryp_obj_reset()
1610 if (res != TEE_SUCCESS) in syscall_cryp_obj_reset()
1624 return TEE_SUCCESS; in syscall_cryp_obj_reset()
1631 TEE_Result res = TEE_SUCCESS; in copy_in_attrs()
1644 if (res != TEE_SUCCESS) in copy_in_attrs()
1662 if (res != TEE_SUCCESS) in copy_in_attrs()
1669 return TEE_SUCCESS; in copy_in_attrs()
1758 return TEE_SUCCESS; in tee_svc_cryp_check_attr()
1787 return TEE_SUCCESS; in get_ec_key_size()
1805 TEE_Result res = TEE_SUCCESS; in tee_svc_cryp_obj_populate_type()
1831 if (res != TEE_SUCCESS) in tee_svc_cryp_obj_populate_type()
1851 if (res != TEE_SUCCESS) in tee_svc_cryp_obj_populate_type()
1865 if (res != TEE_SUCCESS) in tee_svc_cryp_obj_populate_type()
1892 return TEE_SUCCESS; in tee_svc_cryp_obj_populate_type()
1900 TEE_Result res = TEE_SUCCESS; in syscall_cryp_obj_populate()
1907 if (res != TEE_SUCCESS) in syscall_cryp_obj_populate()
1931 if (res != TEE_SUCCESS) in syscall_cryp_obj_populate()
1936 if (res != TEE_SUCCESS) in syscall_cryp_obj_populate()
1940 if (res == TEE_SUCCESS) in syscall_cryp_obj_populate()
1951 TEE_Result res = TEE_SUCCESS; in syscall_cryp_obj_copy()
1957 if (res != TEE_SUCCESS) in syscall_cryp_obj_copy()
1962 if (res != TEE_SUCCESS) in syscall_cryp_obj_copy()
1973 if (res != TEE_SUCCESS) in syscall_cryp_obj_copy()
1979 return TEE_SUCCESS; in syscall_cryp_obj_copy()
2013 return TEE_SUCCESS; in check_pub_rsa_key()
2021 TEE_Result res = TEE_SUCCESS; in tee_svc_obj_generate_key_rsa()
2028 if (res != TEE_SUCCESS) in tee_svc_obj_generate_key_rsa()
2038 if (res != TEE_SUCCESS) in tee_svc_obj_generate_key_rsa()
2044 return TEE_SUCCESS; in tee_svc_obj_generate_key_rsa()
2056 if (res != TEE_SUCCESS) in tee_svc_obj_generate_key_dsa()
2060 if (res != TEE_SUCCESS) in tee_svc_obj_generate_key_dsa()
2066 return TEE_SUCCESS; in tee_svc_obj_generate_key_dsa()
2081 if (res != TEE_SUCCESS) in tee_svc_obj_generate_key_dh()
2091 if (res != TEE_SUCCESS) in tee_svc_obj_generate_key_dh()
2098 return TEE_SUCCESS; in tee_svc_obj_generate_key_dh()
2111 if (res != TEE_SUCCESS) in tee_svc_obj_generate_key_ecc()
2117 if (res != TEE_SUCCESS) in tee_svc_obj_generate_key_ecc()
2125 return TEE_SUCCESS; in tee_svc_obj_generate_key_ecc()
2142 if (res != TEE_SUCCESS) in tee_svc_obj_generate_key_x25519()
2148 if (res != TEE_SUCCESS) in tee_svc_obj_generate_key_x25519()
2154 return TEE_SUCCESS; in tee_svc_obj_generate_key_x25519()
2171 if (res != TEE_SUCCESS) in tee_svc_obj_generate_key_ed25519()
2177 if (res != TEE_SUCCESS) in tee_svc_obj_generate_key_ed25519()
2183 return TEE_SUCCESS; in tee_svc_obj_generate_key_ed25519()
2230 return TEE_SUCCESS; in tee_svc_obj_ed25519_parse_params()
2246 if (err != TEE_SUCCESS) in tee_svc_obj_ed25519_sign()
2288 TEE_Result res = TEE_SUCCESS; in syscall_obj_generate_key()
2297 if (res != TEE_SUCCESS) in syscall_obj_generate_key()
2326 if (res != TEE_SUCCESS) in syscall_obj_generate_key()
2331 if (res != TEE_SUCCESS) in syscall_obj_generate_key()
2363 if (res != TEE_SUCCESS) in syscall_obj_generate_key()
2376 if (res != TEE_SUCCESS) in syscall_obj_generate_key()
2383 if (res != TEE_SUCCESS) in syscall_obj_generate_key()
2390 if (res != TEE_SUCCESS) in syscall_obj_generate_key()
2401 if (res != TEE_SUCCESS) in syscall_obj_generate_key()
2408 if (res != TEE_SUCCESS) in syscall_obj_generate_key()
2415 if (res != TEE_SUCCESS) in syscall_obj_generate_key()
2425 if (res == TEE_SUCCESS) { in syscall_obj_generate_key()
2442 return TEE_SUCCESS; in tee_svc_cryp_get_state()
2452 if (tee_obj_get(utc, cs->key1, &o) == TEE_SUCCESS) in cryp_state_free()
2454 if (tee_obj_get(utc, cs->key2, &o) == TEE_SUCCESS) in cryp_state_free()
2591 return TEE_SUCCESS; in tee_svc_cryp_check_key_type()
2600 TEE_Result res = TEE_SUCCESS; in syscall_cryp_state_alloc()
2607 if (res != TEE_SUCCESS) in syscall_cryp_state_alloc()
2612 if (res != TEE_SUCCESS) in syscall_cryp_state_alloc()
2617 if (res != TEE_SUCCESS) in syscall_cryp_state_alloc()
2622 if (res != TEE_SUCCESS) in syscall_cryp_state_alloc()
2643 if (res != TEE_SUCCESS) in syscall_cryp_state_alloc()
2652 if (res != TEE_SUCCESS) in syscall_cryp_state_alloc()
2661 if (res != TEE_SUCCESS) in syscall_cryp_state_alloc()
2670 if (res != TEE_SUCCESS) in syscall_cryp_state_alloc()
2697 if (res != TEE_SUCCESS) in syscall_cryp_state_alloc()
2701 if (res != TEE_SUCCESS) in syscall_cryp_state_alloc()
2715 if (res != TEE_SUCCESS) in syscall_cryp_state_alloc()
2723 TEE_Result res = TEE_SUCCESS; in syscall_cryp_state_copy()
2728 if (res != TEE_SUCCESS) in syscall_cryp_state_copy()
2732 if (res != TEE_SUCCESS) in syscall_cryp_state_copy()
2757 return TEE_SUCCESS; in syscall_cryp_state_copy()
2771 TEE_Result res = TEE_SUCCESS; in syscall_cryp_state_free()
2775 if (res != TEE_SUCCESS) in syscall_cryp_state_free()
2778 return TEE_SUCCESS; in syscall_cryp_state_free()
2786 TEE_Result res = TEE_SUCCESS; in syscall_hash_init()
2790 if (res != TEE_SUCCESS) in syscall_hash_init()
2796 if (res != TEE_SUCCESS) in syscall_hash_init()
2806 if (res != TEE_SUCCESS) in syscall_hash_init()
2815 if (res != TEE_SUCCESS) in syscall_hash_init()
2825 return TEE_SUCCESS; in syscall_hash_init()
2833 TEE_Result res = TEE_SUCCESS; in syscall_hash_update()
2841 return TEE_SUCCESS; in syscall_hash_update()
2849 if (res != TEE_SUCCESS) in syscall_hash_update()
2853 if (res != TEE_SUCCESS) in syscall_hash_update()
2862 if (res != TEE_SUCCESS) in syscall_hash_update()
2867 if (res != TEE_SUCCESS) in syscall_hash_update()
2874 return TEE_SUCCESS; in syscall_hash_update()
2882 TEE_Result res2 = TEE_SUCCESS; in syscall_hash_final()
2883 TEE_Result res = TEE_SUCCESS; in syscall_hash_final()
2898 if (res != TEE_SUCCESS) in syscall_hash_final()
2902 if (res != TEE_SUCCESS) in syscall_hash_final()
2910 if (res != TEE_SUCCESS) in syscall_hash_final()
2914 if (res != TEE_SUCCESS) in syscall_hash_final()
2923 if (res != TEE_SUCCESS) in syscall_hash_final()
2932 if (res != TEE_SUCCESS) in syscall_hash_final()
2937 if (res != TEE_SUCCESS) in syscall_hash_final()
2943 if (res != TEE_SUCCESS) in syscall_hash_final()
2952 if (res != TEE_SUCCESS) in syscall_hash_final()
2957 if (res != TEE_SUCCESS) in syscall_hash_final()
2966 if (res2 != TEE_SUCCESS) in syscall_hash_final()
2978 TEE_Result res = TEE_SUCCESS; in syscall_cipher_init()
2982 if (res != TEE_SUCCESS) in syscall_cipher_init()
2994 if (res != TEE_SUCCESS) in syscall_cipher_init()
2998 if (res != TEE_SUCCESS) in syscall_cipher_init()
3005 if (tee_obj_get(utc, cs->key2, &o) == TEE_SUCCESS) { in syscall_cipher_init()
3020 if (res != TEE_SUCCESS) in syscall_cipher_init()
3026 return TEE_SUCCESS; in syscall_cipher_init()
3035 TEE_Result res = TEE_SUCCESS; in tee_svc_cipher_update_helper()
3039 if (res != TEE_SUCCESS) in tee_svc_cipher_update_helper()
3052 if (res != TEE_SUCCESS) in tee_svc_cipher_update_helper()
3064 if (res != TEE_SUCCESS) in tee_svc_cipher_update_helper()
3068 if (res != TEE_SUCCESS) in tee_svc_cipher_update_helper()
3089 if ((res == TEE_SUCCESS || res == TEE_ERROR_SHORT_BUFFER) && in tee_svc_cipher_update_helper()
3094 if (res2 != TEE_SUCCESS) in tee_svc_cipher_update_helper()
3160 return TEE_SUCCESS; in get_hkdf_params()
3202 return TEE_SUCCESS; in get_concat_kdf_params()
3249 return TEE_SUCCESS; in get_pbkdf2_params()
3355 return TEE_SUCCESS; in get_sm2_kep_params()
3380 if (res != TEE_SUCCESS) in syscall_cryp_derive_key()
3390 if (res != TEE_SUCCESS) in syscall_cryp_derive_key()
3395 if (res != TEE_SUCCESS) in syscall_cryp_derive_key()
3399 if (res != TEE_SUCCESS) in syscall_cryp_derive_key()
3437 if (res == TEE_SUCCESS) { in syscall_cryp_derive_key()
3487 if (res != TEE_SUCCESS) in syscall_cryp_derive_key()
3503 if (res == TEE_SUCCESS) { in syscall_cryp_derive_key()
3522 if (res != TEE_SUCCESS) in syscall_cryp_derive_key()
3534 if (res == TEE_SUCCESS) { in syscall_cryp_derive_key()
3551 if (res != TEE_SUCCESS) in syscall_cryp_derive_key()
3563 if (res == TEE_SUCCESS) { in syscall_cryp_derive_key()
3580 if (res != TEE_SUCCESS) in syscall_cryp_derive_key()
3592 if (res == TEE_SUCCESS) { in syscall_cryp_derive_key()
3610 if (res != TEE_SUCCESS) in syscall_cryp_derive_key()
3615 if (res != TEE_SUCCESS) in syscall_cryp_derive_key()
3626 if (res == TEE_SUCCESS) { in syscall_cryp_derive_key()
3663 if (res == TEE_SUCCESS) { in syscall_cryp_derive_key()
3681 TEE_Result res = TEE_SUCCESS; in syscall_cryp_random_number_generate()
3688 if (res != TEE_SUCCESS) in syscall_cryp_random_number_generate()
3692 if (res != TEE_SUCCESS) in syscall_cryp_random_number_generate()
3705 TEE_Result res = TEE_SUCCESS; in syscall_authenc_init()
3714 if (res != TEE_SUCCESS) in syscall_authenc_init()
3718 if (res != TEE_SUCCESS) in syscall_authenc_init()
3722 if (res != TEE_SUCCESS) in syscall_authenc_init()
3731 if (res != TEE_SUCCESS) in syscall_authenc_init()
3737 return TEE_SUCCESS; in syscall_authenc_init()
3744 TEE_Result res = TEE_SUCCESS; in syscall_authenc_update_aad()
3753 if (res != TEE_SUCCESS) in syscall_authenc_update_aad()
3757 if (res != TEE_SUCCESS) in syscall_authenc_update_aad()
3768 if (res != TEE_SUCCESS) in syscall_authenc_update_aad()
3771 return TEE_SUCCESS; in syscall_authenc_update_aad()
3781 TEE_Result res = TEE_SUCCESS; in syscall_authenc_update_payload()
3785 if (res != TEE_SUCCESS) in syscall_authenc_update_payload()
3801 if (res != TEE_SUCCESS) in syscall_authenc_update_payload()
3805 if (res != TEE_SUCCESS) in syscall_authenc_update_payload()
3813 if (res != TEE_SUCCESS) in syscall_authenc_update_payload()
3824 if (res == TEE_SUCCESS || res == TEE_ERROR_SHORT_BUFFER) { in syscall_authenc_update_payload()
3827 if (res2 != TEE_SUCCESS) in syscall_authenc_update_payload()
3842 TEE_Result res = TEE_SUCCESS; in syscall_authenc_enc_final()
3847 if (res != TEE_SUCCESS) in syscall_authenc_enc_final()
3867 if (res != TEE_SUCCESS) in syscall_authenc_enc_final()
3874 if (res != TEE_SUCCESS) in syscall_authenc_enc_final()
3882 if (res != TEE_SUCCESS) in syscall_authenc_enc_final()
3892 if (res != TEE_SUCCESS) in syscall_authenc_enc_final()
3900 if (res != TEE_SUCCESS) in syscall_authenc_enc_final()
3907 if (res == TEE_SUCCESS || res == TEE_ERROR_SHORT_BUFFER) { in syscall_authenc_enc_final()
3908 TEE_Result res2 = TEE_SUCCESS; in syscall_authenc_enc_final()
3912 if (res2 != TEE_SUCCESS) in syscall_authenc_enc_final()
3917 if (res2 != TEE_SUCCESS) in syscall_authenc_enc_final()
3931 TEE_Result res = TEE_SUCCESS; in syscall_authenc_dec_final()
3935 if (res != TEE_SUCCESS) in syscall_authenc_dec_final()
3955 if (res != TEE_SUCCESS) in syscall_authenc_dec_final()
3962 if (res != TEE_SUCCESS) in syscall_authenc_dec_final()
3970 if (res != TEE_SUCCESS) in syscall_authenc_dec_final()
3981 if (res != TEE_SUCCESS) in syscall_authenc_dec_final()
3988 if ((res == TEE_SUCCESS || res == TEE_ERROR_SHORT_BUFFER) && in syscall_authenc_dec_final()
3992 if (res2 != TEE_SUCCESS) in syscall_authenc_dec_final()
4027 TEE_Result res = TEE_SUCCESS; in syscall_asymm_operate()
4039 if (res != TEE_SUCCESS) in syscall_asymm_operate()
4049 if (res != TEE_SUCCESS) in syscall_asymm_operate()
4053 if (res != TEE_SUCCESS) in syscall_asymm_operate()
4061 if (res != TEE_SUCCESS) in syscall_asymm_operate()
4071 if (res != TEE_SUCCESS) in syscall_asymm_operate()
4075 if (res != TEE_SUCCESS) in syscall_asymm_operate()
4197 if (res == TEE_SUCCESS || res == TEE_ERROR_SHORT_BUFFER) { in syscall_asymm_operate()
4200 if (res2 != TEE_SUCCESS) in syscall_asymm_operate()
4215 TEE_Result res = TEE_SUCCESS; in syscall_asymm_verify()
4224 if (res != TEE_SUCCESS) in syscall_asymm_verify()
4237 if (res != TEE_SUCCESS) in syscall_asymm_verify()
4244 if (res != TEE_SUCCESS) in syscall_asymm_verify()
4254 if (res != TEE_SUCCESS) in syscall_asymm_verify()
4258 if (res != TEE_SUCCESS) in syscall_asymm_verify()
4270 if (res != TEE_SUCCESS) in syscall_asymm_verify()
4287 if (res != TEE_SUCCESS) in syscall_asymm_verify()