Cryptographic Token Interface Standard

PKCS#11


Platform- and compiler-dependent directives for C or C++


Sections

Structure packing
Pointer-related macros
Sample platform- and compiler-dependent code

Detailed Description

There is a large array of Cryptoki-related data types which are defined in the Cryptoki header files. Certain packing- and pointer-related aspects of these types are platform- and compiler-dependent; these aspects are therefore resolved on a platform-by-platform (or compiler-by-compiler) basis outside of the Cryptoki header files by means of preprocessor directives.

This means that when writing C or C++ code, certain preprocessor directives must be issued before including a Cryptoki header file. These directives are described in the remainder of Section .


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