Searched refs:pub_head (Results 1 – 6 of 6) sorted by relevance
/optee_os/ta/pkcs11/src/ |
A D | processing_ec.c | 447 static enum pkcs11_rc tee2pkcs_ec_attributes(struct obj_attrs **pub_head, in tee2pkcs_ec_attributes() argument 542 rc = add_attribute(pub_head, PKCS11_CKA_EC_POINT, ecpoint, dersize); in tee2pkcs_ec_attributes() 555 struct obj_attrs **pub_head, in generate_ec_keys() argument 567 if (!proc_params || !*pub_head || !*priv_head) in generate_ec_keys() 570 if (remove_empty_attribute(pub_head, PKCS11_CKA_EC_POINT) || in generate_ec_keys() 574 trace_attributes("public-key", *pub_head); in generate_ec_keys() 579 if (get_attribute_ptr(*pub_head, PKCS11_CKA_EC_PARAMS, in generate_ec_keys() 618 rc = tee2pkcs_ec_attributes(pub_head, priv_head, tee_obj, tee_size); in generate_ec_keys()
|
A D | processing_rsa.c | 455 static enum pkcs11_rc tee2pkcs_rsa_attributes(struct obj_attrs **pub_head, in tee2pkcs_rsa_attributes() argument 462 rc = tee2pkcs_add_attribute(pub_head, PKCS11_CKA_MODULUS, tee_obj, in tee2pkcs_rsa_attributes() 467 rc = get_attribute_ptr(*pub_head, PKCS11_CKA_PUBLIC_EXPONENT, &a_ptr, in tee2pkcs_rsa_attributes() 473 rc = remove_empty_attribute(pub_head, in tee2pkcs_rsa_attributes() 481 rc = tee2pkcs_add_attribute(pub_head, in tee2pkcs_rsa_attributes() 531 struct obj_attrs **pub_head, in generate_rsa_keys() argument 543 if (!proc_params || !*pub_head || !*priv_head) in generate_rsa_keys() 546 rc = get_attribute_ptr(*pub_head, PKCS11_CKA_MODULUS_BITS, &a_ptr, in generate_rsa_keys() 553 rc = get_attribute_ptr(*pub_head, PKCS11_CKA_PUBLIC_EXPONENT, &a_ptr, in generate_rsa_keys() 604 rc = tee2pkcs_rsa_attributes(pub_head, priv_head, tee_obj); in generate_rsa_keys()
|
A D | processing.c | 394 struct obj_attrs *pub_head = NULL; in entry_generate_key_pair() local 444 rc = create_attributes_from_template(&pub_head, pub_template, in entry_generate_key_pair() 470 rc = add_missing_attribute_id(&pub_head, &priv_head); in entry_generate_key_pair() 475 rc = check_created_attrs(pub_head, priv_head); in entry_generate_key_pair() 488 rc = check_created_attrs_against_token(session, pub_head); in entry_generate_key_pair() 492 rc = check_access_attrs_against_token(session, pub_head); in entry_generate_key_pair() 507 rc = generate_ec_keys(proc_params, &pub_head, &priv_head); in entry_generate_key_pair() 510 rc = generate_rsa_keys(proc_params, &pub_head, &priv_head); in entry_generate_key_pair() 525 rc = create_object(session, pub_head, &pubkey_handle); in entry_generate_key_pair() 535 pub_head = NULL; in entry_generate_key_pair() [all …]
|
A D | processing.h | 164 struct obj_attrs **pub_head, 194 struct obj_attrs **pub_head,
|
A D | pkcs11_attributes.h | 201 enum pkcs11_rc add_missing_attribute_id(struct obj_attrs **pub_head,
|
A D | pkcs11_attributes.c | 2202 enum pkcs11_rc add_missing_attribute_id(struct obj_attrs **pub_head, in add_missing_attribute_id() argument 2211 assert(pub_head); in add_missing_attribute_id() 2214 rc = get_attribute_ptr(*pub_head, PKCS11_CKA_ID, &id1, &id1_size); in add_missing_attribute_id() 2244 return set_attribute(pub_head, PKCS11_CKA_ID, id2, id2_size); in add_missing_attribute_id()
|
Completed in 15 milliseconds