Home
last modified time | relevance | path

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

/optee_os/ta/pkcs11/src/
H A Dprocessing_ec.c481 struct obj_attrs **priv_head, in tee2pkcs_ec_attributes() argument
497 rc = tee2pkcs_add_attribute(priv_head, PKCS11_CKA_VALUE, in tee2pkcs_ec_attributes()
572 rc = add_attribute(priv_head, PKCS11_CKA_OPTEE_HIDDEN_EC_POINT, in tee2pkcs_ec_attributes()
591 struct obj_attrs **priv_head) in generate_ec_keys() argument
602 if (!proc_params || !*pub_head || !*priv_head) in generate_ec_keys()
606 remove_empty_attribute(priv_head, PKCS11_CKA_VALUE) || in generate_ec_keys()
607 remove_empty_attribute(priv_head, PKCS11_CKA_EC_PARAMS)) { in generate_ec_keys()
610 trace_attributes("private-key", *priv_head); in generate_ec_keys()
649 rc = add_attribute(priv_head, PKCS11_CKA_EC_PARAMS, a_ptr, a_size); in generate_ec_keys()
653 rc = tee2pkcs_ec_attributes(pub_head, priv_head, tee_obj, tee_size); in generate_ec_keys()
[all …]
H A Dprocessing_rsa.c644 struct obj_attrs **priv_head, in tee2pkcs_rsa_attributes() argument
677 rc = tee2pkcs_add_attribute(priv_head, PKCS11_CKA_MODULUS, tee_obj, in tee2pkcs_rsa_attributes()
682 rc = tee2pkcs_add_attribute(priv_head, PKCS11_CKA_PUBLIC_EXPONENT, in tee2pkcs_rsa_attributes()
687 rc = tee2pkcs_add_attribute(priv_head, PKCS11_CKA_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()
720 struct obj_attrs **priv_head) in generate_rsa_keys() argument
[all …]
H A Dprocessing.c411 struct obj_attrs *priv_head = NULL; in entry_generate_key_pair() local
474 rc = create_attributes_from_template(&priv_head, priv_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()
500 priv_head); in entry_generate_key_pair()
512 rc = check_created_attrs_against_token(session, priv_head); in entry_generate_key_pair()
516 rc = check_access_attrs_against_token(session, priv_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.h225 struct obj_attrs **priv_head);
229 struct obj_attrs **priv_head);
271 struct obj_attrs **priv_head);
H A Dpkcs11_attributes.h219 struct obj_attrs **priv_head);
H A Dpkcs11_attributes.c2813 struct obj_attrs **priv_head) in add_missing_attribute_id() argument
2822 assert(priv_head); in add_missing_attribute_id()
2833 rc = get_attribute_ptr(*priv_head, PKCS11_CKA_ID, &id2, &id2_size); in add_missing_attribute_id()
2852 return set_attribute(priv_head, PKCS11_CKA_ID, id1, id1_size); in add_missing_attribute_id()