Cryptographic Token Interface Standard

PKCS#11


CK_ATTRIBUTE Reference

CK_ATTRIBUTE

CK_ATTRIBUTE is a structure that includes the type, length and value of an attribute. More...


Data Fields

CK_ATTRIBUTE_TYPE type
 the attribute type. More...

CK_VOID_PTR pValue
 pointer to the value of the attribute. More...

CK_USHORT usValueLen
 length in bytes of the value. More...


Detailed Description

CK_ATTRIBUTE

CK_ATTRIBUTE is a structure that includes the type, length and value of an attribute.
type the attribute type
pValue pointer to the value of the attribute
usValueLen length in bytes of the value

If an attribute has no value, then pValue = NULL_PTR, and usValueLen = 0. An array of CK_ATTRIBUTEs is called a "template" and is used for creating, manipulating and searching for objects. Note that pValue is an "void" pointer, facilitating the passing of arbitrary values. Both the application and Cryptoki library must ensure that the pointer can be safely cast to the expected type (e.g., without word-alignment errors).

CK_ATTRIBUTE_PTR

CK_ATTRIBUTE_PTR points to a CK_ATTRIBUTE structure. It is implementation dependent.

CK_DATE

CK_DATE is a structure that defines a date. It is defined as follows:


Field Documentation

CK_ATTRIBUTE_TYPE type
 

the attribute type.

CK_VOID_PTR pValue
 

pointer to the value of the attribute.

CK_USHORT usValueLen
 

length in bytes of the value.


RSA Security Inc. Public-Key Cryptography Standards - PKCS#11 - v100