Cryptoki: a cryptographic Token Interface



Download 360.55 Kb.
Page27/196
Date22.12.2023
Size360.55 Kb.
#63026
1   ...   23   24   25   26   27   28   29   30   ...   196
v201-95
pkcs11-base-v2.40-cos01

8.1. General information


Cryptoki represents general information with the following types:
  • CK_VERSION; CK_VERSION_PTR


CK_VERSION is a structure that describes the version of a Cryptoki interface, a Cryptoki library, or an SSL implementation, or the hardware or firmware version of a slot or token. It is defined as follows:
typedef struct CK_VERSION {
CK_BYTE major;
CK_BYTE minor;
} CK_VERSION;

The fields of the structure have the following meanings:


major major version number (the integer portion of the version)
minor minor version number (the hundredths portion of the version)
For version 1.0, major = 1 and minor = 0. For version 2.1, major = 2 and minor = 10. Minor revisions of the Cryptoki standard are always upwardly compatible within the same major version number.
CK_VERSION_PTR is a pointer to a CK_VERSION.
  • CK_INFO; CK_INFO_PTR


CK_INFO provides general information about Cryptoki. It is defined as follows:
typedef struct CK_INFO {
CK_VERSION cryptokiVersion;
CK_CHAR manufacturerID[32];
CK_FLAGS flags;
CK_CHAR libraryDescription[32];
CK_VERSION libraryVersion;
} CK_INFO;

The fields of the structure have the following meanings:


cryptokiVersion Cryptoki interface version number, for compatibility with future revisions of this interface
manufacturerID ID of the Cryptoki library manufacturer. Must be padded with the blank character (‘ ‘). Should not be null-terminated.
flags bit flags reserved for future versions. Must be zero for this version
libraryDescription character-string description of the library. Must be padded with the blank character (‘ ‘). Should not be null-terminated.
libraryVersion Cryptoki library version number
For libraries written to this document, the value of cryptokiVersion should be 2.01; the value of libraryVersion is the version number of the library software itself.

Download 360.55 Kb.

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




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

    Main page