← Prev in month ← Prev in thread

New attribute: CKA_ATTRIBUTES

From
Michael StJohns
Date
2013-05-29T15:49:00+00:00
ID
Thread
New attribute: CKA_ATTRIBUTES
I'm getting into a bit of feature creep here, but I've often wished for an easier programmatic way to determine which attributes were applicable to which object.
Here's one approach.
<text> #define CKA_ATTRIBUTES (<toBeAssigned> CKF_ARRAY_ATTRIBUTE) Data type is CK_ATTRIBUTE_TYPE_PTR typedef *CK_ATTRIBUTE_TYPE CK_ATTRIBUTE_TYPE_PTR; // Needs to be added to CK_ATTRIBUTE_TYPE def This is a read-only, non-sensitive attribute present on all or none of the objects in a token.
If present it contains an array of CK_ATTRIBUTE_TYPE representing the complete set of valid attributes of that object.
If an attribute may be used for for an object, regardless of the purpose or sensitivity of that attribute, it must be included in the set for that object.
</text> It may be that we define two of these, one for all valid attributes, and one for attributes actually present.
← Prev in month ← Prev in thread