Home
last modified time | relevance | path

Searched refs:pub_head (Results 1 – 6 of 6) sorted by relevance

/optee_os/ta/pkcs11/src/
H A Dprocessing_ec.c480 static enum pkcs11_rc tee2pkcs_ec_attributes(struct obj_attrs **pub_head, in tee2pkcs_ec_attributes() argument
577 rc = add_attribute(pub_head, PKCS11_CKA_EC_POINT, ecpoint, dersize); in tee2pkcs_ec_attributes()
590 struct obj_attrs **pub_head, in generate_ec_keys() argument
602 if (!proc_params || !*pub_head || !*priv_head) in generate_ec_keys()
605 if (remove_empty_attribute(pub_head, PKCS11_CKA_EC_POINT) || in generate_ec_keys()
609 trace_attributes("public-key", *pub_head); in generate_ec_keys()
614 if (get_attribute_ptr(*pub_head, PKCS11_CKA_EC_PARAMS, in generate_ec_keys()
653 rc = tee2pkcs_ec_attributes(pub_head, priv_head, tee_obj, tee_size); in generate_ec_keys()
726 struct obj_attrs **pub_head, in generate_eddsa_keys() argument
736 if (!proc_params || !*pub_head || !*priv_head) in generate_eddsa_keys()
[all …]
H A Dprocessing_rsa.c643 static enum pkcs11_rc tee2pkcs_rsa_attributes(struct obj_attrs **pub_head, in tee2pkcs_rsa_attributes() argument
650 rc = tee2pkcs_add_attribute(pub_head, PKCS11_CKA_MODULUS, tee_obj, in tee2pkcs_rsa_attributes()
655 rc = get_attribute_ptr(*pub_head, PKCS11_CKA_PUBLIC_EXPONENT, &a_ptr, in tee2pkcs_rsa_attributes()
661 rc = remove_empty_attribute(pub_head, in tee2pkcs_rsa_attributes()
669 rc = tee2pkcs_add_attribute(pub_head, in tee2pkcs_rsa_attributes()
719 struct obj_attrs **pub_head, in generate_rsa_keys() argument
731 if (!proc_params || !*pub_head || !*priv_head) in generate_rsa_keys()
734 rc = get_attribute_ptr(*pub_head, PKCS11_CKA_MODULUS_BITS, &a_ptr, in generate_rsa_keys()
741 rc = get_attribute_ptr(*pub_head, PKCS11_CKA_PUBLIC_EXPONENT, &a_ptr, in generate_rsa_keys()
792 rc = tee2pkcs_rsa_attributes(pub_head, priv_head, tee_obj); in generate_rsa_keys()
H A Dprocessing.c410 struct obj_attrs *pub_head = NULL; in entry_generate_key_pair() local
460 rc = create_attributes_from_template(&pub_head, pub_template, in entry_generate_key_pair()
486 rc = add_missing_attribute_id(&pub_head, &priv_head); in entry_generate_key_pair()
491 rc = check_created_attrs(pub_head, priv_head); in entry_generate_key_pair()
495 rc = check_created_attrs_against_processing(proc_params->id, pub_head); in entry_generate_key_pair()
504 rc = check_created_attrs_against_token(session, pub_head); in entry_generate_key_pair()
508 rc = check_access_attrs_against_token(session, pub_head); in entry_generate_key_pair()
523 rc = generate_eddsa_keys(proc_params, &pub_head, &priv_head); in entry_generate_key_pair()
526 rc = generate_ec_keys(proc_params, &pub_head, &priv_head); in entry_generate_key_pair()
529 rc = generate_rsa_keys(proc_params, &pub_head, &priv_head); in entry_generate_key_pair()
[all …]
H A Dprocessing.h224 struct obj_attrs **pub_head,
228 struct obj_attrs **pub_head,
270 struct obj_attrs **pub_head,
H A Dpkcs11_attributes.h218 enum pkcs11_rc add_missing_attribute_id(struct obj_attrs **pub_head,
H A Dpkcs11_attributes.c2812 enum pkcs11_rc add_missing_attribute_id(struct obj_attrs **pub_head, in add_missing_attribute_id() argument
2821 assert(pub_head); in add_missing_attribute_id()
2824 rc = get_attribute_ptr(*pub_head, PKCS11_CKA_ID, &id1, &id1_size); in add_missing_attribute_id()
2854 return set_attribute(pub_head, PKCS11_CKA_ID, id2, id2_size); in add_missing_attribute_id()