Home
last modified time | relevance | path

Searched refs:CK_ATTRIBUTE (Results 1 – 25 of 50) sorted by relevance

12

/titanic_50/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dkey.c298 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 Dtemplate.c303 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 Dhwf_obj.c298 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 Dcert.c307 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 Ddata_obj.c314 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 Dtpmtok_int.h594 CK_RV clock_validate_attribute(TEMPLATE *, CK_ATTRIBUTE *, CK_ULONG);
598 CK_RV counter_validate_attribute(TEMPLATE *, CK_ATTRIBUTE *, CK_ULONG);
623 CK_BYTE *, CK_ULONG, CK_ATTRIBUTE **);
629 CK_RV remove_leading_zeros(CK_ATTRIBUTE *);
815 CK_ATTRIBUTE *, CK_ULONG,
816 CK_ATTRIBUTE *, CK_ULONG,
830 CK_ATTRIBUTE *,
927 CK_ATTRIBUTE *, CK_ULONG, CK_OBJECT_HANDLE *);
935 CK_ATTRIBUTE *, CK_ULONG, CK_OBJECT_HANDLE,
942 CK_ATTRIBUTE *, CK_ULONG, CK_ULONG,
[all …]
H A Dasn1.c886 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 Dobject.c304 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 Dkey_mgr.c61 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 Dutility.c502 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 Dmech_rsa.c60 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 Dobj_mgr.c362 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 Ddecr_mgr.c40 CK_ATTRIBUTE * attr = NULL; in decr_mgr_init()
H A Dencr_mgr.c38 CK_ATTRIBUTE * attr = NULL; in encr_mgr_init()
/titanic_50/usr/src/lib/pkcs11/libpkcs11/common/
H A DmetaGlobal.h205 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 DmetaAttrManager.c50 CK_ATTRIBUTE attr; in get_master_attributes_by_object()
108 CK_ATTRIBUTE *template, CK_ULONG template_size, in get_master_attributes_by_template()
545 attribute_set_value(CK_ATTRIBUTE *new_attr, in attribute_set_value()
643 get_template_ulong(CK_ATTRIBUTE_TYPE type, CK_ATTRIBUTE *attributes, in get_template_ulong()
670 get_template_boolean(CK_ATTRIBUTE_TYPE type, CK_ATTRIBUTE *attributes, in get_template_boolean()
707 set_template_boolean(CK_ATTRIBUTE_TYPE type, CK_ATTRIBUTE *attributes, in set_template_boolean()
H A DmetaObjectManager.c283 CK_ATTRIBUTE attrs[3]; in meta_object_get_attr()
722 CK_ATTRIBUTE *attrs = NULL, *attrs_with_val = NULL; in meta_object_copyin()
761 attrs = calloc(object->num_attributes, sizeof (CK_ATTRIBUTE)); in meta_object_copyin()
800 attrs_with_val = calloc(num_attrs, sizeof (CK_ATTRIBUTE)); in meta_object_copyin()
885 CK_ATTRIBUTE template[WRAP_KEY_TEMPLATE_SIZE]; in create_wrap_unwrap_key()
1254 CK_ATTRIBUTE unwrap_template[4]; in clone_by_wrap()
1367 sizeof (unwrap_template) / sizeof (CK_ATTRIBUTE); in clone_by_wrap()
1609 CK_ATTRIBUTE *clone_template; in meta_clone_template_setup()
1612 clone_template = malloc(num_attributes * sizeof (CK_ATTRIBUTE)); in meta_clone_template_setup()
1824 CK_MECHANISM *pMech, CK_ATTRIBUTE *tmpl, CK_ULONG tmpl_len, in meta_freeobject_check()
[all …]
H A Dpkcs11SUNWExtensions.c290 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()
/titanic_50/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/
H A Dpkcs11_spi.c228 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 …]
/titanic_50/usr/src/lib/libkmf/libkmf/common/
H A Dpk11keys.c158 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()
/titanic_50/usr/src/uts/common/gssapi/mechs/krb5/crypto/
H A Dencrypt.c118 CK_ATTRIBUTE template[6]; in init_key_uef()
159 sizeof(template)/sizeof(CK_ATTRIBUTE), in init_key_uef()
/titanic_50/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftSSL.c439 CK_ATTRIBUTE obj_tmpl[MAX_DEFAULT_ATTRS]; in soft_ssl_master_key_derive()
521 new_tmpl = malloc(sizeof (CK_ATTRIBUTE) * newattrcount); in soft_ssl_master_key_derive()
568 ulAttributeCount * sizeof (CK_ATTRIBUTE)); in soft_ssl_master_key_derive()
634 CK_ATTRIBUTE obj_tmpl[MAX_DEFAULT_ATTRS]; in soft_ssl_key_and_mac_derive()
815 new_tmpl = malloc(sizeof (CK_ATTRIBUTE) * newattrcount); in soft_ssl_key_and_mac_derive()
884 ulAttributeCount * sizeof (CK_ATTRIBUTE)); in soft_ssl_key_and_mac_derive()
H A DsoftEC.c150 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()
/titanic_50/usr/src/uts/common/gssapi/mechs/krb5/crypto/enc_provider/
H A Darcfour_provider.c32 CK_ATTRIBUTE template[5]; in setup_arcfour_crypto()
58 sizeof(template)/sizeof(CK_ATTRIBUTE), in setup_arcfour_crypto()
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/crypto/
H A Dpbkdf2.c60 CK_ATTRIBUTE tmpl[3]; in krb5int_pbkdf2_hmac_sha1()

12