Lines Matching refs:attrs
288 CK_ATTRIBUTE attrs[3];
294 attrs[0].type = CKA_CLASS;
295 attrs[0].pValue = &class;
296 attrs[0].ulValueLen = sizeof (class);
299 attrs[1].type = CKA_TOKEN;
300 attrs[1].pValue = &is_token;
301 attrs[1].ulValueLen = sizeof (is_token);
310 attrs[count].type = CKA_PRIVATE;
311 attrs[count].pValue = &is_private;
312 attrs[count].ulValueLen = sizeof (is_private);
318 attrs, count);
328 attrs[0].type = CKA_EXTRACTABLE;
329 attrs[0].pValue = &is_extractable;
330 attrs[0].ulValueLen = sizeof (is_extractable);
340 attrs[1].type = CKA_SENSITIVE;
341 attrs[1].pValue = &is_sensitive;
342 attrs[1].ulValueLen = sizeof (is_sensitive);
350 attrs[2].type = CKA_KEY_TYPE;
351 attrs[2].pValue = &keytype;
352 attrs[2].ulValueLen = sizeof (keytype);
361 attrs[count].type = CKA_KEY_TYPE;
362 attrs[count].pValue = &keytype;
363 attrs[count].ulValueLen = sizeof (keytype);
378 attrs, count);
729 CK_ATTRIBUTE *attrs = NULL, *attrs_with_val = NULL;
768 attrs = calloc(object->num_attributes, sizeof (CK_ATTRIBUTE));
769 if (attrs == NULL) {
776 attrs[i].type =
786 slot_object->hObject, attrs, num_attrs);
816 if (!(((CK_LONG)(attrs[i].ulValueLen)) > 0)) {
823 attrs_with_val[num_attrs_with_val].type = attrs[i].type;
825 attrs[i].ulValueLen;
827 malloc(attrs[i].ulValueLen);
857 if (attrs) {
859 if (attrs[i].pValue != NULL) {
860 free(attrs[i].pValue);
863 free(attrs);