Lines Matching refs:tee_obj
645 TEE_ObjectHandle tee_obj) in tee2pkcs_rsa_attributes() argument
650 rc = tee2pkcs_add_attribute(pub_head, PKCS11_CKA_MODULUS, tee_obj, in tee2pkcs_rsa_attributes()
671 tee_obj, in tee2pkcs_rsa_attributes()
677 rc = tee2pkcs_add_attribute(priv_head, PKCS11_CKA_MODULUS, tee_obj, in tee2pkcs_rsa_attributes()
683 tee_obj, TEE_ATTR_RSA_PUBLIC_EXPONENT); in tee2pkcs_rsa_attributes()
688 tee_obj, TEE_ATTR_RSA_PRIVATE_EXPONENT); in tee2pkcs_rsa_attributes()
692 rc = tee2pkcs_add_attribute(priv_head, PKCS11_CKA_PRIME_1, tee_obj, in tee2pkcs_rsa_attributes()
697 rc = tee2pkcs_add_attribute(priv_head, PKCS11_CKA_PRIME_2, tee_obj, in tee2pkcs_rsa_attributes()
702 rc = tee2pkcs_add_attribute(priv_head, PKCS11_CKA_EXPONENT_1, tee_obj, in tee2pkcs_rsa_attributes()
707 rc = tee2pkcs_add_attribute(priv_head, PKCS11_CKA_EXPONENT_2, tee_obj, in tee2pkcs_rsa_attributes()
712 rc = tee2pkcs_add_attribute(priv_head, PKCS11_CKA_COEFFICIENT, tee_obj, in tee2pkcs_rsa_attributes()
725 TEE_ObjectHandle tee_obj = TEE_HANDLE_NULL; in generate_rsa_keys() local
768 &tee_obj); in generate_rsa_keys()
776 res = TEE_RestrictObjectUsage1(tee_obj, TEE_USAGE_EXTRACTABLE); in generate_rsa_keys()
784 res = TEE_GenerateKey(tee_obj, modulus_bits, tee_attrs, tee_count); in generate_rsa_keys()
792 rc = tee2pkcs_rsa_attributes(pub_head, priv_head, tee_obj); in generate_rsa_keys()
795 if (tee_obj != TEE_HANDLE_NULL) in generate_rsa_keys()
796 TEE_CloseObject(tee_obj); in generate_rsa_keys()