/titanic_50/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | key.c | 345 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() 357 derive_attr->pValue = (CK_BYTE *)derive_attr + in key_object_set_default_attributes() 359 *(CK_BBOOL *)derive_attr->pValue = FALSE; in key_object_set_default_attributes() 363 local_attr->pValue = (CK_BYTE *)local_attr + sizeof (CK_ATTRIBUTE); in key_object_set_default_attributes() 364 *(CK_BBOOL *)local_attr->pValue = FALSE; in key_object_set_default_attributes() 453 class_attr->pValue = (CK_BYTE *)class_attr + in publ_key_set_default_attributes() 455 *(CK_OBJECT_CLASS *)class_attr->pValue = CKO_PUBLIC_KEY; in publ_key_set_default_attributes() 459 subject_attr->pValue = NULL; in publ_key_set_default_attributes() [all …]
|
H A D | template.c | 323 attr->pValue = (CK_BYTE *)attr + sizeof (CK_ATTRIBUTE); in template_add_attributes() 324 (void) memcpy(attr->pValue, pTemplate[i].pValue, in template_add_attributes() 327 attr->pValue = NULL; in template_add_attributes() 464 (void) memcpy(parselist[i].ptr, attr->pValue, in template_attribute_find_multiple() 575 if (memcmp(attr1->pValue, attr2->pValue, attr1->ulValueLen) in template_compare() 615 new_attr->pValue = (CK_BYTE *)new_attr + sizeof (CK_ATTRIBUTE); in template_copy() 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() 806 a2->pValue = (CK_BYTE *)a2 + sizeof (CK_ATTRIBUTE); in template_unflatten() [all …]
|
H A D | key_mgr.c | 88 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 D | hwf_obj.c | 413 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 D | data_obj.c | 335 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 D | object.c | 328 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 D | verify_mgr.c | 64 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 D | sign_mgr.c | 60 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 D | cert.c | 337 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 D | decr_mgr.c | 64 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 D | encr_mgr.c | 63 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()
|
/titanic_50/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | metaAttrManager.c | 56 attr.pValue = &class; in get_master_attributes_by_object() 64 attr.pValue = &subtype; in get_master_attributes_by_object() 411 attr->attribute.pValue = &attr->generic_ulong; in get_master_attributes_by_type() 414 attr->attribute.pValue = &attr->generic_bbool; in get_master_attributes_by_type() 417 attr->attribute.pValue = attr->generic_data; in get_master_attributes_by_type() 465 dst->attribute.pValue = in get_master_attributes_by_duplication() 468 if (dst->attribute.pValue == NULL) { in get_master_attributes_by_duplication() 477 } else if (src->attribute.pValue == &src->generic_bbool) { in get_master_attributes_by_duplication() 478 dst->attribute.pValue = &dst->generic_bbool; in get_master_attributes_by_duplication() 479 } else if (src->attribute.pValue == &src->generic_ulong) { in get_master_attributes_by_duplication() [all …]
|
H A D | pkcs11SUNWExtensions.c | 318 template[i].pValue = &objclass; in SUNW_C_KeyToObject() 329 template[i].pValue = &keytype; in SUNW_C_KeyToObject() 345 template[i].pValue = &truevalue; in SUNW_C_KeyToObject() 347 template[i].pValue = &falsevalue; in SUNW_C_KeyToObject() 354 template[i].pValue = &falsevalue; in SUNW_C_KeyToObject() 360 template[i].pValue = (CK_VOID_PTR)rawkey; 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() [all …]
|
H A D | metaObjectManager.c | 290 attrs[0].pValue = &class; in meta_object_get_attr() 295 attrs[1].pValue = &is_token; in meta_object_get_attr() 306 attrs[count].pValue = &is_private; in meta_object_get_attr() 324 attrs[0].pValue = &is_extractable; in meta_object_get_attr() 336 attrs[1].pValue = &is_sensitive; in meta_object_get_attr() 346 attrs[2].pValue = &keytype; in meta_object_get_attr() 357 attrs[count].pValue = &keytype; in meta_object_get_attr() 599 free(((object->clone_template)[i]).pValue); in meta_object_dealloc() 819 attrs_with_val[num_attrs_with_val].pValue = in meta_object_copyin() 821 if (attrs_with_val[num_attrs_with_val].pValue == NULL) { in meta_object_copyin() [all …]
|
/titanic_50/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelAttributeUtil.c | 270 *class = *((CK_OBJECT_CLASS*)template[i].pValue); in kernel_validate_attr() 331 if (extra_attr->attr.pValue) in kernel_cleanup_extra_attr() 338 free(extra_attr->attr.pValue); in kernel_cleanup_extra_attr() 369 if ((template->pValue != NULL) && in kernel_add_extra_attr() 372 attrp->attr.pValue = malloc(template->ulValueLen); in kernel_add_extra_attr() 373 if (attrp->attr.pValue == NULL) { in kernel_add_extra_attr() 378 (void) memcpy(attrp->attr.pValue, template->pValue, in kernel_add_extra_attr() 381 attrp->attr.pValue = NULL; in kernel_add_extra_attr() 417 if ((old_attrp->attr.pValue != NULL) && in kernel_copy_extra_attr() 419 attrp->attr.pValue = malloc(old_attrp->attr.ulValueLen); in kernel_copy_extra_attr() [all …]
|
H A D | kernelKeys.c | 86 free(t[i].pValue); in remove_one_attribute() 92 t[j].pValue = t[i].pValue; in remove_one_attribute() 101 t[j].pValue = NULL; in remove_one_attribute() 112 *(CK_OBJECT_CLASS *)(pTemplate[i].pValue) == in is_secret_key_template() 191 tmp.pValue = NULL; in get_key_len_from_template() 282 newTemplate[ulCount].pValue = (caddr_t)key_buf; in key_gen_by_value() 593 pubTemplate[n].pValue = (caddr_t)&pub_class; in key_gen_rsa_by_value() 600 pubTemplate[n].pValue = (caddr_t)&key_type; in key_gen_rsa_by_value() 606 pubTemplate[n].pValue = (caddr_t)public_exponent; in key_gen_rsa_by_value() 612 pubTemplate[n].pValue = (caddr_t)public_modulus; in key_gen_rsa_by_value() [all …]
|
H A D | kernelUtil.c | 659 tmp.pValue = NULL; in get_ec_private_key() 665 tmp.pValue = malloc(tmp.ulValueLen); in get_ec_private_key() 666 if (tmp.pValue == NULL) { in get_ec_private_key() 673 free(tmp.pValue); in get_ec_private_key() 678 cur_attr->oa_value = tmp.pValue; in get_ec_private_key() 731 tmp.pValue = NULL; in get_ec_public_key() 737 tmp.pValue = malloc(tmp.ulValueLen); in get_ec_public_key() 738 if (tmp.pValue == NULL) { in get_ec_public_key() 745 free(tmp.pValue); in get_ec_public_key() 750 cur_attr->oa_value = tmp.pValue; in get_ec_public_key() [all …]
|
/titanic_50/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softAttributeUtil.c | 276 *class = *((CK_OBJECT_CLASS*)template[i].pValue); in soft_validate_attr() 424 if (extra_attr->attr.pValue) in soft_cleanup_extra_attr() 431 free(extra_attr->attr.pValue); in soft_cleanup_extra_attr() 462 if ((template->pValue != NULL) && in soft_add_extra_attr() 465 attrp->attr.pValue = malloc(template->ulValueLen); in soft_add_extra_attr() 466 if (attrp->attr.pValue == NULL) { in soft_add_extra_attr() 471 (void) memcpy(attrp->attr.pValue, template->pValue, in soft_add_extra_attr() 474 attrp->attr.pValue = NULL; in soft_add_extra_attr() 551 if ((old_attrp->attr.pValue != NULL) && in soft_copy_extra_attr() 553 attrp->attr.pValue = malloc(old_attrp->attr.ulValueLen); in soft_copy_extra_attr() [all …]
|
H A D | softSSL.c | 536 new_tmpl[0].pValue = &class; in soft_ssl_master_key_derive() 539 new_tmpl[1].pValue = &keyType; in soft_ssl_master_key_derive() 542 new_tmpl[2].pValue = &true; in soft_ssl_master_key_derive() 545 new_tmpl[3].pValue = ssl_master_secret; in soft_ssl_master_key_derive() 555 (*((CK_OBJECT_CLASS *)pTemplate[i].pValue) != in soft_ssl_master_key_derive() 561 (*((CK_KEY_TYPE *)pTemplate[i].pValue) != in soft_ssl_master_key_derive() 774 obj_tmpl[0].pValue = &class; /* CKO_SECRET_KEY */ in soft_ssl_key_and_mac_derive() 777 obj_tmpl[1].pValue = &keyType; /* CKK_GENERIC_SECRET */ in soft_ssl_key_and_mac_derive() 780 obj_tmpl[2].pValue = &true; in soft_ssl_key_and_mac_derive() 783 obj_tmpl[3].pValue = &true; in soft_ssl_key_and_mac_derive() [all …]
|
H A D | softDH.c | 112 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()
|
/titanic_50/usr/src/uts/common/gssapi/mechs/krb5/crypto/ |
H A D | encrypt.c | 139 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()
|
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/crypto/ |
H A D | pbkdf2.c | 71 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()
|
/titanic_50/usr/src/cmd/cmd-crypto/digest/ |
H A D | digest.c | 303 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()
|
/titanic_50/usr/src/uts/common/gssapi/mechs/krb5/crypto/enc_provider/ |
H A D | arcfour_provider.c | 41 template[0].pValue = &class; in setup_arcfour_crypto() 44 template[1].pValue = &keyType; in setup_arcfour_crypto() 47 template[2].pValue = &false; in setup_arcfour_crypto() 50 template[3].pValue = &true; in setup_arcfour_crypto() 53 template[4].pValue = key->contents; in setup_arcfour_crypto()
|
/titanic_50/usr/src/cmd/cmd-crypto/decrypt/ |
H A D | decrypt.c | 361 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()
|