/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | mech_rsa.c | 36 OBJECT *key_obj); 58 OBJECT * key_obj) in ckm_rsa_encrypt() argument 64 rc = template_attribute_find(key_obj->template, CKA_CLASS, &attr); in ckm_rsa_encrypt() 76 out_data, out_data_len, key_obj); in ckm_rsa_encrypt() 88 OBJECT * key_obj) { in ckm_rsa_decrypt() argument 94 rc = template_attribute_find(key_obj->template, CKA_CLASS, &attr); in ckm_rsa_decrypt() 108 out_data, out_data_len, key_obj); in ckm_rsa_decrypt() 120 OBJECT * key_obj) { in ckm_rsa_sign() argument 126 rc = template_attribute_find(key_obj->template, CKA_CLASS, &attr); in ckm_rsa_sign() 138 out_data_len, key_obj); in ckm_rsa_sign() [all …]
|
H A D | verify_mgr.c | 37 OBJECT * key_obj = NULL; in verify_mgr_init() local 54 rc = object_mgr_find_in_map1(sess->hContext, key, &key_obj); in verify_mgr_init() 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 | decr_mgr.c | 39 OBJECT * key_obj = NULL; in decr_mgr_init() local 55 &key_obj); in decr_mgr_init() 59 rc = template_attribute_find(key_obj->template, in decr_mgr_init() 71 &key_obj); 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 | 37 OBJECT * key_obj = NULL; in encr_mgr_init() local 54 &key_obj); in encr_mgr_init() 58 rc = template_attribute_find(key_obj->template, in encr_mgr_init() 70 &key_obj); 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 | sign_mgr.c | 37 OBJECT * key_obj = NULL; in sign_mgr_init() local 52 rc = object_mgr_find_in_map1(sess->hContext, key, &key_obj); in sign_mgr_init() 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 | key_mgr.c | 359 OBJECT * key_obj = NULL; in key_mgr_unwrap_key() local 373 &key_obj); in key_mgr_unwrap_key() 472 &key_obj); in key_mgr_unwrap_key() 478 rc = secret_key_unwrap(key_obj->template, keytype, data, in key_mgr_unwrap_key() 483 rc = priv_key_unwrap(key_obj->template, keytype, in key_mgr_unwrap_key() 495 rc = object_mgr_create_final(sess, key_obj, h_unwrapped_key); in key_mgr_unwrap_key() 503 if (key_obj) (void) object_free(key_obj); in key_mgr_unwrap_key()
|
H A D | dig_mgr.c | 447 OBJECT * key_obj = NULL; in digest_mgr_digest_key() local 455 rc = object_mgr_find_in_map1(sess->hContext, key_handle, &key_obj); in digest_mgr_digest_key() 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 | mech_md5.c | 329 OBJECT * key_obj = NULL; in md5_hmac_sign() local 363 rc = object_mgr_find_in_map1(sess->hContext, ctx->key, &key_obj); in md5_hmac_sign() 366 rc = template_attribute_find(key_obj->template, CKA_VALUE, &attr); in md5_hmac_sign()
|
H A D | mech_sha.c | 63 OBJECT * key_obj = NULL; in sha1_hmac_sign() local 96 rc = object_mgr_find_in_map1(sess->hContext, ctx->key, &key_obj); in sha1_hmac_sign() 100 rc = template_attribute_find(key_obj->template, CKA_VALUE, &attr); in sha1_hmac_sign()
|
H A D | tpm_specific.c | 2257 OBJECT *key_obj, in token_rsa_load_key() argument 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() 2294 rc = object_mgr_find_in_map2(hContext, key_obj, &handle); in token_rsa_load_key() 2319 if ((rc = template_attribute_find(key_obj->template, in token_rsa_load_key() 2335 if (template_attribute_find(key_obj->template, CKA_ENC_AUTHDATA, in token_rsa_load_key() 2488 OBJECT * key_obj) in token_specific_rsa_decrypt() argument 2493 if ((rc = token_rsa_load_key(hContext, key_obj, &hKey))) { in token_specific_rsa_decrypt() 2510 OBJECT * key_obj) in token_specific_rsa_verify() argument 2517 if ((rc = token_rsa_load_key(hContext, key_obj, &hKey))) { in token_specific_rsa_verify() [all …]
|