Lines Matching refs:rc
328 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in load_tee_ec_key_attrs() local
354 rc = PKCS11_CKR_OK; in load_tee_ec_key_attrs()
384 rc = PKCS11_CKR_OK; in load_tee_ec_key_attrs()
393 if (rc == PKCS11_CKR_OK) { in load_tee_ec_key_attrs()
400 return rc; in load_tee_ec_key_attrs()
462 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in tee2pkcs_ec_attributes() local
464 rc = tee2pkcs_add_attribute(priv_head, PKCS11_CKA_VALUE, in tee2pkcs_ec_attributes()
466 if (rc) in tee2pkcs_ec_attributes()
469 rc = alloc_get_tee_attribute_data(tee_obj, TEE_ATTR_ECC_PUBLIC_VALUE_X, in tee2pkcs_ec_attributes()
471 if (rc) in tee2pkcs_ec_attributes()
474 rc = alloc_get_tee_attribute_data(tee_obj, TEE_ATTR_ECC_PUBLIC_VALUE_Y, in tee2pkcs_ec_attributes()
476 if (rc) in tee2pkcs_ec_attributes()
481 rc = PKCS11_CKR_ARGUMENTS_BAD; in tee2pkcs_ec_attributes()
496 rc = PKCS11_CKR_MECHANISM_PARAM_INVALID; in tee2pkcs_ec_attributes()
502 rc = PKCS11_CKR_DEVICE_MEMORY; in tee2pkcs_ec_attributes()
538 rc = add_attribute(priv_head, PKCS11_CKA_EC_POINT, ecpoint, dersize); in tee2pkcs_ec_attributes()
539 if (rc) in tee2pkcs_ec_attributes()
542 rc = add_attribute(pub_head, PKCS11_CKA_EC_POINT, ecpoint, dersize); in tee2pkcs_ec_attributes()
551 return rc; in tee2pkcs_ec_attributes()
558 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in generate_ec_keys() local
603 rc = tee2pkcs_error(res); in generate_ec_keys()
609 rc = tee2pkcs_error(res); in generate_ec_keys()
614 rc = add_attribute(priv_head, PKCS11_CKA_EC_PARAMS, a_ptr, a_size); in generate_ec_keys()
615 if (rc) in generate_ec_keys()
618 rc = tee2pkcs_ec_attributes(pub_head, priv_head, tee_obj, tee_size); in generate_ec_keys()
624 return rc; in generate_ec_keys()