/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | key.c | 298 CK_ATTRIBUTE * attr = NULL; in key_object_check_required_attributes() 314 CK_ATTRIBUTE * id_attr = NULL; in key_object_set_default_attributes() 315 CK_ATTRIBUTE * sdate_attr = NULL; in key_object_set_default_attributes() 316 CK_ATTRIBUTE * edate_attr = NULL; in key_object_set_default_attributes() 317 CK_ATTRIBUTE * derive_attr = NULL; in key_object_set_default_attributes() 318 CK_ATTRIBUTE * local_attr = NULL; in key_object_set_default_attributes() 325 id_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE)); in key_object_set_default_attributes() 326 sdate_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE)); in key_object_set_default_attributes() 327 edate_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE)); in key_object_set_default_attributes() 328 derive_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) + in key_object_set_default_attributes() [all …]
|
H A D | template.c | 303 CK_ATTRIBUTE * pTemplate, in template_add_attributes() 306 CK_ATTRIBUTE * attr = NULL; in template_add_attributes() 314 attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) + in template_add_attributes() 323 attr->pValue = (CK_BYTE *)attr + sizeof (CK_ATTRIBUTE); in template_add_attributes() 423 CK_ATTRIBUTE ** attr) in template_attribute_find() 426 CK_ATTRIBUTE * a = NULL; in template_attribute_find() 433 a = (CK_ATTRIBUTE *)node->data; in template_attribute_find() 456 CK_ATTRIBUTE * attr = NULL; in template_attribute_find_multiple() 544 CK_ATTRIBUTE * attr; in template_check_required_base_attributes() 557 template_compare(CK_ATTRIBUTE * t1, in template_compare() [all …]
|
H A D | hwf_obj.c | 298 CK_ATTRIBUTE * attr = NULL; in hwf_object_check_required_attributes() 314 CK_ATTRIBUTE *attr = NULL; in clock_check_required_attributes() 330 CK_ATTRIBUTE *attr = NULL; in counter_check_required_attributes() 357 hwf_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) in hwf_validate_attribute() 373 clock_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) { in clock_validate_attribute() 384 counter_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) in counter_validate_attribute() 403 CK_ATTRIBUTE *value_attr; in clock_set_default_attributes() 405 value_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE)); in clock_set_default_attributes() 423 CK_ATTRIBUTE *value_attr; in counter_set_default_attributes() 424 CK_ATTRIBUTE *hasreset_attr; in counter_set_default_attributes() [all …]
|
H A D | cert.c | 307 CK_ATTRIBUTE * attr = NULL; in cert_check_required_attributes() 328 cert_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) in cert_validate_attribute() 351 CK_ATTRIBUTE *attr = NULL; in cert_x509_check_required_attributes() 377 CK_ATTRIBUTE * id_attr = NULL; in cert_x509_set_default_attributes() 378 CK_ATTRIBUTE * issuer_attr = NULL; in cert_x509_set_default_attributes() 379 CK_ATTRIBUTE * serial_attr = NULL; in cert_x509_set_default_attributes() 384 id_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE)); in cert_x509_set_default_attributes() 385 issuer_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE)); in cert_x509_set_default_attributes() 386 serial_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE)); in cert_x509_set_default_attributes() 417 CK_ATTRIBUTE *attr, CK_ULONG mode) in cert_x509_validate_attribute() [all …]
|
H A D | data_obj.c | 314 CK_ATTRIBUTE *class_attr = NULL; in data_object_set_default_attributes() 315 CK_ATTRIBUTE *app_attr = NULL; in data_object_set_default_attributes() 316 CK_ATTRIBUTE *value_attr = NULL; in data_object_set_default_attributes() 321 class_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) + in data_object_set_default_attributes() 323 app_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE)); in data_object_set_default_attributes() 324 value_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE)); in data_object_set_default_attributes() 343 class_attr->pValue = (CK_BYTE *)class_attr + sizeof (CK_ATTRIBUTE); in data_object_set_default_attributes() 354 data_object_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, in data_object_validate_attribute()
|
H A D | tpmtok_int.h | 595 CK_RV clock_validate_attribute(TEMPLATE *, CK_ATTRIBUTE *, CK_ULONG); 599 CK_RV counter_validate_attribute(TEMPLATE *, CK_ATTRIBUTE *, CK_ULONG); 624 CK_BYTE *, CK_ULONG, CK_ATTRIBUTE **); 630 CK_RV remove_leading_zeros(CK_ATTRIBUTE *); 816 CK_ATTRIBUTE *, CK_ULONG, 817 CK_ATTRIBUTE *, CK_ULONG, 831 CK_ATTRIBUTE *, 928 CK_ATTRIBUTE *, CK_ULONG, CK_OBJECT_HANDLE *); 936 CK_ATTRIBUTE *, CK_ULONG, CK_OBJECT_HANDLE, 943 CK_ATTRIBUTE *, CK_ULONG, CK_ULONG, [all …]
|
H A D | asn1.c | 886 CK_ATTRIBUTE * modulus, in ber_encode_RSAPrivateKey() 887 CK_ATTRIBUTE * publ_exp, in ber_encode_RSAPrivateKey() 888 CK_ATTRIBUTE * priv_exp, in ber_encode_RSAPrivateKey() 889 CK_ATTRIBUTE * prime1, in ber_encode_RSAPrivateKey() 890 CK_ATTRIBUTE * prime2, in ber_encode_RSAPrivateKey() 891 CK_ATTRIBUTE * exponent1, in ber_encode_RSAPrivateKey() 892 CK_ATTRIBUTE * exponent2, in ber_encode_RSAPrivateKey() 893 CK_ATTRIBUTE * coeff) in ber_encode_RSAPrivateKey() 964 (CK_BYTE *)modulus + sizeof (CK_ATTRIBUTE), modulus->ulValueLen); in ber_encode_RSAPrivateKey() 973 (CK_BYTE *)publ_exp + sizeof (CK_ATTRIBUTE), publ_exp->ulValueLen); in ber_encode_RSAPrivateKey() [all …]
|
H A D | object.c | 304 object_create(CK_ATTRIBUTE * pTemplate, in object_create() 309 CK_ATTRIBUTE * attr = NULL; in object_create() 310 CK_ATTRIBUTE * sensitive = NULL; in object_create() 311 CK_ATTRIBUTE * extractable = NULL; in object_create() 312 CK_ATTRIBUTE * local = NULL; in object_create() 424 object_copy(CK_ATTRIBUTE * pTemplate, in object_copy() 578 CK_ATTRIBUTE * attr = NULL; in object_is_modifiable() 598 CK_ATTRIBUTE * attr = NULL; in object_is_private() 627 CK_ATTRIBUTE * attr = NULL; in object_is_token_object() 662 CK_ATTRIBUTE * pTemplate, in object_get_attribute_values() [all …]
|
H A D | key_mgr.c | 61 CK_ATTRIBUTE * publ_tmpl, in key_mgr_generate_key_pair() 63 CK_ATTRIBUTE * priv_tmpl, in key_mgr_generate_key_pair() 70 CK_ATTRIBUTE * attr = NULL; in key_mgr_generate_key_pair() 71 CK_ATTRIBUTE * new_attr = NULL; in key_mgr_generate_key_pair() 242 CK_ATTRIBUTE * attr = NULL; in key_mgr_wrap_key() 351 CK_ATTRIBUTE * attributes, in key_mgr_unwrap_key()
|
H A D | utility.c | 502 CK_ATTRIBUTE **attrib) { in build_attribute() 503 CK_ATTRIBUTE *attr = NULL; in build_attribute() 505 attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) + data_len); in build_attribute() 513 attr->pValue = (CK_BYTE *)attr + sizeof (CK_ATTRIBUTE); in build_attribute() 562 remove_leading_zeros(CK_ATTRIBUTE *attr) in remove_leading_zeros()
|
H A D | mech_rsa.c | 60 CK_ATTRIBUTE * attr = NULL; in ckm_rsa_encrypt() 89 CK_ATTRIBUTE * attr = NULL; in ckm_rsa_decrypt() 121 CK_ATTRIBUTE * attr = NULL; in ckm_rsa_sign() 151 CK_ATTRIBUTE * attr = NULL; in ckm_rsa_verify() 184 CK_ATTRIBUTE *attr = NULL; in rsa_pkcs_encrypt() 227 CK_ATTRIBUTE *attr = NULL; in rsa_pkcs_decrypt() 271 CK_ATTRIBUTE *attr = NULL; in rsa_pkcs_sign() 315 CK_ATTRIBUTE *attr = NULL; in rsa_pkcs_verify() 354 CK_ATTRIBUTE *attr = NULL; in rsa_pkcs_verify_recover()
|
H A D | obj_mgr.c | 362 CK_ATTRIBUTE * pTemplate, in object_mgr_add() 543 CK_ATTRIBUTE * pTemplate, in object_mgr_copy() 687 CK_ATTRIBUTE * pTemplate, in object_mgr_create_skel() 1147 CK_ATTRIBUTE * pTemplate, in object_mgr_find_init() 1218 CK_ATTRIBUTE * pTemplate, in object_mgr_find_build_list() 1231 CK_ATTRIBUTE * attr; in object_mgr_find_build_list() 1344 CK_ATTRIBUTE * pTemplate, in object_mgr_get_attribute_values() 1714 CK_ATTRIBUTE * pTemplate, in object_mgr_set_attribute_values()
|
H A D | decr_mgr.c | 40 CK_ATTRIBUTE * attr = NULL; in decr_mgr_init()
|
H A D | encr_mgr.c | 38 CK_ATTRIBUTE * attr = NULL; in encr_mgr_init()
|
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | metaGlobal.h | 205 CK_ATTRIBUTE attribute; 414 CK_ATTRIBUTE *clone_template; /* NULL if not yet known. */ 597 CK_ATTRIBUTE *k1Template, CK_ULONG k1AttrCount, meta_object_t *key1, 598 CK_ATTRIBUTE *k2Template, CK_ULONG k2AttrCount, meta_object_t *key2); 608 CK_ATTRIBUTE *template, CK_ULONG template_size, 614 CK_ATTRIBUTE *pTemplate, CK_ULONG ulAttributeCount, 655 boolean_t meta_freeobject_set(meta_object_t *object, CK_ATTRIBUTE *tmpl, 658 CK_ATTRIBUTE *tmpl, CK_ULONG tmpl_len); 660 CK_MECHANISM *pMech, CK_ATTRIBUTE *tmpl, CK_ULONG tmpl_len, 668 CK_ATTRIBUTE *template, CK_ULONG template_size, [all …]
|
H A D | metaAttrManager.c | 51 CK_ATTRIBUTE attr; in get_master_attributes_by_object() 109 CK_ATTRIBUTE *template, CK_ULONG template_size, in get_master_attributes_by_template() 548 attribute_set_value(CK_ATTRIBUTE *new_attr, in attribute_set_value() 648 get_template_ulong(CK_ATTRIBUTE_TYPE type, CK_ATTRIBUTE *attributes, in get_template_ulong() 675 get_template_boolean(CK_ATTRIBUTE_TYPE type, CK_ATTRIBUTE *attributes, in get_template_boolean() 712 set_template_boolean(CK_ATTRIBUTE_TYPE type, CK_ATTRIBUTE *attributes, in set_template_boolean()
|
H A D | metaObjectManager.c | 284 CK_ATTRIBUTE attrs[3]; in meta_object_get_attr() 725 CK_ATTRIBUTE *attrs = NULL, *attrs_with_val = NULL; in meta_object_copyin() 764 attrs = calloc(object->num_attributes, sizeof (CK_ATTRIBUTE)); in meta_object_copyin() 803 attrs_with_val = calloc(num_attrs, sizeof (CK_ATTRIBUTE)); in meta_object_copyin() 889 CK_ATTRIBUTE template[WRAP_KEY_TEMPLATE_SIZE]; in create_wrap_unwrap_key() 1258 CK_ATTRIBUTE unwrap_template[4]; in clone_by_wrap() 1371 sizeof (unwrap_template) / sizeof (CK_ATTRIBUTE); in clone_by_wrap() 1612 CK_ATTRIBUTE *clone_template; in meta_clone_template_setup() 1615 clone_template = malloc(num_attributes * sizeof (CK_ATTRIBUTE)); in meta_clone_template_setup() 1827 CK_MECHANISM *pMech, CK_ATTRIBUTE *tmpl, CK_ULONG tmpl_len, in meta_freeobject_check() [all …]
|
H A D | pkcs11SUNWExtensions.c | 290 CK_ATTRIBUTE template[NUM_SECRETKEY_ATTRS]; in SUNW_C_KeyToObject() 387 CK_ATTRIBUTE template[NUM_SECRETKEY_ATTRS]; in pkcs11_PasswdToPBKD2Object() 511 CK_ATTRIBUTE template; in pkcs11_ObjectToKey()
|
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/ |
H A D | pkcs11_spi.c | 228 CK_ATTRIBUTE templ[10]; in PK11Cert2KMFCert() 230 (void) memset(templ, 0, 10 * sizeof (CK_ATTRIBUTE)); in PK11Cert2KMFCert() 359 CK_ATTRIBUTE *templ) in get_attr() 398 CK_ATTRIBUTE certattr; in matchcert() 483 CK_ATTRIBUTE templ[10]; in search_certs() 493 (void) memset(&templ, 0, 10 * sizeof (CK_ATTRIBUTE)); in search_certs() 786 CK_ATTRIBUTE rsaTemplate[4]; in KMFPK11_EncodePubKeyData() 787 CK_ATTRIBUTE dsaTemplate[6]; in KMFPK11_EncodePubKeyData() 788 CK_ATTRIBUTE ecdsaTemplate[6]; in KMFPK11_EncodePubKeyData() 1106 CK_ATTRIBUTE x509templ[11]; in CreateCertObject() [all …]
|
/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | pk11keys.c | 158 PKCS_AddTemplate(CK_ATTRIBUTE *pTemplate, in PKCS_AddTemplate() 190 CK_ATTRIBUTE ckTemplate[MAX_PUBLIC_KEY_TEMPLATES]; in PKCS_CreatePublicKey() 370 CK_ATTRIBUTE ckTemplate[3]; in PKCS_AcquirePublicKeyHandle() 373 sizeof (CK_ATTRIBUTE)); in PKCS_AcquirePublicKeyHandle() 446 CK_ATTRIBUTE subprime = { CKA_SUBPRIME, NULL, 0 }; in PKCS_VerifyData() 561 CK_ATTRIBUTE ckTemplate[2]; in PKCS_EncryptData() 564 sizeof (CK_ATTRIBUTE)); in PKCS_EncryptData()
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/ |
H A D | encrypt.c | 118 CK_ATTRIBUTE template[6]; in init_key_uef() 159 sizeof(template)/sizeof(CK_ATTRIBUTE), in init_key_uef()
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softSSL.c | 441 CK_ATTRIBUTE obj_tmpl[MAX_DEFAULT_ATTRS]; in soft_ssl_master_key_derive() 523 new_tmpl = malloc(sizeof (CK_ATTRIBUTE) * newattrcount); in soft_ssl_master_key_derive() 570 ulAttributeCount * sizeof (CK_ATTRIBUTE)); in soft_ssl_master_key_derive() 636 CK_ATTRIBUTE obj_tmpl[MAX_DEFAULT_ATTRS]; in soft_ssl_key_and_mac_derive() 817 new_tmpl = malloc(sizeof (CK_ATTRIBUTE) * newattrcount); in soft_ssl_key_and_mac_derive() 889 ulAttributeCount * sizeof (CK_ATTRIBUTE)); in soft_ssl_key_and_mac_derive()
|
H A D | softEC.c | 150 CK_ATTRIBUTE template; in soft_ec_genkey_pair() 217 CK_ATTRIBUTE template; in soft_ec_key_derive() 335 CK_ATTRIBUTE template; in soft_ecc_sign_verify_init_common() 537 CK_ATTRIBUTE template; in soft_ecc_verify()
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/enc_provider/ |
H A D | arcfour_provider.c | 31 CK_ATTRIBUTE template[5]; in setup_arcfour_crypto() 57 sizeof(template)/sizeof(CK_ATTRIBUTE), in setup_arcfour_crypto()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/ |
H A D | pbkdf2.c | 60 CK_ATTRIBUTE tmpl[3]; in krb5int_pbkdf2_hmac_sha1()
|