Cryptographic Token Interface Standard |
PKCS#11 |
Data Fields | |
CK_UTF8CHAR | slotDescription [64] |
character-string description of the slot. More... | |
CK_UTF8CHAR | manufacturerID [32] |
ID of the slot manufacturer. More... | |
CK_FLAGS | flags |
bits flags that provide capabilities of the slot. More... | |
CK_VERSION | hardwareVersion |
version number of the slot's hardware. More... | |
CK_VERSION | firmwareVersion |
version number of the slot's firmware. More... |
slotDescription | character-string description of the slot. Must be padded with the blank character (' '). Should ''not'' be null-terminated. |
manufacturerID | ID of the slot manufacturer. Must be padded with the blank character (' '). Should ''not'' be null-terminated. |
flags | bits flags that provide capabilities of the slot. The flags are defined below |
hardwareVersion | version number of the slot's hardware |
firmwareVersion | version number of the slot's firmware |
The following table defines the flags field:
Table 10, Slot Information Flags
Bit Flag | Mask | Meaning |
CKF_TOKEN_PRESENT | 0x00000001 | True if a token is present in the slot (e.g., a device is in the reader) |
CKF_REMOVABLE_DEVICE | 0x00000002 | True if the reader supports removable devices |
CKF_HW_SLOT | 0x00000004 | True if the slot is a hardware slot, as opposed to a software slot implementing a "soft token" |
For a given slot, the value of the CKF_REMOVABLE_DEVICE flag never changes. In addition, if this flag is not set for a given slot, then the CKF_TOKEN_PRESENT flag for that slot is always set. That is, if a slot does not support a removable device, then that slot always has a token in it.
CK_SLOT_INFO_PTR is a pointer to a CK_SLOT_INFO.
|
character-string description of the slot. Must be padded with the blank character (' '). Should ''not'' be null-terminated. |
|
ID of the slot manufacturer. Must be padded with the blank character (' '). Should ''not'' be null-terminated. |
|
bits flags that provide capabilities of the slot. The flags are defined below |
|
version number of the slot's hardware. |
|
version number of the slot's firmware. |