Lines Matching refs:priv_head
466 struct obj_attrs **priv_head, in tee2pkcs_ec_attributes() argument
482 rc = tee2pkcs_add_attribute(priv_head, PKCS11_CKA_VALUE, in tee2pkcs_ec_attributes()
556 rc = add_attribute(priv_head, PKCS11_CKA_EC_POINT, ecpoint, dersize); in tee2pkcs_ec_attributes()
574 struct obj_attrs **priv_head) in generate_ec_keys() argument
585 if (!proc_params || !*pub_head || !*priv_head) in generate_ec_keys()
589 remove_empty_attribute(priv_head, PKCS11_CKA_VALUE) || in generate_ec_keys()
590 remove_empty_attribute(priv_head, PKCS11_CKA_EC_PARAMS)) { in generate_ec_keys()
593 trace_attributes("private-key", *priv_head); in generate_ec_keys()
632 rc = add_attribute(priv_head, PKCS11_CKA_EC_PARAMS, a_ptr, a_size); in generate_ec_keys()
636 rc = tee2pkcs_ec_attributes(pub_head, priv_head, tee_obj, tee_size); in generate_ec_keys()
710 struct obj_attrs **priv_head) in generate_eddsa_keys() argument
719 if (!proc_params || !*pub_head || !*priv_head) in generate_eddsa_keys()
723 remove_empty_attribute(priv_head, PKCS11_CKA_VALUE) || in generate_eddsa_keys()
724 remove_empty_attribute(priv_head, PKCS11_CKA_EC_POINT) || in generate_eddsa_keys()
725 remove_empty_attribute(priv_head, PKCS11_CKA_EC_PARAMS)) { in generate_eddsa_keys()
728 trace_attributes("private-key", *priv_head); in generate_eddsa_keys()
762 rc = add_attribute(priv_head, PKCS11_CKA_EC_PARAMS, a_ptr, a_size); in generate_eddsa_keys()
766 rc = tee2pkcs_add_attribute(priv_head, PKCS11_CKA_VALUE, in generate_eddsa_keys()
771 rc = tee2pkcs_add_attribute(priv_head, PKCS11_CKA_EC_POINT, in generate_eddsa_keys()