Cryptoki: a cryptographic Token Interface



Download 360.55 Kb.
Page28/196
Date22.12.2023
Size360.55 Kb.
#63026
1   ...   24   25   26   27   28   29   30   31   ...   196
v201-95
pkcs11-base-v2.40-cos01
CK_INFO_PTR is a pointer to a CK_INFO.
  • CK_NOTIFICATION


CK_NOTIFICATION holds the types of notifications that Cryptoki provides to an application. It is defined as follows:
typedef CK_ULONG CK_NOTIFICATION;

For this version of Cryptoki, the following types of notifications are defined:


#define CKN_SURRENDER 0

The notifications have the following meanings:


CKN_SURRENDER Cryptoki is surrendering the execution of a function executing in a session so that the application may perform other operations. After performing any desired operations, the application should indicate to Cryptoki whether to continue or cancel the function (see Section ).

8.2. Slot and token types


Cryptoki represents slot and token information with the following types:
  • CK_SLOT_ID; CK_SLOT_ID_PTR


CK_SLOT_ID is a Cryptoki-assigned value that identifies a slot. It is defined as follows:
typedef CK_ULONG CK_SLOT_ID;

A list of CK_SLOT_IDs is returned by C_GetSlotList. A priori, any value of CK_SLOT_ID can be a valid slot identifier—in particular, a system may have a slot identified by the value 0. It need not have such a slot, however.


CK_SLOT_ID_PTR is a pointer to a CK_SLOT_ID.
  • CK_SLOT_INFO; CK_SLOT_INFO_PTR


CK_SLOT_INFO provides information about a slot. It is defined as follows:
typedef struct CK_SLOT_INFO {
CK_CHAR slotDescription[64];
CK_CHAR manufacturerID[32];
CK_FLAGS flags;
CK_VERSION hardwareVersion;
CK_VERSION firmwareVersion;
} CK_SLOT_INFO;

The fields of the structure have the following meanings:


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 9, Slot Information Flags


Download 360.55 Kb.

Share with your friends:
1   ...   24   25   26   27   28   29   30   31   ...   196




The database is protected by copyright ©ininet.org 2024
send message

    Main page