Home
last modified time | relevance | path

Searched refs:key_obj (Results 1 – 10 of 10) sorted by relevance

/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dmech_rsa.c36 OBJECT *key_obj);
58 OBJECT * key_obj) in ckm_rsa_encrypt() argument
88 OBJECT * key_obj) { in ckm_rsa_decrypt() argument
120 OBJECT * key_obj) { in ckm_rsa_sign() argument
138 out_data_len, key_obj); in ckm_rsa_sign()
150 OBJECT * key_obj) { in ckm_rsa_verify() argument
168 out_data_len, key_obj); in ckm_rsa_verify()
183 OBJECT *key_obj = NULL; in rsa_pkcs_encrypt() local
226 OBJECT *key_obj = NULL; in rsa_pkcs_decrypt() local
339 sig_len, key_obj); in rsa_pkcs_verify()
[all …]
H A Dverify_mgr.c37 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 Ddecr_mgr.c39 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 Dencr_mgr.c37 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 Dsign_mgr.c37 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 Dkey_mgr.c359 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 Ddig_mgr.c447 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 Dmech_md5.c329 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 Dmech_sha.c63 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 Dtpm_specific.c2257 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()
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
2561 OBJECT * key_obj) in token_specific_rsa_sign() argument
2727 OBJECT * key_obj) in token_specific_rsa_encrypt() argument
[all …]