Lines Matching defs:attr
503 CK_ATTRIBUTE *attr = NULL;
505 attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) + data_len);
506 if (! attr) {
509 attr->type = type;
510 attr->ulValueLen = data_len;
513 attr->pValue = (CK_BYTE *)attr + sizeof (CK_ATTRIBUTE);
514 (void) memcpy(attr->pValue, data, data_len);
517 attr->pValue = NULL;
519 *attrib = attr;
562 remove_leading_zeros(CK_ATTRIBUTE *attr)
567 ptr = attr->pValue;
569 for (i = 0; i < attr->ulValueLen; i++) {
574 new_len = attr->ulValueLen - i;
577 attr->ulValueLen = new_len;