Home
last modified time | relevance | path

Searched refs:class_attr (Results 1 – 2 of 2) sorted by relevance

/titanic_44/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Ddata_obj.c314 CK_ATTRIBUTE *class_attr = NULL; in data_object_set_default_attributes() local
321 class_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) + in data_object_set_default_attributes()
326 if (! class_attr || ! app_attr || ! value_attr) { in data_object_set_default_attributes()
327 if (class_attr) free(class_attr); in data_object_set_default_attributes()
341 class_attr->type = CKA_CLASS; in data_object_set_default_attributes()
342 class_attr->ulValueLen = sizeof (CK_OBJECT_CLASS); 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()
346 (void) template_update_attribute(tmpl, class_attr); in data_object_set_default_attributes()
H A Dkey.c409 CK_ATTRIBUTE *class_attr = NULL; in publ_key_set_default_attributes() local
427 class_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) + in publ_key_set_default_attributes()
441 if (class_attr) free(class_attr); in publ_key_set_default_attributes()
451 class_attr->type = CKA_CLASS; in publ_key_set_default_attributes()
452 class_attr->ulValueLen = sizeof (CK_OBJECT_CLASS); in publ_key_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()
485 (void) template_update_attribute(tmpl, class_attr); in publ_key_set_default_attributes()
526 CK_ATTRIBUTE *class_attr = NULL; in priv_key_set_default_attributes() local
543 class_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) + in priv_key_set_default_attributes()
[all …]