Home
last modified time | relevance | path

Searched refs:pValue (Results 1 – 25 of 52) sorted by relevance

123

/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dkey.c345 id_attr->pValue = NULL; in key_object_set_default_attributes()
349 sdate_attr->pValue = NULL; in key_object_set_default_attributes()
353 edate_attr->pValue = NULL; in key_object_set_default_attributes()
459 subject_attr->pValue = NULL; in publ_key_set_default_attributes()
588 subject_attr->pValue = NULL; in priv_key_set_default_attributes()
1166 modulus_attr->pValue = NULL; in rsa_publ_set_default_attributes()
1176 public_exp_attr->pValue = NULL; in rsa_publ_set_default_attributes()
1336 modulus_attr->pValue = NULL; in rsa_priv_set_default_attributes()
1340 public_exp_attr->pValue = NULL; in rsa_priv_set_default_attributes()
1344 private_exp_attr->pValue = NULL; in rsa_priv_set_default_attributes()
[all …]
H A Dtemplate.c324 (void) memcpy(attr->pValue, pTemplate[i].pValue, in template_add_attributes()
327 attr->pValue = NULL; in template_add_attributes()
575 if (memcmp(attr1->pValue, attr2->pValue, attr1->ulValueLen) in template_compare()
660 attr_32->pValue = 0x00; in template_flatten()
675 pVal = (CK_ULONG *)attr->pValue; in template_flatten()
687 (void) memcpy(ptr, attr->pValue, in template_flatten()
808 a2->pValue = NULL; in template_unflatten()
964 val = *(CK_BBOOL *)attr->pValue; in template_check_exportability()
1056 *(CK_BBOOL *)priv_attr->pValue = FALSE; in template_set_default_common_attributes()
1061 *(CK_BBOOL *)mod_attr->pValue = TRUE; in template_set_default_common_attributes()
[all …]
H A Dkey_mgr.c88 keyclass = *(CK_OBJECT_CLASS *)publ_tmpl[i].pValue; in key_mgr_generate_key_pair()
95 subclass = *(CK_ULONG *)publ_tmpl[i].pValue; in key_mgr_generate_key_pair()
101 keyclass = *(CK_OBJECT_CLASS *)priv_tmpl[i].pValue; in key_mgr_generate_key_pair()
108 CK_ULONG temp = *(CK_ULONG *)priv_tmpl[i].pValue; in key_mgr_generate_key_pair()
170 flag = *(CK_BBOOL *)attr->pValue; in key_mgr_generate_key_pair()
189 flag = *(CK_BBOOL *)attr->pValue; in key_mgr_generate_key_pair()
197 *(CK_BBOOL *)new_attr->pValue = false; in key_mgr_generate_key_pair()
268 flag = *(CK_BBOOL *)attr->pValue; in key_mgr_wrap_key()
278 class = *(CK_OBJECT_CLASS *)attr->pValue; in key_mgr_wrap_key()
296 keytype = *(CK_KEY_TYPE *)attr->pValue; in key_mgr_wrap_key()
[all …]
H A Dhwf_obj.c413 value_attr->pValue = NULL; in clock_set_default_attributes()
442 value_attr->pValue = NULL; in counter_set_default_attributes()
446 hasreset_attr->pValue = (CK_BYTE *)hasreset_attr + in counter_set_default_attributes()
448 *(CK_BBOOL *)hasreset_attr->pValue = FALSE; in counter_set_default_attributes()
453 resetoninit_attr->pValue = (CK_BYTE *)resetoninit_attr + in counter_set_default_attributes()
455 *(CK_BBOOL *)resetoninit_attr->pValue = FALSE; in counter_set_default_attributes()
H A Ddata_obj.c335 app_attr->pValue = NULL; in data_object_set_default_attributes()
339 value_attr->pValue = NULL; in data_object_set_default_attributes()
343 class_attr->pValue = (CK_BYTE *)class_attr + sizeof (CK_ATTRIBUTE); in data_object_set_default_attributes()
344 *(CK_OBJECT_CLASS *)class_attr->pValue = CKO_DATA; in data_object_set_default_attributes()
H A Dobject.c328 class = *(CK_OBJECT_CLASS *)attr->pValue; in object_create()
333 subclass = *(CK_CERTIFICATE_TYPE *)attr->pValue; in object_create()
338 subclass = *(CK_KEY_TYPE *)attr->pValue; in object_create()
343 subclass = *(CK_HW_FEATURE_TYPE *)attr->pValue; in object_create()
375 flag = *(CK_BBOOL *)attr->pValue; in object_create()
390 flag = *(CK_BBOOL *)attr->pValue; in object_create()
586 modifiable = *(CK_BBOOL *)attr->pValue; in object_is_modifiable()
609 priv = *((CK_BBOOL *)attr->pValue); in object_is_private()
635 is_token = *(CK_BBOOL *)attr->pValue; in object_is_token_object()
692 if (pTemplate[i].pValue == NULL) { in object_get_attribute_values()
[all …]
H A Dverify_mgr.c64 flag = *(CK_BBOOL *)attr->pValue; in verify_mgr_init()
78 keytype = *(CK_KEY_TYPE *)attr->pValue; in verify_mgr_init()
90 class = *(CK_OBJECT_CLASS *)attr->pValue; in verify_mgr_init()
109 keytype = *(CK_KEY_TYPE *)attr->pValue; in verify_mgr_init()
121 class = *(CK_OBJECT_CLASS *)attr->pValue; in verify_mgr_init()
145 keytype = *(CK_KEY_TYPE *)attr->pValue; in verify_mgr_init()
180 keytype = *(CK_KEY_TYPE *)attr->pValue; in verify_mgr_init()
H A Dsign_mgr.c60 flag = *(CK_BBOOL *)attr->pValue; in sign_mgr_init()
74 keytype = *(CK_KEY_TYPE *)attr->pValue; in sign_mgr_init()
88 class = *(CK_OBJECT_CLASS *)attr->pValue; in sign_mgr_init()
107 keytype = *(CK_KEY_TYPE *)attr->pValue; in sign_mgr_init()
121 class = *(CK_OBJECT_CLASS *)attr->pValue; in sign_mgr_init()
147 keytype = *(CK_KEY_TYPE *)attr->pValue; in sign_mgr_init()
184 keytype = *(CK_KEY_TYPE *)attr->pValue; in sign_mgr_init()
H A Dcert.c337 type = *(CK_CERTIFICATE_TYPE *)attr->pValue; in cert_validate_attribute()
398 id_attr->pValue = NULL; in cert_x509_set_default_attributes()
402 issuer_attr->pValue = NULL; in cert_x509_set_default_attributes()
406 serial_attr->pValue = NULL; in cert_x509_set_default_attributes()
H A Ddecr_mgr.c64 flag = *(CK_BBOOL *)attr->pValue; in decr_mgr_init()
80 flag = *(CK_BBOOL *)(attr->pValue); in decr_mgr_init()
99 keytype = *(CK_KEY_TYPE *)attr->pValue; in decr_mgr_init()
H A Dencr_mgr.c63 flag = *(CK_BBOOL *)attr->pValue; in encr_mgr_init()
79 flag = *(CK_BBOOL *)attr->pValue; in encr_mgr_init()
99 keytype = *(CK_KEY_TYPE *)attr->pValue; in encr_mgr_init()
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/
H A DmetaAttrManager.c57 attr.pValue = &class; in get_master_attributes_by_object()
65 attr.pValue = &subtype; in get_master_attributes_by_object()
467 dst->attribute.pValue = in get_master_attributes_by_duplication()
487 dst->attribute.pValue = NULL; in get_master_attributes_by_duplication()
494 (void) memcpy(dst->attribute.pValue, src->attribute.pValue, in get_master_attributes_by_duplication()
534 free(attr->attribute.pValue); in dealloc_attributes()
555 else if (new_attr->pValue == NULL) { in attribute_set_value()
589 free(attr->attribute.pValue); in attribute_set_value()
603 attr->attribute.pValue = newStorage; in attribute_set_value()
607 (void) memcpy(attr->attribute.pValue, new_attr->pValue, in attribute_set_value()
[all …]
H A Dpkcs11SUNWExtensions.c318 template[i].pValue = &objclass; in SUNW_C_KeyToObject()
329 template[i].pValue = &keytype; in SUNW_C_KeyToObject()
354 template[i].pValue = &falsevalue; in SUNW_C_KeyToObject()
454 template[i].pValue = &objclass; in pkcs11_PasswdToPBKD2Object()
460 template[i].pValue = &key_type; in pkcs11_PasswdToPBKD2Object()
466 template[i].pValue = &falsevalue; in pkcs11_PasswdToPBKD2Object()
473 template[i].pValue = &key_len; in pkcs11_PasswdToPBKD2Object()
521 template.pValue = NULL; in pkcs11_ObjectToKey()
531 if (template.pValue == NULL) { in pkcs11_ObjectToKey()
538 free(template.pValue); in pkcs11_ObjectToKey()
[all …]
H A DmetaObjectManager.c291 attrs[0].pValue = &class; in meta_object_get_attr()
296 attrs[1].pValue = &is_token; in meta_object_get_attr()
347 attrs[2].pValue = &keytype; in meta_object_get_attr()
856 free(attrs[i].pValue); in meta_object_copyin()
894 template[i].pValue = &objclass; in create_wrap_unwrap_key()
900 template[i].pValue = &keytype; in create_wrap_unwrap_key()
912 template[i].pValue = key_data; in create_wrap_unwrap_key()
928 template[i].pValue = Modulus; in create_wrap_unwrap_key()
935 template[i].pValue = PubExpo; in create_wrap_unwrap_key()
2072 attr[0].pValue = &truevalue; in meta_freeobject_clone()
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelAttributeUtil.c378 (void) memcpy(attrp->attr.pValue, template->pValue, in kernel_add_extra_attr()
425 (void) memcpy(attrp->attr.pValue, old_attrp->attr.pValue, in kernel_copy_extra_attr()
489 (void) memcpy(template->pValue, extra_attr->attr.pValue, in get_extra_attr_from_object()
554 (void) memcpy(extra_attr->attr.pValue, template->pValue, in set_extra_attr_to_object()
773 (void) memcpy(dest->pValue, src->pValue, in get_string_from_template()
778 dest->pValue = NULL; in get_string_from_template()
791 if (template->pValue) { in string_attr_cleanup()
792 free(template->pValue); in string_attr_cleanup()
1043 param_tmp.pValue = NULL; in kernel_build_public_key_object()
1428 param_tmp.pValue = NULL; in kernel_build_private_key_object()
[all …]
H A DkernelKeys.c87 free(t[i].pValue); in remove_one_attribute()
93 t[j].pValue = t[i].pValue; in remove_one_attribute()
102 t[j].pValue = NULL; in remove_one_attribute()
192 tmp.pValue = NULL; in get_key_len_from_template()
2011 tmp.pValue = NULL; in get_base_key_attributes()
2026 free(tmp.pValue); in get_base_key_attributes()
2056 free(tmp.pValue); in get_base_key_attributes()
2087 tmp.pValue = NULL; in get_base_key_attributes()
2102 free(tmp.pValue); in get_base_key_attributes()
2110 tmp.pValue = NULL; in get_base_key_attributes()
[all …]
H A DkernelUtil.c548 tmp.pValue = NULL; in get_ec_private_key()
554 tmp.pValue = malloc(tmp.ulValueLen); in get_ec_private_key()
555 if (tmp.pValue == NULL) { in get_ec_private_key()
562 free(tmp.pValue); in get_ec_private_key()
567 cur_attr->oa_value = tmp.pValue; in get_ec_private_key()
620 tmp.pValue = NULL; in get_ec_public_key()
627 if (tmp.pValue == NULL) { in get_ec_public_key()
634 free(tmp.pValue); in get_ec_public_key()
639 cur_attr->oa_value = tmp.pValue; in get_ec_public_key()
849 pTemplate[0].pValue = &pri_value; in create_new_tobj_in_lib()
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftAttributeUtil.c470 (void) memcpy(attrp->attr.pValue, template->pValue, in soft_add_extra_attr()
558 (void) memcpy(attrp->attr.pValue, old_attrp->attr.pValue, in soft_copy_extra_attr()
622 (void) memcpy(template->pValue, extra_attr->attr.pValue, in get_extra_attr_from_object()
689 (void) memcpy(extra_attr->attr.pValue, template->pValue, in set_extra_attr_to_object()
911 (void) memcpy(dest->pValue, src->pValue, in get_string_from_template()
916 dest->pValue = NULL; in get_string_from_template()
988 template->pValue = NULL; in string_attr_cleanup()
1321 string_tmp.pValue = NULL;
1322 param_tmp.pValue = NULL;
1902 param_tmp.pValue = NULL;
[all …]
H A DsoftSSL.c538 new_tmpl[0].pValue = &class; in soft_ssl_master_key_derive()
544 new_tmpl[2].pValue = &true; in soft_ssl_master_key_derive()
782 obj_tmpl[2].pValue = &true; in soft_ssl_key_and_mac_derive()
791 obj_tmpl[5].pValue = kb; in soft_ssl_key_and_mac_derive()
802 obj_tmpl[5].pValue = kb; in soft_ssl_key_and_mac_derive()
842 new_tmpl[n].pValue = &true; in soft_ssl_key_and_mac_derive()
846 new_tmpl[n].pValue = &true; in soft_ssl_key_and_mac_derive()
850 new_tmpl[n].pValue = &true; in soft_ssl_key_and_mac_derive()
854 new_tmpl[n].pValue = NULL; in soft_ssl_key_and_mac_derive()
882 new_tmpl[n].pValue = kb; in soft_ssl_key_and_mac_derive()
[all …]
H A DsoftDH.c112 template.pValue = malloc(sizeof (CK_ULONG)); in soft_dh_genkey_pair()
113 if (template.pValue == NULL) { in soft_dh_genkey_pair()
120 free(template.pValue); in soft_dh_genkey_pair()
126 value_bits = (uint32_t)(*((CK_ULONG *)(template.pValue))); in soft_dh_genkey_pair()
128 value_bits = *((CK_ULONG *)(template.pValue)); in soft_dh_genkey_pair()
131 free(template.pValue); in soft_dh_genkey_pair()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/
H A Dencrypt.c139 template[0].pValue = &class; in init_key_uef()
142 template[1].pValue = &keyType; in init_key_uef()
145 template[2].pValue = &false; in init_key_uef()
148 template[3].pValue = &true; in init_key_uef()
151 template[4].pValue = &true; in init_key_uef()
154 template[5].pValue = key->contents; in init_key_uef()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/
H A Dpbkdf2.c71 tmpl[attrs].pValue = &class; in krb5int_pbkdf2_hmac_sha1()
80 tmpl[attrs].pValue = &keytype; in krb5int_pbkdf2_hmac_sha1()
97 tmpl[attrs].pValue = &outlen; in krb5int_pbkdf2_hmac_sha1()
122 tmpl[0].pValue = out->data; in krb5int_pbkdf2_hmac_sha1()
/illumos-gate/usr/src/cmd/cmd-crypto/digest/
H A Ddigest.c303 pTmpl[i].pValue = &is_token; in get_token_key()
308 pTmpl[i].pValue = &class; in get_token_key()
313 pTmpl[i].pValue = keylabel; in get_token_key()
318 pTmpl[i].pValue = &ckKeyType; in get_token_key()
323 pTmpl[i].pValue = &true; in get_token_key()
623 template[nattr].pValue = &class; in execute_cmd()
628 template[nattr].pValue = &tmpl_keytype; in execute_cmd()
633 template[nattr].pValue = &true; in execute_cmd()
638 template[nattr].pValue = &false; in execute_cmd()
643 template[nattr].pValue = pkeydata; in execute_cmd()
/illumos-gate/usr/src/cmd/cmd-crypto/decrypt/
H A Ddecrypt.c361 pTmpl[i].pValue = &is_token; in get_token_key()
366 pTmpl[i].pValue = &class; in get_token_key()
371 pTmpl[i].pValue = keylabel; in get_token_key()
376 pTmpl[i].pValue = &ckKeyType; in get_token_key()
381 pTmpl[i].pValue = &true; in get_token_key()
841 template[nattr].pValue = &objclass; in execute_cmd()
846 template[nattr].pValue = &keytype; in execute_cmd()
851 template[nattr].pValue = &truevalue; in execute_cmd()
856 template[nattr].pValue = &falsevalue; in execute_cmd()
861 template[nattr].pValue = pkeydata; in execute_cmd()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/enc_provider/
H A Darcfour_provider.c40 template[0].pValue = &class; in setup_arcfour_crypto()
43 template[1].pValue = &keyType; in setup_arcfour_crypto()
46 template[2].pValue = &false; in setup_arcfour_crypto()
49 template[3].pValue = &true; in setup_arcfour_crypto()
52 template[4].pValue = key->contents; in setup_arcfour_crypto()

123