Searched refs:pub_head (Results 1 – 6 of 6) sorted by relevance
/optee_os-3.20.0/ta/pkcs11/src/ |
A D | processing_ec.c | 573 struct obj_attrs **pub_head, in generate_ec_keys() argument 585 if (!proc_params || !*pub_head || !*priv_head) in generate_ec_keys() 588 if (remove_empty_attribute(pub_head, PKCS11_CKA_EC_POINT) || in generate_ec_keys() 592 trace_attributes("public-key", *pub_head); in generate_ec_keys() 597 if (get_attribute_ptr(*pub_head, PKCS11_CKA_EC_PARAMS, in generate_ec_keys() 709 struct obj_attrs **pub_head, in generate_eddsa_keys() argument 719 if (!proc_params || !*pub_head || !*priv_head) in generate_eddsa_keys() 722 if (remove_empty_attribute(pub_head, PKCS11_CKA_EC_POINT) || in generate_eddsa_keys() 727 trace_attributes("public-key", *pub_head); in generate_eddsa_keys() 732 if (get_attribute_ptr(*pub_head, PKCS11_CKA_EC_PARAMS, in generate_eddsa_keys() [all …]
|
A D | processing_rsa.c | 612 static enum pkcs11_rc tee2pkcs_rsa_attributes(struct obj_attrs **pub_head, in tee2pkcs_rsa_attributes() argument 619 rc = tee2pkcs_add_attribute(pub_head, PKCS11_CKA_MODULUS, tee_obj, in tee2pkcs_rsa_attributes() 624 rc = get_attribute_ptr(*pub_head, PKCS11_CKA_PUBLIC_EXPONENT, &a_ptr, in tee2pkcs_rsa_attributes() 630 rc = remove_empty_attribute(pub_head, in tee2pkcs_rsa_attributes() 638 rc = tee2pkcs_add_attribute(pub_head, in tee2pkcs_rsa_attributes() 688 struct obj_attrs **pub_head, in generate_rsa_keys() argument 700 if (!proc_params || !*pub_head || !*priv_head) in generate_rsa_keys() 703 rc = get_attribute_ptr(*pub_head, PKCS11_CKA_MODULUS_BITS, &a_ptr, in generate_rsa_keys() 710 rc = get_attribute_ptr(*pub_head, PKCS11_CKA_PUBLIC_EXPONENT, &a_ptr, in generate_rsa_keys() 761 rc = tee2pkcs_rsa_attributes(pub_head, priv_head, tee_obj); in generate_rsa_keys()
|
A D | processing.c | 400 struct obj_attrs *pub_head = NULL; in entry_generate_key_pair() local 450 rc = create_attributes_from_template(&pub_head, pub_template, in entry_generate_key_pair() 476 rc = add_missing_attribute_id(&pub_head, &priv_head); in entry_generate_key_pair() 481 rc = check_created_attrs(pub_head, priv_head); in entry_generate_key_pair() 494 rc = check_created_attrs_against_token(session, pub_head); in entry_generate_key_pair() 498 rc = check_access_attrs_against_token(session, pub_head); in entry_generate_key_pair() 516 rc = generate_ec_keys(proc_params, &pub_head, &priv_head); in entry_generate_key_pair() 519 rc = generate_rsa_keys(proc_params, &pub_head, &priv_head); in entry_generate_key_pair() 534 rc = create_object(session, pub_head, &pubkey_handle); in entry_generate_key_pair() 544 pub_head = NULL; in entry_generate_key_pair() [all …]
|
A D | processing.h | 208 struct obj_attrs **pub_head, 212 struct obj_attrs **pub_head, 254 struct obj_attrs **pub_head,
|
A D | pkcs11_attributes.h | 208 enum pkcs11_rc add_missing_attribute_id(struct obj_attrs **pub_head,
|
A D | pkcs11_attributes.c | 2533 enum pkcs11_rc add_missing_attribute_id(struct obj_attrs **pub_head, in add_missing_attribute_id() argument 2542 assert(pub_head); in add_missing_attribute_id() 2545 rc = get_attribute_ptr(*pub_head, PKCS11_CKA_ID, &id1, &id1_size); in add_missing_attribute_id() 2575 return set_attribute(pub_head, PKCS11_CKA_ID, id2, id2_size); in add_missing_attribute_id()
|
Completed in 12 milliseconds