/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | hwf_obj.c | 301 found = template_attribute_find(tmpl, CKA_HW_FEATURE_TYPE, &attr); in hwf_object_check_required_attributes() 318 found = template_attribute_find(tmpl, CKA_VALUE, &attr); in clock_check_required_attributes() 334 found = template_attribute_find(tmpl, CKA_VALUE, &attr); in counter_check_required_attributes() 339 found = template_attribute_find(tmpl, CKA_HAS_RESET, &attr); in counter_check_required_attributes() 344 found = template_attribute_find(tmpl, CKA_RESET_ON_INIT, &attr); in counter_check_required_attributes()
|
H A D | verify_mgr.c | 60 rc = template_attribute_find(key_obj->template, CKA_VERIFY, &attr); in verify_mgr_init() 73 rc = template_attribute_find(key_obj->template, in verify_mgr_init() 84 flag = template_attribute_find(key_obj->template, in verify_mgr_init() 104 rc = template_attribute_find(key_obj->template, in verify_mgr_init() 115 flag = template_attribute_find(key_obj->template, in verify_mgr_init() 140 rc = template_attribute_find(key_obj->template, in verify_mgr_init() 175 rc = template_attribute_find(key_obj->template, in verify_mgr_init()
|
H A D | key.c | 301 found = template_attribute_find(tmpl, CKA_KEY_TYPE, &attr); in key_object_check_required_attributes() 1106 found = template_attribute_find(tmpl, CKA_MODULUS, &attr); in rsa_publ_check_required_attributes() 1113 found = template_attribute_find(tmpl, CKA_MODULUS_BITS, &attr); in rsa_publ_check_required_attributes() 1120 found = template_attribute_find(tmpl, CKA_PUBLIC_EXPONENT, &attr); in rsa_publ_check_required_attributes() 1230 found = template_attribute_find(tmpl, CKA_MODULUS, &attr); in rsa_priv_check_required_attributes() 1256 found = template_attribute_find(tmpl, CKA_PUBLIC_EXPONENT, &attr); in rsa_priv_check_required_attributes() 1263 found = template_attribute_find(tmpl, CKA_PRIVATE_EXPONENT, &attr); in rsa_priv_check_required_attributes() 1270 found = template_attribute_find(tmpl, CKA_PRIME_1, &attr); in rsa_priv_check_required_attributes() 1277 found = template_attribute_find(tmpl, CKA_PRIME_2, &attr); in rsa_priv_check_required_attributes() 1284 found = template_attribute_find(tmpl, CKA_EXPONENT_1, &attr); in rsa_priv_check_required_attributes() [all …]
|
H A D | sign_mgr.c | 56 rc = template_attribute_find(key_obj->template, CKA_SIGN, &attr); in sign_mgr_init() 69 rc = template_attribute_find(key_obj->template, in sign_mgr_init() 82 flag = template_attribute_find(key_obj->template, in sign_mgr_init() 102 rc = template_attribute_find(key_obj->template, in sign_mgr_init() 115 flag = template_attribute_find(key_obj->template, in sign_mgr_init() 142 rc = template_attribute_find(key_obj->template, in sign_mgr_init() 179 rc = template_attribute_find(key_obj->template, in sign_mgr_init()
|
H A D | cert.c | 314 found = template_attribute_find(tmpl, in cert_check_required_attributes() 354 found = template_attribute_find(tmpl, CKA_SUBJECT, &attr); in cert_x509_check_required_attributes() 358 found = template_attribute_find(tmpl, CKA_VALUE, &attr); in cert_x509_check_required_attributes()
|
H A D | decr_mgr.c | 59 rc = template_attribute_find(key_obj->template, in decr_mgr_init() 75 rc = template_attribute_find(key_obj->template, in decr_mgr_init() 94 rc = template_attribute_find(key_obj->template, in decr_mgr_init()
|
H A D | encr_mgr.c | 58 rc = template_attribute_find(key_obj->template, in encr_mgr_init() 74 rc = template_attribute_find(key_obj->template, in encr_mgr_init() 94 rc = template_attribute_find(key_obj->template, in encr_mgr_init()
|
H A D | mech_rsa.c | 64 rc = template_attribute_find(key_obj->template, CKA_CLASS, &attr); in ckm_rsa_encrypt() 94 rc = template_attribute_find(key_obj->template, CKA_CLASS, &attr); in ckm_rsa_decrypt() 126 rc = template_attribute_find(key_obj->template, CKA_CLASS, &attr); in ckm_rsa_sign() 156 rc = template_attribute_find(key_obj->template, CKA_CLASS, &attr); in ckm_rsa_verify() 194 flag = template_attribute_find(key_obj->template, CKA_MODULUS, &attr); in rsa_pkcs_encrypt() 237 flag = template_attribute_find(key_obj->template, CKA_MODULUS, &attr); in rsa_pkcs_decrypt() 284 flag = template_attribute_find(key_obj->template, CKA_MODULUS, &attr); in rsa_pkcs_sign() 324 flag = template_attribute_find(key_obj->template, CKA_MODULUS, &attr); in rsa_pkcs_verify() 366 flag = template_attribute_find(key_obj->template, CKA_MODULUS, &attr); in rsa_pkcs_verify_recover()
|
H A D | key_mgr.c | 167 flag = template_attribute_find(priv_key_obj->template, in key_mgr_generate_key_pair() 186 flag = template_attribute_find(priv_key_obj->template, in key_mgr_generate_key_pair() 263 rc = template_attribute_find(key2_obj->template, in key_mgr_wrap_key() 274 rc = template_attribute_find(key2_obj->template, CKA_CLASS, &attr); in key_mgr_wrap_key() 291 rc = template_attribute_find(key2_obj->template, in key_mgr_wrap_key()
|
H A D | object.c | 369 rc = template_attribute_find(o->template, CKA_SENSITIVE, &attr); in object_create() 383 rc = template_attribute_find(o->template, CKA_EXTRACTABLE, in object_create() 582 found = template_attribute_find(obj->template, CKA_MODIFIABLE, &attr); in object_is_modifiable() 602 found = template_attribute_find(obj->template, CKA_PRIVATE, &attr); in object_is_private() 631 found = template_attribute_find(obj->template, in object_is_token_object() 684 flag = template_attribute_find(obj_tmpl, in object_get_attribute_values()
|
H A D | dig_mgr.c | 459 rc = template_attribute_find(key_obj->template, CKA_CLASS, &attr); in digest_mgr_digest_key() 468 rc = template_attribute_find(key_obj->template, CKA_VALUE, &attr); in digest_mgr_digest_key()
|
H A D | template.c | 421 template_attribute_find(TEMPLATE * tmpl, in template_attribute_find() function 460 parselist[i].found = template_attribute_find( in template_attribute_find_multiple() 547 found = template_attribute_find(tmpl, CKA_CLASS, &attr); in template_check_required_base_attributes() 570 rc = template_attribute_find(t2, attr1->type, &attr2); in template_compare() 962 val = template_attribute_find(tmpl, CKA_SENSITIVE, &attr); in template_check_exportability()
|
H A D | tpm_specific.c | 468 flag = template_attribute_find(tmpl, CKA_PUBLIC_EXPONENT, in util_check_public_exponent() 786 if (template_attribute_find(obj->template, CKA_KEY_TYPE, in token_wrap_key_object() 797 if (template_attribute_find(obj->template, CKA_CLASS, in token_wrap_key_object() 816 if (template_attribute_find(obj->template, CKA_PRIME_1, in token_wrap_key_object() 818 if (template_attribute_find(obj->template, in token_wrap_key_object() 830 if (template_attribute_find(obj->template, CKA_MODULUS, in token_wrap_key_object() 856 if (template_attribute_find(obj->template, in token_wrap_key_object() 2144 flag = template_attribute_find(publ_tmpl, CKA_MODULUS_BITS, &attr); in token_specific_rsa_generate_keypair() 2279 if (template_attribute_find(key_obj->template, CKA_CLASS, in token_rsa_load_key() 2285 rc = template_attribute_find(key_obj->template, in token_rsa_load_key() [all …]
|
H A D | mech_md5.c | 366 rc = template_attribute_find(key_obj->template, CKA_VALUE, &attr); in md5_hmac_sign()
|
H A D | mech_sha.c | 100 rc = template_attribute_find(key_obj->template, CKA_VALUE, &attr); in sha1_hmac_sign()
|
H A D | obj_mgr.c | 1287 (template_attribute_find(obj->template, in object_mgr_find_build_list() 1295 (template_attribute_find(obj->template, in object_mgr_find_build_list()
|
H A D | tpmtok_int.h | 1043 CK_BBOOL template_attribute_find(TEMPLATE *,
|