pam_pkcs11 0.6.12
pkcs11t.h
Go to the documentation of this file.
1/* pkcs11t.h include file for PKCS #11. */
2/* $Revision: 1.4 $ */
3
4/* License to copy and use this software is granted provided that it is
5 * identified as "RSA Security Inc. PKCS #11 Cryptographic Token Interface
6 * (Cryptoki)" in all material mentioning or referencing this software.
7
8 * License is also granted to make and use derivative works provided that
9 * such works are identified as "derived from the RSA Security Inc. PKCS #11
10 * Cryptographic Token Interface (Cryptoki)" in all material mentioning or
11 * referencing the derived work.
12
13 * RSA Security Inc. makes no representations concerning either the
14 * merchantability of this software or the suitability of this software for
15 * any particular purpose. It is provided "as is" without express or implied
16 * warranty of any kind.
17 */
18
19/* See top of pkcs11.h for information about the macros that
20 * must be defined and the structure-packing conventions that
21 * must be set before including this file. */
22
23#ifndef _PKCS11T_H_
24#define _PKCS11T_H_ 1
25
26#ifndef CK_DISABLE_TRUE_FALSE
27#ifndef FALSE
28#define FALSE 0
29#endif
30
31#ifndef TRUE
32#define TRUE !(FALSE)
33#endif
34#endif
35
36#define CK_TRUE 1
37#define CK_FALSE 0
38
39/* an unsigned 8-bit value */
40typedef unsigned char CK_BYTE;
41
42/* an unsigned 8-bit character */
44
45/* an 8-bit UTF-8 character */
47
48/* a BYTE-sized Boolean flag */
50
51/* an unsigned value, at least 32 bits long */
52typedef unsigned long int CK_ULONG;
53
54/* a signed value, the same size as a CK_ULONG */
55/* CK_LONG is new for v2.0 */
56typedef long int CK_LONG;
57
58/* at least 32 bits; each bit is a Boolean flag */
60
61
62/* some special values for certain CK_ULONG variables */
63#define CK_UNAVAILABLE_INFORMATION (~0UL)
64#define CK_EFFECTIVELY_INFINITE 0
65
66
71typedef void CK_PTR CK_VOID_PTR;
72
73/* Pointer to a CK_VOID_PTR-- i.e., pointer to pointer to void */
75
76
77/* The following value is always invalid if used as a session */
78/* handle or object handle */
79#define CK_INVALID_HANDLE 0
80
81
82typedef struct CK_VERSION {
83 CK_BYTE major; /* integer portion of version number */
84 CK_BYTE minor; /* 1/100ths portion of version number */
86
88
89
90typedef struct CK_INFO {
91 /* manufacturerID and libraryDecription have been changed from
92 * CK_CHAR to CK_UTF8CHAR for v2.10 */
93 CK_VERSION cryptokiVersion; /* Cryptoki interface ver */
94 CK_UTF8CHAR manufacturerID[32]; /* blank padded */
95 CK_FLAGS flags; /* must be zero */
96
97 /* libraryDescription and libraryVersion are new for v2.0 */
98 CK_UTF8CHAR libraryDescription[32]; /* blank padded */
99 CK_VERSION libraryVersion; /* version of library */
101
103
104
105/* CK_NOTIFICATION enumerates the types of notifications that
106 * Cryptoki provides to an application */
107/* CK_NOTIFICATION has been changed from an enum to a CK_ULONG
108 * for v2.0 */
110#define CKN_SURRENDER 0
111
112
114
116
117
118/* CK_SLOT_INFO provides information about a slot */
119typedef struct CK_SLOT_INFO {
120 /* slotDescription and manufacturerID have been changed from
121 * CK_CHAR to CK_UTF8CHAR for v2.10 */
122 CK_UTF8CHAR slotDescription[64]; /* blank padded */
123 CK_UTF8CHAR manufacturerID[32]; /* blank padded */
125
126 /* hardwareVersion and firmwareVersion are new for v2.0 */
127 CK_VERSION hardwareVersion; /* version of hardware */
128 CK_VERSION firmwareVersion; /* version of firmware */
130
131/* flags: bit flags that provide capabilities of the slot
132 * Bit Flag Mask Meaning
133 */
134#define CKF_TOKEN_PRESENT 0x00000001 /* a token is there */
135#define CKF_REMOVABLE_DEVICE 0x00000002 /* removable devices */
136#define CKF_HW_SLOT 0x00000004 /* hardware slot */
137
139
140
141/* CK_TOKEN_INFO provides information about a token */
142typedef struct CK_TOKEN_INFO {
143 /* label, manufacturerID, and model have been changed from
144 * CK_CHAR to CK_UTF8CHAR for v2.10 */
145 CK_UTF8CHAR label[32]; /* blank padded */
146 CK_UTF8CHAR manufacturerID[32]; /* blank padded */
147 CK_UTF8CHAR model[16]; /* blank padded */
148 CK_CHAR serialNumber[16]; /* blank padded */
149 CK_FLAGS flags; /* see below */
150
151 /* ulMaxSessionCount, ulSessionCount, ulMaxRwSessionCount,
152 * ulRwSessionCount, ulMaxPinLen, and ulMinPinLen have all been
153 * changed from CK_USHORT to CK_ULONG for v2.0 */
154 CK_ULONG ulMaxSessionCount; /* max open sessions */
155 CK_ULONG ulSessionCount; /* sess. now open */
156 CK_ULONG ulMaxRwSessionCount; /* max R/W sessions */
157 CK_ULONG ulRwSessionCount; /* R/W sess. now open */
158 CK_ULONG ulMaxPinLen; /* in bytes */
159 CK_ULONG ulMinPinLen; /* in bytes */
164
165 /* hardwareVersion, firmwareVersion, and time are new for
166 * v2.0 */
167 CK_VERSION hardwareVersion; /* version of hardware */
168 CK_VERSION firmwareVersion; /* version of firmware */
169 CK_CHAR utcTime[16]; /* time */
171
172/* The flags parameter is defined as follows:
173 * Bit Flag Mask Meaning
174 */
175#define CKF_RNG 0x00000001 /* has random #
176 * generator */
177#define CKF_WRITE_PROTECTED 0x00000002 /* token is
178 * write-
179 * protected */
180#define CKF_LOGIN_REQUIRED 0x00000004 /* user must
181 * login */
182#define CKF_USER_PIN_INITIALIZED 0x00000008 /* normal user's
183 * PIN is set */
185/* CKF_RESTORE_KEY_NOT_NEEDED is new for v2.0. If it is set,
186 * that means that *every* time the state of cryptographic
187 * operations of a session is successfully saved, all keys
188 * needed to continue those operations are stored in the state */
189#define CKF_RESTORE_KEY_NOT_NEEDED 0x00000020
190
191/* CKF_CLOCK_ON_TOKEN is new for v2.0. If it is set, that means
192 * that the token has some sort of clock. The time on that
193 * clock is returned in the token info structure */
194#define CKF_CLOCK_ON_TOKEN 0x00000040
195
196/* CKF_PROTECTED_AUTHENTICATION_PATH is new for v2.0. If it is
197 * set, that means that there is some way for the user to login
198 * without sending a PIN through the Cryptoki library itself */
199#define CKF_PROTECTED_AUTHENTICATION_PATH 0x00000100
200
201/* CKF_DUAL_CRYPTO_OPERATIONS is new for v2.0. If it is true,
202 * that means that a single session with the token can perform
203 * dual simultaneous cryptographic operations (digest and
204 * encrypt; decrypt and digest; sign and encrypt; and decrypt
205 * and sign) */
206#define CKF_DUAL_CRYPTO_OPERATIONS 0x00000200
207
208/* CKF_TOKEN_INITIALIZED if new for v2.10. If it is true, the
209 * token has been initialized using C_InitializeToken or an
210 * equivalent mechanism outside the scope of PKCS #11.
211 * Calling C_InitializeToken when this flag is set will cause
212 * the token to be reinitialized. */
213#define CKF_TOKEN_INITIALIZED 0x00000400
214
215/* CKF_SECONDARY_AUTHENTICATION if new for v2.10. If it is
216 * true, the token supports secondary authentication for
217 * private key objects. */
218#define CKF_SECONDARY_AUTHENTICATION 0x00000800
219
220/* CKF_USER_PIN_COUNT_LOW if new for v2.10. If it is true, an
221 * incorrect user login PIN has been entered at least once
222 * since the last successful authentication. */
223#define CKF_USER_PIN_COUNT_LOW 0x00010000
224
225/* CKF_USER_PIN_FINAL_TRY if new for v2.10. If it is true,
226 * supplying an incorrect user PIN will it to become locked. */
227#define CKF_USER_PIN_FINAL_TRY 0x00020000
228
229/* CKF_USER_PIN_LOCKED if new for v2.10. If it is true, the
230 * user PIN has been locked. User login to the token is not
231 * possible. */
232#define CKF_USER_PIN_LOCKED 0x00040000
234/* CKF_USER_PIN_TO_BE_CHANGED if new for v2.10. If it is true,
235 * the user PIN value is the default value set by token
236 * initialization or manufacturing, or the PIN has been
237 * expired by the card. */
238#define CKF_USER_PIN_TO_BE_CHANGED 0x00080000
239
240/* CKF_SO_PIN_COUNT_LOW if new for v2.10. If it is true, an
241 * incorrect SO login PIN has been entered at least once since
242 * the last successful authentication. */
243#define CKF_SO_PIN_COUNT_LOW 0x00100000
244
245/* CKF_SO_PIN_FINAL_TRY if new for v2.10. If it is true,
246 * supplying an incorrect SO PIN will it to become locked. */
247#define CKF_SO_PIN_FINAL_TRY 0x00200000
248
249/* CKF_SO_PIN_LOCKED if new for v2.10. If it is true, the SO
250 * PIN has been locked. SO login to the token is not possible.
251 */
252#define CKF_SO_PIN_LOCKED 0x00400000
254/* CKF_SO_PIN_TO_BE_CHANGED if new for v2.10. If it is true,
255 * the SO PIN value is the default value set by token
256 * initialization or manufacturing, or the PIN has been
257 * expired by the card. */
258#define CKF_SO_PIN_TO_BE_CHANGED 0x00800000
259
261
263/* CK_SESSION_HANDLE is a Cryptoki-assigned value that
264 * identifies a session */
266
269
270/* CK_USER_TYPE enumerates the types of Cryptoki users */
271/* CK_USER_TYPE has been changed from an enum to a CK_ULONG for
272 * v2.0 */
273typedef CK_ULONG CK_USER_TYPE;
274/* Security Officer */
275#define CKU_SO 0
276/* Normal user */
277#define CKU_USER 1
280/* CK_STATE enumerates the session states */
281/* CK_STATE has been changed from an enum to a CK_ULONG for
282 * v2.0 */
284#define CKS_RO_PUBLIC_SESSION 0
285#define CKS_RO_USER_FUNCTIONS 1
286#define CKS_RW_PUBLIC_SESSION 2
287#define CKS_RW_USER_FUNCTIONS 3
288#define CKS_RW_SO_FUNCTIONS 4
291/* CK_SESSION_INFO provides information about a session */
292typedef struct CK_SESSION_INFO {
295 CK_FLAGS flags; /* see below */
296
297 /* ulDeviceError was changed from CK_USHORT to CK_ULONG for
298 * v2.0 */
299 CK_ULONG ulDeviceError; /* device-dependent error code */
302/* The flags are defined in the following table:
303 * Bit Flag Mask Meaning
304 */
305#define CKF_RW_SESSION 0x00000002 /* session is r/w */
306#define CKF_SERIAL_SESSION 0x00000004 /* no parallel */
307
309
311/* CK_OBJECT_HANDLE is a token-specific identifier for an
312 * object */
314
316
317
318/* CK_OBJECT_CLASS is a value that identifies the classes (or
319 * types) of objects that Cryptoki recognizes. It is defined
320 * as follows: */
321/* CK_OBJECT_CLASS was changed from CK_USHORT to CK_ULONG for
322 * v2.0 */
325/* The following classes of objects are defined: */
326/* CKO_HW_FEATURE is new for v2.10 */
327/* CKO_DOMAIN_PARAMETERS is new for v2.11 */
328#define CKO_DATA 0x00000000
329#define CKO_CERTIFICATE 0x00000001
330#define CKO_PUBLIC_KEY 0x00000002
331#define CKO_PRIVATE_KEY 0x00000003
332#define CKO_SECRET_KEY 0x00000004
333#define CKO_HW_FEATURE 0x00000005
334#define CKO_DOMAIN_PARAMETERS 0x00000006
335#define CKO_VENDOR_DEFINED 0x80000000
336
338
339/* CK_HW_FEATURE_TYPE is new for v2.10. CK_HW_FEATURE_TYPE is a
340 * value that identifies the hardware feature type of an object
341 * with CK_OBJECT_CLASS equal to CKO_HW_FEATURE. */
343
344/* The following hardware feature types are defined */
345#define CKH_MONOTONIC_COUNTER 0x00000001
346#define CKH_CLOCK 0x00000002
347#define CKH_VENDOR_DEFINED 0x80000000
348
349/* CK_KEY_TYPE is a value that identifies a key type */
350/* CK_KEY_TYPE was changed from CK_USHORT to CK_ULONG for v2.0 */
352
353/* the following key types are defined: */
354#define CKK_RSA 0x00000000
355#define CKK_DSA 0x00000001
356#define CKK_DH 0x00000002
358/* CKK_ECDSA and CKK_KEA are new for v2.0 */
359/* CKK_ECDSA is deprecated in v2.11, CKK_EC is preferred. */
360#define CKK_ECDSA 0x00000003
361#define CKK_EC 0x00000003
362#define CKK_X9_42_DH 0x00000004
363#define CKK_KEA 0x00000005
365#define CKK_GENERIC_SECRET 0x00000010
366#define CKK_RC2 0x00000011
367#define CKK_RC4 0x00000012
368#define CKK_DES 0x00000013
369#define CKK_DES2 0x00000014
370#define CKK_DES3 0x00000015
372/* all these key types are new for v2.0 */
373#define CKK_CAST 0x00000016
374#define CKK_CAST3 0x00000017
375/* CKK_CAST5 is deprecated in v2.11, CKK_CAST128 is preferred. */
376#define CKK_CAST5 0x00000018
377#define CKK_CAST128 0x00000018
378#define CKK_RC5 0x00000019
379#define CKK_IDEA 0x0000001A
380#define CKK_SKIPJACK 0x0000001B
381#define CKK_BATON 0x0000001C
382#define CKK_JUNIPER 0x0000001D
383#define CKK_CDMF 0x0000001E
384#define CKK_AES 0x0000001F
385
386#define CKK_VENDOR_DEFINED 0x80000000
387
389/* CK_CERTIFICATE_TYPE is a value that identifies a certificate
390 * type */
391/* CK_CERTIFICATE_TYPE was changed from CK_USHORT to CK_ULONG
392 * for v2.0 */
395/* The following certificate types are defined: */
396/* CKC_X_509_ATTR_CERT is new for v2.10 */
397#define CKC_X_509 0x00000000
398#define CKC_X_509_ATTR_CERT 0x00000001
399#define CKC_VENDOR_DEFINED 0x80000000
400
402/* CK_ATTRIBUTE_TYPE is a value that identifies an attribute
403 * type */
404/* CK_ATTRIBUTE_TYPE was changed from CK_USHORT to CK_ULONG for
405 * v2.0 */
408/* The following attribute types are defined: */
409#define CKA_CLASS 0x00000000
410#define CKA_TOKEN 0x00000001
411#define CKA_PRIVATE 0x00000002
412#define CKA_LABEL 0x00000003
413#define CKA_APPLICATION 0x00000010
414#define CKA_VALUE 0x00000011
416/* CKA_OBJECT_ID is new for v2.10 */
417#define CKA_OBJECT_ID 0x00000012
418
419#define CKA_CERTIFICATE_TYPE 0x00000080
420#define CKA_ISSUER 0x00000081
421#define CKA_SERIAL_NUMBER 0x00000082
423/* CKA_AC_ISSUER, CKA_OWNER, and CKA_ATTR_TYPES are new
424 * for v2.10 */
425#define CKA_AC_ISSUER 0x00000083
426#define CKA_OWNER 0x00000084
427#define CKA_ATTR_TYPES 0x00000085
429/* CKA_TRUSTED is new for v2.11 */
430#define CKA_TRUSTED 0x00000086
432#define CKA_KEY_TYPE 0x00000100
433#define CKA_SUBJECT 0x00000101
434#define CKA_ID 0x00000102
435#define CKA_SENSITIVE 0x00000103
436#define CKA_ENCRYPT 0x00000104
437#define CKA_DECRYPT 0x00000105
438#define CKA_WRAP 0x00000106
439#define CKA_UNWRAP 0x00000107
440#define CKA_SIGN 0x00000108
441#define CKA_SIGN_RECOVER 0x00000109
442#define CKA_VERIFY 0x0000010A
443#define CKA_VERIFY_RECOVER 0x0000010B
444#define CKA_DERIVE 0x0000010C
445#define CKA_START_DATE 0x00000110
446#define CKA_END_DATE 0x00000111
447#define CKA_MODULUS 0x00000120
448#define CKA_MODULUS_BITS 0x00000121
449#define CKA_PUBLIC_EXPONENT 0x00000122
450#define CKA_PRIVATE_EXPONENT 0x00000123
451#define CKA_PRIME_1 0x00000124
452#define CKA_PRIME_2 0x00000125
453#define CKA_EXPONENT_1 0x00000126
454#define CKA_EXPONENT_2 0x00000127
455#define CKA_COEFFICIENT 0x00000128
456#define CKA_PRIME 0x00000130
457#define CKA_SUBPRIME 0x00000131
458#define CKA_BASE 0x00000132
459
460/* CKA_PRIME_BITS and CKA_SUB_PRIME_BITS are new for v2.11 */
461#define CKA_PRIME_BITS 0x00000133
462#define CKA_SUBPRIME_BITS 0x00000134
463#define CKA_SUB_PRIME_BITS CKA_SUBPRIME_BITS
464/* (To retain backwards-compatibility) */
465
466#define CKA_VALUE_BITS 0x00000160
467#define CKA_VALUE_LEN 0x00000161
469/* CKA_EXTRACTABLE, CKA_LOCAL, CKA_NEVER_EXTRACTABLE,
470 * CKA_ALWAYS_SENSITIVE, CKA_MODIFIABLE, CKA_ECDSA_PARAMS,
471 * and CKA_EC_POINT are new for v2.0 */
472#define CKA_EXTRACTABLE 0x00000162
473#define CKA_LOCAL 0x00000163
474#define CKA_NEVER_EXTRACTABLE 0x00000164
475#define CKA_ALWAYS_SENSITIVE 0x00000165
476
477/* CKA_KEY_GEN_MECHANISM is new for v2.11 */
478#define CKA_KEY_GEN_MECHANISM 0x00000166
480#define CKA_MODIFIABLE 0x00000170
481
482/* CKA_ECDSA_PARAMS is deprecated in v2.11,
483 * CKA_EC_PARAMS is preferred. */
484#define CKA_ECDSA_PARAMS 0x00000180
485#define CKA_EC_PARAMS 0x00000180
486
487#define CKA_EC_POINT 0x00000181
489/* CKA_SECONDARY_AUTH, CKA_AUTH_PIN_FLAGS,
490 * CKA_HW_FEATURE_TYPE, CKA_RESET_ON_INIT, and CKA_HAS_RESET
491 * are new for v2.10 */
492#define CKA_SECONDARY_AUTH 0x00000200
493#define CKA_AUTH_PIN_FLAGS 0x00000201
494#define CKA_HW_FEATURE_TYPE 0x00000300
495#define CKA_RESET_ON_INIT 0x00000301
496#define CKA_HAS_RESET 0x00000302
497
498#define CKA_VENDOR_DEFINED 0x80000000
501/* CK_ATTRIBUTE is a structure that includes the type, length
502 * and value of an attribute */
503typedef struct CK_ATTRIBUTE {
507 /* ulValueLen went from CK_USHORT to CK_ULONG for v2.0 */
508 CK_ULONG ulValueLen; /* in bytes */
514/* CK_DATE is a structure that defines a date */
515typedef struct CK_DATE {
516 CK_CHAR year[4]; /* the year ("1900" - "9999") */
517 CK_CHAR month[2]; /* the month ("01" - "12") */
518 CK_CHAR day[2]; /* the day ("01" - "31") */
519} CK_DATE;
520
522/* CK_MECHANISM_TYPE is a value that identifies a mechanism
523 * type */
524/* CK_MECHANISM_TYPE was changed from CK_USHORT to CK_ULONG for
525 * v2.0 */
528/* the following mechanism types are defined: */
529#define CKM_RSA_PKCS_KEY_PAIR_GEN 0x00000000
530#define CKM_RSA_PKCS 0x00000001
531#define CKM_RSA_9796 0x00000002
532#define CKM_RSA_X_509 0x00000003
534/* CKM_MD2_RSA_PKCS, CKM_MD5_RSA_PKCS, and CKM_SHA1_RSA_PKCS
535 * are new for v2.0. They are mechanisms which hash and sign */
536#define CKM_MD2_RSA_PKCS 0x00000004
537#define CKM_MD5_RSA_PKCS 0x00000005
538#define CKM_SHA1_RSA_PKCS 0x00000006
540/* CKM_RIPEMD128_RSA_PKCS, CKM_RIPEMD160_RSA_PKCS, and
541 * CKM_RSA_PKCS_OAEP are new for v2.10 */
542#define CKM_RIPEMD128_RSA_PKCS 0x00000007
543#define CKM_RIPEMD160_RSA_PKCS 0x00000008
544#define CKM_RSA_PKCS_OAEP 0x00000009
546/* CKM_RSA_X9_31_KEY_PAIR_GEN, CKM_RSA_X9_31, CKM_SHA1_RSA_X9_31,
547 * CKM_RSA_PKCS_PSS, and CKM_SHA1_RSA_PKCS_PSS are new for v2.11 */
548#define CKM_RSA_X9_31_KEY_PAIR_GEN 0x0000000A
549#define CKM_RSA_X9_31 0x0000000B
550#define CKM_SHA1_RSA_X9_31 0x0000000C
551#define CKM_RSA_PKCS_PSS 0x0000000D
552#define CKM_SHA1_RSA_PKCS_PSS 0x0000000E
554#define CKM_DSA_KEY_PAIR_GEN 0x00000010
555#define CKM_DSA 0x00000011
556#define CKM_DSA_SHA1 0x00000012
557#define CKM_DH_PKCS_KEY_PAIR_GEN 0x00000020
558#define CKM_DH_PKCS_DERIVE 0x00000021
560/* CKM_X9_42_DH_KEY_PAIR_GEN, CKM_X9_42_DH_DERIVE,
561 * CKM_X9_42_DH_HYBRID_DERIVE, and CKM_X9_42_MQV_DERIVE are new for
562 * v2.11 */
563#define CKM_X9_42_DH_KEY_PAIR_GEN 0x00000030
564#define CKM_X9_42_DH_DERIVE 0x00000031
565#define CKM_X9_42_DH_HYBRID_DERIVE 0x00000032
566#define CKM_X9_42_MQV_DERIVE 0x00000033
567
568#define CKM_RC2_KEY_GEN 0x00000100
569#define CKM_RC2_ECB 0x00000101
570#define CKM_RC2_CBC 0x00000102
571#define CKM_RC2_MAC 0x00000103
573/* CKM_RC2_MAC_GENERAL and CKM_RC2_CBC_PAD are new for v2.0 */
574#define CKM_RC2_MAC_GENERAL 0x00000104
575#define CKM_RC2_CBC_PAD 0x00000105
577#define CKM_RC4_KEY_GEN 0x00000110
578#define CKM_RC4 0x00000111
579#define CKM_DES_KEY_GEN 0x00000120
580#define CKM_DES_ECB 0x00000121
581#define CKM_DES_CBC 0x00000122
582#define CKM_DES_MAC 0x00000123
584/* CKM_DES_MAC_GENERAL and CKM_DES_CBC_PAD are new for v2.0 */
585#define CKM_DES_MAC_GENERAL 0x00000124
586#define CKM_DES_CBC_PAD 0x00000125
588#define CKM_DES2_KEY_GEN 0x00000130
589#define CKM_DES3_KEY_GEN 0x00000131
590#define CKM_DES3_ECB 0x00000132
591#define CKM_DES3_CBC 0x00000133
592#define CKM_DES3_MAC 0x00000134
594/* CKM_DES3_MAC_GENERAL, CKM_DES3_CBC_PAD, CKM_CDMF_KEY_GEN,
595 * CKM_CDMF_ECB, CKM_CDMF_CBC, CKM_CDMF_MAC,
596 * CKM_CDMF_MAC_GENERAL, and CKM_CDMF_CBC_PAD are new for v2.0 */
597#define CKM_DES3_MAC_GENERAL 0x00000135
598#define CKM_DES3_CBC_PAD 0x00000136
599#define CKM_CDMF_KEY_GEN 0x00000140
600#define CKM_CDMF_ECB 0x00000141
601#define CKM_CDMF_CBC 0x00000142
602#define CKM_CDMF_MAC 0x00000143
603#define CKM_CDMF_MAC_GENERAL 0x00000144
604#define CKM_CDMF_CBC_PAD 0x00000145
606#define CKM_MD2 0x00000200
608/* CKM_MD2_HMAC and CKM_MD2_HMAC_GENERAL are new for v2.0 */
609#define CKM_MD2_HMAC 0x00000201
610#define CKM_MD2_HMAC_GENERAL 0x00000202
612#define CKM_MD5 0x00000210
614/* CKM_MD5_HMAC and CKM_MD5_HMAC_GENERAL are new for v2.0 */
615#define CKM_MD5_HMAC 0x00000211
616#define CKM_MD5_HMAC_GENERAL 0x00000212
618#define CKM_SHA_1 0x00000220
619
620/* CKM_SHA_1_HMAC and CKM_SHA_1_HMAC_GENERAL are new for v2.0 */
621#define CKM_SHA_1_HMAC 0x00000221
622#define CKM_SHA_1_HMAC_GENERAL 0x00000222
624/* CKM_RIPEMD128, CKM_RIPEMD128_HMAC,
625 * CKM_RIPEMD128_HMAC_GENERAL, CKM_RIPEMD160, CKM_RIPEMD160_HMAC,
626 * and CKM_RIPEMD160_HMAC_GENERAL are new for v2.10 */
627#define CKM_RIPEMD128 0x00000230
628#define CKM_RIPEMD128_HMAC 0x00000231
629#define CKM_RIPEMD128_HMAC_GENERAL 0x00000232
630#define CKM_RIPEMD160 0x00000240
631#define CKM_RIPEMD160_HMAC 0x00000241
632#define CKM_RIPEMD160_HMAC_GENERAL 0x00000242
634/* All of the following mechanisms are new for v2.0 */
635/* Note that CAST128 and CAST5 are the same algorithm */
636#define CKM_CAST_KEY_GEN 0x00000300
637#define CKM_CAST_ECB 0x00000301
638#define CKM_CAST_CBC 0x00000302
639#define CKM_CAST_MAC 0x00000303
640#define CKM_CAST_MAC_GENERAL 0x00000304
641#define CKM_CAST_CBC_PAD 0x00000305
642#define CKM_CAST3_KEY_GEN 0x00000310
643#define CKM_CAST3_ECB 0x00000311
644#define CKM_CAST3_CBC 0x00000312
645#define CKM_CAST3_MAC 0x00000313
646#define CKM_CAST3_MAC_GENERAL 0x00000314
647#define CKM_CAST3_CBC_PAD 0x00000315
648#define CKM_CAST5_KEY_GEN 0x00000320
649#define CKM_CAST128_KEY_GEN 0x00000320
650#define CKM_CAST5_ECB 0x00000321
651#define CKM_CAST128_ECB 0x00000321
652#define CKM_CAST5_CBC 0x00000322
653#define CKM_CAST128_CBC 0x00000322
654#define CKM_CAST5_MAC 0x00000323
655#define CKM_CAST128_MAC 0x00000323
656#define CKM_CAST5_MAC_GENERAL 0x00000324
657#define CKM_CAST128_MAC_GENERAL 0x00000324
658#define CKM_CAST5_CBC_PAD 0x00000325
659#define CKM_CAST128_CBC_PAD 0x00000325
660#define CKM_RC5_KEY_GEN 0x00000330
661#define CKM_RC5_ECB 0x00000331
662#define CKM_RC5_CBC 0x00000332
663#define CKM_RC5_MAC 0x00000333
664#define CKM_RC5_MAC_GENERAL 0x00000334
665#define CKM_RC5_CBC_PAD 0x00000335
666#define CKM_IDEA_KEY_GEN 0x00000340
667#define CKM_IDEA_ECB 0x00000341
668#define CKM_IDEA_CBC 0x00000342
669#define CKM_IDEA_MAC 0x00000343
670#define CKM_IDEA_MAC_GENERAL 0x00000344
671#define CKM_IDEA_CBC_PAD 0x00000345
672#define CKM_GENERIC_SECRET_KEY_GEN 0x00000350
673#define CKM_CONCATENATE_BASE_AND_KEY 0x00000360
674#define CKM_CONCATENATE_BASE_AND_DATA 0x00000362
675#define CKM_CONCATENATE_DATA_AND_BASE 0x00000363
676#define CKM_XOR_BASE_AND_DATA 0x00000364
677#define CKM_EXTRACT_KEY_FROM_KEY 0x00000365
678#define CKM_SSL3_PRE_MASTER_KEY_GEN 0x00000370
679#define CKM_SSL3_MASTER_KEY_DERIVE 0x00000371
680#define CKM_SSL3_KEY_AND_MAC_DERIVE 0x00000372
682/* CKM_SSL3_MASTER_KEY_DERIVE_DH, CKM_TLS_PRE_MASTER_KEY_GEN,
683 * CKM_TLS_MASTER_KEY_DERIVE, CKM_TLS_KEY_AND_MAC_DERIVE, and
684 * CKM_TLS_MASTER_KEY_DERIVE_DH are new for v2.11 */
685#define CKM_SSL3_MASTER_KEY_DERIVE_DH 0x00000373
686#define CKM_TLS_PRE_MASTER_KEY_GEN 0x00000374
687#define CKM_TLS_MASTER_KEY_DERIVE 0x00000375
688#define CKM_TLS_KEY_AND_MAC_DERIVE 0x00000376
689#define CKM_TLS_MASTER_KEY_DERIVE_DH 0x00000377
691#define CKM_SSL3_MD5_MAC 0x00000380
692#define CKM_SSL3_SHA1_MAC 0x00000381
693#define CKM_MD5_KEY_DERIVATION 0x00000390
694#define CKM_MD2_KEY_DERIVATION 0x00000391
695#define CKM_SHA1_KEY_DERIVATION 0x00000392
696#define CKM_PBE_MD2_DES_CBC 0x000003A0
697#define CKM_PBE_MD5_DES_CBC 0x000003A1
698#define CKM_PBE_MD5_CAST_CBC 0x000003A2
699#define CKM_PBE_MD5_CAST3_CBC 0x000003A3
700#define CKM_PBE_MD5_CAST5_CBC 0x000003A4
701#define CKM_PBE_MD5_CAST128_CBC 0x000003A4
702#define CKM_PBE_SHA1_CAST5_CBC 0x000003A5
703#define CKM_PBE_SHA1_CAST128_CBC 0x000003A5
704#define CKM_PBE_SHA1_RC4_128 0x000003A6
705#define CKM_PBE_SHA1_RC4_40 0x000003A7
706#define CKM_PBE_SHA1_DES3_EDE_CBC 0x000003A8
707#define CKM_PBE_SHA1_DES2_EDE_CBC 0x000003A9
708#define CKM_PBE_SHA1_RC2_128_CBC 0x000003AA
709#define CKM_PBE_SHA1_RC2_40_CBC 0x000003AB
711/* CKM_PKCS5_PBKD2 is new for v2.10 */
712#define CKM_PKCS5_PBKD2 0x000003B0
713
714#define CKM_PBA_SHA1_WITH_SHA1_HMAC 0x000003C0
715#define CKM_KEY_WRAP_LYNKS 0x00000400
716#define CKM_KEY_WRAP_SET_OAEP 0x00000401
718/* Fortezza mechanisms */
719#define CKM_SKIPJACK_KEY_GEN 0x00001000
720#define CKM_SKIPJACK_ECB64 0x00001001
721#define CKM_SKIPJACK_CBC64 0x00001002
722#define CKM_SKIPJACK_OFB64 0x00001003
723#define CKM_SKIPJACK_CFB64 0x00001004
724#define CKM_SKIPJACK_CFB32 0x00001005
725#define CKM_SKIPJACK_CFB16 0x00001006
726#define CKM_SKIPJACK_CFB8 0x00001007
727#define CKM_SKIPJACK_WRAP 0x00001008
728#define CKM_SKIPJACK_PRIVATE_WRAP 0x00001009
729#define CKM_SKIPJACK_RELAYX 0x0000100a
730#define CKM_KEA_KEY_PAIR_GEN 0x00001010
731#define CKM_KEA_KEY_DERIVE 0x00001011
732#define CKM_FORTEZZA_TIMESTAMP 0x00001020
733#define CKM_BATON_KEY_GEN 0x00001030
734#define CKM_BATON_ECB128 0x00001031
735#define CKM_BATON_ECB96 0x00001032
736#define CKM_BATON_CBC128 0x00001033
737#define CKM_BATON_COUNTER 0x00001034
738#define CKM_BATON_SHUFFLE 0x00001035
739#define CKM_BATON_WRAP 0x00001036
740
741/* CKM_ECDSA_KEY_PAIR_GEN is deprecated in v2.11,
742 * CKM_EC_KEY_PAIR_GEN is preferred */
743#define CKM_ECDSA_KEY_PAIR_GEN 0x00001040
744#define CKM_EC_KEY_PAIR_GEN 0x00001040
745
746#define CKM_ECDSA 0x00001041
747#define CKM_ECDSA_SHA1 0x00001042
749/* CKM_ECDH1_DERIVE, CKM_ECDH1_COFACTOR_DERIVE, and CKM_ECMQV_DERIVE
750 * are new for v2.11 */
751#define CKM_ECDH1_DERIVE 0x00001050
752#define CKM_ECDH1_COFACTOR_DERIVE 0x00001051
753#define CKM_ECMQV_DERIVE 0x00001052
755#define CKM_JUNIPER_KEY_GEN 0x00001060
756#define CKM_JUNIPER_ECB128 0x00001061
757#define CKM_JUNIPER_CBC128 0x00001062
758#define CKM_JUNIPER_COUNTER 0x00001063
759#define CKM_JUNIPER_SHUFFLE 0x00001064
760#define CKM_JUNIPER_WRAP 0x00001065
761#define CKM_FASTHASH 0x00001070
763/* CKM_AES_KEY_GEN, CKM_AES_ECB, CKM_AES_CBC, CKM_AES_MAC,
764 * CKM_AES_MAC_GENERAL, CKM_AES_CBC_PAD, CKM_DSA_PARAMETER_GEN,
765 * CKM_DH_PKCS_PARAMETER_GEN, and CKM_X9_42_DH_PARAMETER_GEN are
766 * new for v2.11 */
767#define CKM_AES_KEY_GEN 0x00001080
768#define CKM_AES_ECB 0x00001081
769#define CKM_AES_CBC 0x00001082
770#define CKM_AES_MAC 0x00001083
771#define CKM_AES_MAC_GENERAL 0x00001084
772#define CKM_AES_CBC_PAD 0x00001085
773#define CKM_DSA_PARAMETER_GEN 0x00002000
774#define CKM_DH_PKCS_PARAMETER_GEN 0x00002001
775#define CKM_X9_42_DH_PARAMETER_GEN 0x00002002
776
777#define CKM_VENDOR_DEFINED 0x80000000
778
782/* CK_MECHANISM is a structure that specifies a particular
783 * mechanism */
784typedef struct CK_MECHANISM {
787
788 /* ulParameterLen was changed from CK_USHORT to CK_ULONG for
789 * v2.0 */
790 CK_ULONG ulParameterLen; /* in bytes */
792
796/* CK_MECHANISM_INFO provides information about a particular
797 * mechanism */
798typedef struct CK_MECHANISM_INFO {
803
804/* The flags are defined as follows:
805 * Bit Flag Mask Meaning */
806#define CKF_HW 0x00000001 /* performed by HW */
807
808/* The flags CKF_ENCRYPT, CKF_DECRYPT, CKF_DIGEST, CKF_SIGN,
809 * CKG_SIGN_RECOVER, CKF_VERIFY, CKF_VERIFY_RECOVER,
810 * CKF_GENERATE, CKF_GENERATE_KEY_PAIR, CKF_WRAP, CKF_UNWRAP,
811 * and CKF_DERIVE are new for v2.0. They specify whether or not
812 * a mechanism can be used for a particular task */
813#define CKF_ENCRYPT 0x00000100
814#define CKF_DECRYPT 0x00000200
815#define CKF_DIGEST 0x00000400
816#define CKF_SIGN 0x00000800
817#define CKF_SIGN_RECOVER 0x00001000
818#define CKF_VERIFY 0x00002000
819#define CKF_VERIFY_RECOVER 0x00004000
820#define CKF_GENERATE 0x00008000
821#define CKF_GENERATE_KEY_PAIR 0x00010000
822#define CKF_WRAP 0x00020000
823#define CKF_UNWRAP 0x00040000
824#define CKF_DERIVE 0x00080000
826/* CKF_EC_F_P, CKF_EC_F_2M, CKF_EC_ECPARAMETERS, CKF_EC_NAMEDCURVE,
827 * CKF_EC_UNCOMPRESS, and CKF_EC_COMPRESS are new for v2.11. They
828 * describe a token's EC capabilities not available in mechanism
829 * information. */
830#define CKF_EC_F_P 0x00100000
831#define CKF_EC_F_2M 0x00200000
832#define CKF_EC_ECPARAMETERS 0x00400000
833#define CKF_EC_NAMEDCURVE 0x00800000
834#define CKF_EC_UNCOMPRESS 0x01000000
835#define CKF_EC_COMPRESS 0x02000000
836
837#define CKF_EXTENSION 0x80000000 /* FALSE for 2.01 */
838
841
842/* CK_RV is a value that identifies the return value of a
843 * Cryptoki function */
844/* CK_RV was changed from CK_USHORT to CK_ULONG for v2.0 */
846
847#define CKR_OK 0x00000000
848#define CKR_CANCEL 0x00000001
849#define CKR_HOST_MEMORY 0x00000002
850#define CKR_SLOT_ID_INVALID 0x00000003
852/* CKR_FLAGS_INVALID was removed for v2.0 */
853
854/* CKR_GENERAL_ERROR and CKR_FUNCTION_FAILED are new for v2.0 */
855#define CKR_GENERAL_ERROR 0x00000005
856#define CKR_FUNCTION_FAILED 0x00000006
858/* CKR_ARGUMENTS_BAD, CKR_NO_EVENT, CKR_NEED_TO_CREATE_THREADS,
859 * and CKR_CANT_LOCK are new for v2.01 */
860#define CKR_ARGUMENTS_BAD 0x00000007
861#define CKR_NO_EVENT 0x00000008
862#define CKR_NEED_TO_CREATE_THREADS 0x00000009
863#define CKR_CANT_LOCK 0x0000000A
865#define CKR_ATTRIBUTE_READ_ONLY 0x00000010
866#define CKR_ATTRIBUTE_SENSITIVE 0x00000011
867#define CKR_ATTRIBUTE_TYPE_INVALID 0x00000012
868#define CKR_ATTRIBUTE_VALUE_INVALID 0x00000013
869#define CKR_DATA_INVALID 0x00000020
870#define CKR_DATA_LEN_RANGE 0x00000021
871#define CKR_DEVICE_ERROR 0x00000030
872#define CKR_DEVICE_MEMORY 0x00000031
873#define CKR_DEVICE_REMOVED 0x00000032
874#define CKR_ENCRYPTED_DATA_INVALID 0x00000040
875#define CKR_ENCRYPTED_DATA_LEN_RANGE 0x00000041
876#define CKR_FUNCTION_CANCELED 0x00000050
877#define CKR_FUNCTION_NOT_PARALLEL 0x00000051
878
879/* CKR_FUNCTION_NOT_SUPPORTED is new for v2.0 */
880#define CKR_FUNCTION_NOT_SUPPORTED 0x00000054
882#define CKR_KEY_HANDLE_INVALID 0x00000060
883
884/* CKR_KEY_SENSITIVE was removed for v2.0 */
885
886#define CKR_KEY_SIZE_RANGE 0x00000062
887#define CKR_KEY_TYPE_INCONSISTENT 0x00000063
889/* CKR_KEY_NOT_NEEDED, CKR_KEY_CHANGED, CKR_KEY_NEEDED,
890 * CKR_KEY_INDIGESTIBLE, CKR_KEY_FUNCTION_NOT_PERMITTED,
891 * CKR_KEY_NOT_WRAPPABLE, and CKR_KEY_UNEXTRACTABLE are new for
892 * v2.0 */
893#define CKR_KEY_NOT_NEEDED 0x00000064
894#define CKR_KEY_CHANGED 0x00000065
895#define CKR_KEY_NEEDED 0x00000066
896#define CKR_KEY_INDIGESTIBLE 0x00000067
897#define CKR_KEY_FUNCTION_NOT_PERMITTED 0x00000068
898#define CKR_KEY_NOT_WRAPPABLE 0x00000069
899#define CKR_KEY_UNEXTRACTABLE 0x0000006A
900
901#define CKR_MECHANISM_INVALID 0x00000070
902#define CKR_MECHANISM_PARAM_INVALID 0x00000071
904/* CKR_OBJECT_CLASS_INCONSISTENT and CKR_OBJECT_CLASS_INVALID
905 * were removed for v2.0 */
906#define CKR_OBJECT_HANDLE_INVALID 0x00000082
907#define CKR_OPERATION_ACTIVE 0x00000090
908#define CKR_OPERATION_NOT_INITIALIZED 0x00000091
909#define CKR_PIN_INCORRECT 0x000000A0
910#define CKR_PIN_INVALID 0x000000A1
911#define CKR_PIN_LEN_RANGE 0x000000A2
913/* CKR_PIN_EXPIRED and CKR_PIN_LOCKED are new for v2.0 */
914#define CKR_PIN_EXPIRED 0x000000A3
915#define CKR_PIN_LOCKED 0x000000A4
917#define CKR_SESSION_CLOSED 0x000000B0
918#define CKR_SESSION_COUNT 0x000000B1
919#define CKR_SESSION_HANDLE_INVALID 0x000000B3
920#define CKR_SESSION_PARALLEL_NOT_SUPPORTED 0x000000B4
921#define CKR_SESSION_READ_ONLY 0x000000B5
922#define CKR_SESSION_EXISTS 0x000000B6
923
924/* CKR_SESSION_READ_ONLY_EXISTS and
925 * CKR_SESSION_READ_WRITE_SO_EXISTS are new for v2.0 */
926#define CKR_SESSION_READ_ONLY_EXISTS 0x000000B7
927#define CKR_SESSION_READ_WRITE_SO_EXISTS 0x000000B8
929#define CKR_SIGNATURE_INVALID 0x000000C0
930#define CKR_SIGNATURE_LEN_RANGE 0x000000C1
931#define CKR_TEMPLATE_INCOMPLETE 0x000000D0
932#define CKR_TEMPLATE_INCONSISTENT 0x000000D1
933#define CKR_TOKEN_NOT_PRESENT 0x000000E0
934#define CKR_TOKEN_NOT_RECOGNIZED 0x000000E1
935#define CKR_TOKEN_WRITE_PROTECTED 0x000000E2
936#define CKR_UNWRAPPING_KEY_HANDLE_INVALID 0x000000F0
937#define CKR_UNWRAPPING_KEY_SIZE_RANGE 0x000000F1
938#define CKR_UNWRAPPING_KEY_TYPE_INCONSISTENT 0x000000F2
939#define CKR_USER_ALREADY_LOGGED_IN 0x00000100
940#define CKR_USER_NOT_LOGGED_IN 0x00000101
941#define CKR_USER_PIN_NOT_INITIALIZED 0x00000102
942#define CKR_USER_TYPE_INVALID 0x00000103
943
944/* CKR_USER_ANOTHER_ALREADY_LOGGED_IN and CKR_USER_TOO_MANY_TYPES
945 * are new to v2.01 */
946#define CKR_USER_ANOTHER_ALREADY_LOGGED_IN 0x00000104
947#define CKR_USER_TOO_MANY_TYPES 0x00000105
949#define CKR_WRAPPED_KEY_INVALID 0x00000110
950#define CKR_WRAPPED_KEY_LEN_RANGE 0x00000112
951#define CKR_WRAPPING_KEY_HANDLE_INVALID 0x00000113
952#define CKR_WRAPPING_KEY_SIZE_RANGE 0x00000114
953#define CKR_WRAPPING_KEY_TYPE_INCONSISTENT 0x00000115
954#define CKR_RANDOM_SEED_NOT_SUPPORTED 0x00000120
956/* These are new to v2.0 */
957#define CKR_RANDOM_NO_RNG 0x00000121
959/* These are new to v2.11 */
960#define CKR_DOMAIN_PARAMS_INVALID 0x00000130
962/* These are new to v2.0 */
963#define CKR_BUFFER_TOO_SMALL 0x00000150
964#define CKR_SAVED_STATE_INVALID 0x00000160
965#define CKR_INFORMATION_SENSITIVE 0x00000170
966#define CKR_STATE_UNSAVEABLE 0x00000180
968/* These are new to v2.01 */
969#define CKR_CRYPTOKI_NOT_INITIALIZED 0x00000190
970#define CKR_CRYPTOKI_ALREADY_INITIALIZED 0x00000191
971#define CKR_MUTEX_BAD 0x000001A0
972#define CKR_MUTEX_NOT_LOCKED 0x000001A1
974#define CKR_VENDOR_DEFINED 0x80000000
975
976
977/* CK_NOTIFY is an application callback that processes events */
978typedef CK_CALLBACK_FUNCTION(CK_RV, CK_NOTIFY) (CK_SESSION_HANDLE hSession, /* the session's handle */
979 CK_NOTIFICATION event, CK_VOID_PTR pApplication /* passed to C_OpenSession */
980 );
981
983/* CK_FUNCTION_LIST is a structure holding a Cryptoki spec
984 * version and pointers of appropriate types to all the
985 * Cryptoki functions */
986/* CK_FUNCTION_LIST is new for v2.0 */
988
990
992
993
994/* CK_CREATEMUTEX is an application callback for creating a
995 * mutex object */
996typedef CK_CALLBACK_FUNCTION(CK_RV, CK_CREATEMUTEX) (CK_VOID_PTR_PTR ppMutex /* location to receive ptr to mutex */
997 );
998
999
1000/* CK_DESTROYMUTEX is an application callback for destroying a
1001 * mutex object */
1002typedef CK_CALLBACK_FUNCTION(CK_RV, CK_DESTROYMUTEX) (CK_VOID_PTR pMutex /* pointer to mutex */
1003 );
1004
1005
1006/* CK_LOCKMUTEX is an application callback for locking a mutex */
1007typedef CK_CALLBACK_FUNCTION(CK_RV, CK_LOCKMUTEX) (CK_VOID_PTR pMutex /* pointer to mutex */
1009
1010
1011/* CK_UNLOCKMUTEX is an application callback for unlocking a
1012 * mutex */
1013typedef CK_CALLBACK_FUNCTION(CK_RV, CK_UNLOCKMUTEX) (CK_VOID_PTR pMutex /* pointer to mutex */
1017/* CK_C_INITIALIZE_ARGS provides the optional arguments to
1018 * C_Initialize */
1019typedef struct CK_C_INITIALIZE_ARGS {
1020 CK_CREATEMUTEX CreateMutex;
1021 CK_DESTROYMUTEX DestroyMutex;
1022 CK_LOCKMUTEX LockMutex;
1023 CK_UNLOCKMUTEX UnlockMutex;
1028/* flags: bit flags that provide capabilities of the slot
1029 * Bit Flag Mask Meaning
1030 */
1031#define CKF_LIBRARY_CANT_CREATE_OS_THREADS 0x00000001
1032#define CKF_OS_LOCKING_OK 0x00000002
1033
1036
1037/* additional flags for parameters to functions */
1038
1039/* CKF_DONT_BLOCK is for the function C_WaitForSlotEvent */
1040#define CKF_DONT_BLOCK 1
1041
1042/* CK_RSA_PKCS_OAEP_MGF_TYPE is new for v2.10.
1043 * CK_RSA_PKCS_OAEP_MGF_TYPE is used to indicate the Message
1044 * Generation Function (MGF) applied to a message block when
1045 * formatting a message block for the PKCS #1 OAEP encryption
1046 * scheme. */
1048
1050
1051/* The following MGFs are defined */
1052#define CKG_MGF1_SHA1 0x00000001
1054/* CK_RSA_PKCS_OAEP_SOURCE_TYPE is new for v2.10.
1055 * CK_RSA_PKCS_OAEP_SOURCE_TYPE is used to indicate the source
1056 * of the encoding parameter when formatting a message block
1057 * for the PKCS #1 OAEP encryption scheme. */
1059
1061
1062/* The following encoding parameter sources are defined */
1063#define CKZ_DATA_SPECIFIED 0x00000001
1065/* CK_RSA_PKCS_OAEP_PARAMS is new for v2.10.
1066 * CK_RSA_PKCS_OAEP_PARAMS provides the parameters to the
1067 * CKM_RSA_PKCS_OAEP mechanism. */
1075
1078/* CK_RSA_PKCS_PSS_PARAMS is new for v2.11.
1079 * CK_RSA_PKCS_PSS_PARAMS provides the parameters to the
1080 * CKM_RSA_PKCS_PSS mechanism(s). */
1081typedef struct CK_RSA_PKCS_PSS_PARAMS {
1084 CK_ULONG sLen;
1086
1089/* CK_EC_KDF_TYPE is new for v2.11. */
1090typedef CK_ULONG CK_EC_KDF_TYPE;
1091
1092/* The following EC Key Derivation Functions are defined */
1093#define CKD_NULL 0x00000001
1094#define CKD_SHA1_KDF 0x00000002
1095
1096/* CK_ECDH1_DERIVE_PARAMS is new for v2.11.
1097 * CK_ECDH1_DERIVE_PARAMS provides the parameters to the
1098 * CKM_ECDH1_DERIVE and CKM_ECDH1_COFACTOR_DERIVE mechanisms,
1099 * where each party contributes one key pair.
1108
1112/* CK_ECDH2_DERIVE_PARAMS is new for v2.11.
1113 * CK_ECDH2_DERIVE_PARAMS provides the parameters to the
1114 * CKM_ECMQV_DERIVE mechanism, where each party contributes two key pairs. */
1128
1129/* Typedefs and defines for the CKM_X9_42_DH_KEY_PAIR_GEN and the
1130 * CKM_X9_42_DH_PARAMETER_GEN mechanisms (new for PKCS #11 v2.11) */
1133
1134/* The following X9.42 DH key derivation functions are defined: */
1135#define CKD_NULL 0x00000001
1136#define CKD_SHA1_KDF_ASN1 0x00000003
1137#define CKD_SHA1_KDF_CONCATENATE 0x00000004
1139/* CK_X9_42_DH1_DERIVE_PARAMS is new for v2.11.
1140 * CK_X9_42_DH1_DERIVE_PARAMS provides the parameters to the
1141 * CKM_X9_42_DH_DERIVE key derivation mechanism, where each party
1142 * contributes one key pair */
1150
1153/* CK_X9_42_DH2_DERIVE_PARAMS is new for v2.11.
1154 * CK_X9_42_DH2_DERIVE_PARAMS provides the parameters to the
1155 * CKM_X9_42_DH_HYBRID_DERIVE and CKM_X9_42_MQV_DERIVE key derivation
1156 * mechanisms, where each party contributes two key pairs */
1168
1171/* CK_KEA_DERIVE_PARAMS provides the parameters to the
1172 * CKM_KEA_DERIVE mechanism */
1173/* CK_KEA_DERIVE_PARAMS is new for v2.0 */
1174typedef struct CK_KEA_DERIVE_PARAMS {
1182
1185
1186/* CK_RC2_PARAMS provides the parameters to the CKM_RC2_ECB and
1187 * CKM_RC2_MAC mechanisms. An instance of CK_RC2_PARAMS just
1188 * holds the effective keysize */
1189typedef CK_ULONG CK_RC2_PARAMS;
1190
1192
1193
1194/* CK_RC2_CBC_PARAMS provides the parameters to the CKM_RC2_CBC
1195 * mechanism */
1196typedef struct CK_RC2_CBC_PARAMS {
1197 /* ulEffectiveBits was changed from CK_USHORT to CK_ULONG for
1198 * v2.0 */
1199 CK_ULONG ulEffectiveBits; /* effective bits (1-1024) */
1200
1201 CK_BYTE iv[8]; /* IV for CBC mode */
1203
1207/* CK_RC2_MAC_GENERAL_PARAMS provides the parameters for the
1208 * CKM_RC2_MAC_GENERAL mechanism */
1209/* CK_RC2_MAC_GENERAL_PARAMS is new for v2.0 */
1211 CK_ULONG ulEffectiveBits; /* effective bits (1-1024) */
1212 CK_ULONG ulMacLength; /* Length of MAC in bytes */
1214
1218/* CK_RC5_PARAMS provides the parameters to the CKM_RC5_ECB and
1219 * CKM_RC5_MAC mechanisms */
1220/* CK_RC5_PARAMS is new for v2.0 */
1221typedef struct CK_RC5_PARAMS {
1222 CK_ULONG ulWordsize; /* wordsize in bits */
1223 CK_ULONG ulRounds; /* number of rounds */
1225
1229/* CK_RC5_CBC_PARAMS provides the parameters to the CKM_RC5_CBC
1230 * mechanism */
1231/* CK_RC5_CBC_PARAMS is new for v2.0 */
1232typedef struct CK_RC5_CBC_PARAMS {
1233 CK_ULONG ulWordsize; /* wordsize in bits */
1234 CK_ULONG ulRounds; /* number of rounds */
1235 CK_BYTE_PTR pIv; /* pointer to IV */
1236 CK_ULONG ulIvLen; /* length of IV in bytes */
1238
1242/* CK_RC5_MAC_GENERAL_PARAMS provides the parameters for the
1243 * CKM_RC5_MAC_GENERAL mechanism */
1244/* CK_RC5_MAC_GENERAL_PARAMS is new for v2.0 */
1245typedef struct CK_RC5_MAC_GENERAL_PARAMS {
1246 CK_ULONG ulWordsize; /* wordsize in bits */
1247 CK_ULONG ulRounds; /* number of rounds */
1248 CK_ULONG ulMacLength; /* Length of MAC in bytes */
1250
1252
1254/* CK_MAC_GENERAL_PARAMS provides the parameters to most block
1255 * ciphers' MAC_GENERAL mechanisms. Its value is the length of
1256 * the MAC */
1257/* CK_MAC_GENERAL_PARAMS is new for v2.0 */
1259
1263/* CK_SKIPJACK_PRIVATE_WRAP_PARAMS provides the parameters to the
1264 * CKM_SKIPJACK_PRIVATE_WRAP mechanism */
1265/* CK_SKIPJACK_PRIVATE_WRAP_PARAMS is new for v2.0 */
1279
1314
1318/* CK_KEY_WRAP_SET_OAEP_PARAMS provides the parameters to the
1319 * CKM_KEY_WRAP_SET_OAEP mechanism */
1320/* CK_KEY_WRAP_SET_OAEP_PARAMS is new for v2.0 */
1321typedef struct CK_KEY_WRAP_SET_OAEP_PARAMS {
1322 CK_BYTE bBC; /* block contents byte */
1323 CK_BYTE_PTR pX; /* extra data */
1324 CK_ULONG ulXLen; /* length of extra data in bytes */
1337
1369
1374
1376
1377
1378/* The CK_EXTRACT_PARAMS is used for the
1379 * CKM_EXTRACT_KEY_FROM_KEY mechanism. It specifies which bit
1380 * of the base key should be used as the first bit of the
1381 * derived key */
1382/* CK_EXTRACT_PARAMS is new for v2.0 */
1384
1387/* CK_PKCS5_PBKD2_PSEUDO_RANDOM_FUNCTION_TYPE is new for v2.10.
1388 * CK_PKCS5_PBKD2_PSEUDO_RANDOM_FUNCTION_TYPE is used to
1389 * indicate the Pseudo-Random Function (PRF) used to generate
1390 * key bits using PKCS #5 PBKDF2. */
1395
1396/* The following PRFs are defined in PKCS #5 v2.0. */
1397#define CKP_PKCS5_PBKD2_HMAC_SHA1 0x00000001
1398
1400/* CK_PKCS5_PBKDF2_SALT_SOURCE_TYPE is new for v2.10.
1401 * CK_PKCS5_PBKDF2_SALT_SOURCE_TYPE is used to indicate the
1402 * source of the salt value when deriving a key using PKCS #5
1403 * PBKDF2. */
1405
1407
1408/* The following salt value sources are defined in PKCS #5 v2.0. */
1409#define CKZ_SALT_SPECIFIED 0x00000001
1411/* CK_PKCS5_PBKD2_PARAMS is new for v2.10.
1412 * CK_PKCS5_PBKD2_PARAMS is a structure that provides the
1413 * parameters to the CKM_PKCS5_PBKD2 mechanism. */
1425
1427
1428#endif
#define CK_PTR
Definition pkcs11.h:25
#define CK_CALLBACK_FUNCTION(returnType, name)
Definition pkcs11.h:32
CK_BYTE CK_UTF8CHAR
Definition pkcs11t.h:46
CK_ULONG CK_PKCS5_PBKDF2_SALT_SOURCE_TYPE
Definition pkcs11t.h:1399
CK_ULONG CK_RSA_PKCS_OAEP_SOURCE_TYPE
Definition pkcs11t.h:1053
CK_BYTE CK_CHAR
Definition pkcs11t.h:43
CK_NOTIFICATION CK_VOID_PTR pApplication
Definition pkcs11t.h:975
CK_RC5_MAC_GENERAL_PARAMS CK_PTR CK_RC5_MAC_GENERAL_PARAMS_PTR
Definition pkcs11t.h:1246
CK_SESSION_INFO CK_PTR CK_SESSION_INFO_PTR
Definition pkcs11t.h:303
CK_RC5_PARAMS CK_PTR CK_RC5_PARAMS_PTR
Definition pkcs11t.h:1221
CK_ULONG CK_X9_42_DH_KDF_TYPE
Definition pkcs11t.h:1126
CK_ULONG CK_EC_KDF_TYPE
Definition pkcs11t.h:1085
CK_INFO CK_PTR CK_INFO_PTR
Definition pkcs11t.h:102
CK_FUNCTION_LIST_PTR CK_PTR CK_FUNCTION_LIST_PTR_PTR
Definition pkcs11t.h:986
CK_ULONG CK_RV
Definition pkcs11t.h:840
CK_ECDH1_DERIVE_PARAMS CK_PTR CK_ECDH1_DERIVE_PARAMS_PTR
Definition pkcs11t.h:1104
unsigned long int CK_ULONG
Definition pkcs11t.h:52
CK_SLOT_INFO CK_PTR CK_SLOT_INFO_PTR
Definition pkcs11t.h:138
CK_C_INITIALIZE_ARGS CK_PTR CK_C_INITIALIZE_ARGS_PTR
Definition pkcs11t.h:1029
CK_BYTE CK_PTR CK_BYTE_PTR
Definition pkcs11t.h:67
CK_TOKEN_INFO CK_PTR CK_TOKEN_INFO_PTR
Definition pkcs11t.h:255
CK_OBJECT_HANDLE CK_PTR CK_OBJECT_HANDLE_PTR
Definition pkcs11t.h:310
CK_ULONG CK_NOTIFICATION
Definition pkcs11t.h:109
CK_RC2_CBC_PARAMS CK_PTR CK_RC2_CBC_PARAMS_PTR
Definition pkcs11t.h:1199
CK_RC5_CBC_PARAMS CK_PTR CK_RC5_CBC_PARAMS_PTR
Definition pkcs11t.h:1234
unsigned char CK_BYTE
Definition pkcs11t.h:40
CK_ULONG CK_SLOT_ID
Definition pkcs11t.h:113
struct CK_X9_42_DH1_DERIVE_PARAMS CK_PTR CK_X9_42_DH1_DERIVE_PARAMS_PTR
Definition pkcs11t.h:1146
CK_ULONG CK_FLAGS
Definition pkcs11t.h:59
CK_ULONG CK_OBJECT_CLASS
Definition pkcs11t.h:318
CK_X9_42_DH_KDF_TYPE CK_PTR CK_X9_42_DH_KDF_TYPE_PTR
Definition pkcs11t.h:1127
CK_EXTRACT_PARAMS CK_PTR CK_EXTRACT_PARAMS_PTR
Definition pkcs11t.h:1380
CK_ULONG CK_SESSION_HANDLE
Definition pkcs11t.h:260
CK_MAC_GENERAL_PARAMS CK_PTR CK_MAC_GENERAL_PARAMS_PTR
Definition pkcs11t.h:1255
CK_ATTRIBUTE CK_PTR CK_ATTRIBUTE_PTR
Definition pkcs11t.h:506
CK_PBE_PARAMS CK_PTR CK_PBE_PARAMS_PTR
Definition pkcs11t.h:1310
CK_MECHANISM_TYPE CK_PTR CK_MECHANISM_TYPE_PTR
Definition pkcs11t.h:774
CK_RC2_PARAMS CK_PTR CK_RC2_PARAMS_PTR
Definition pkcs11t.h:1186
CK_KEY_WRAP_SET_OAEP_PARAMS CK_PTR CK_KEY_WRAP_SET_OAEP_PARAMS_PTR
Definition pkcs11t.h:1322
CK_ULONG CK_USER_TYPE
Definition pkcs11t.h:268
CK_FUNCTION_LIST CK_PTR CK_FUNCTION_LIST_PTR
Definition pkcs11t.h:984
struct CK_SSL3_MASTER_KEY_DERIVE_PARAMS CK_PTR CK_SSL3_MASTER_KEY_DERIVE_PARAMS_PTR
Definition pkcs11t.h:1338
CK_KEA_DERIVE_PARAMS CK_PTR CK_KEA_DERIVE_PARAMS_PTR
Definition pkcs11t.h:1178
CK_MECHANISM_INFO CK_PTR CK_MECHANISM_INFO_PTR
Definition pkcs11t.h:834
CK_ULONG CK_RSA_PKCS_MGF_TYPE
Definition pkcs11t.h:1042
CK_PKCS5_PBKDF2_SALT_SOURCE_TYPE CK_PTR CK_PKCS5_PBKDF2_SALT_SOURCE_TYPE_PTR
Definition pkcs11t.h:1401
CK_RSA_PKCS_OAEP_SOURCE_TYPE CK_PTR CK_RSA_PKCS_OAEP_SOURCE_TYPE_PTR
Definition pkcs11t.h:1055
CK_KEY_DERIVATION_STRING_DATA CK_PTR CK_KEY_DERIVATION_STRING_DATA_PTR
Definition pkcs11t.h:1370
CK_X9_42_DH2_DERIVE_PARAMS CK_PTR CK_X9_42_DH2_DERIVE_PARAMS_PTR
Definition pkcs11t.h:1164
CK_RSA_PKCS_PSS_PARAMS CK_PTR CK_RSA_PKCS_PSS_PARAMS_PTR
Definition pkcs11t.h:1082
CK_ULONG CK_KEY_TYPE
Definition pkcs11t.h:346
CK_ULONG CK_PKCS5_PBKD2_PSEUDO_RANDOM_FUNCTION_TYPE
Definition pkcs11t.h:1386
CK_RSA_PKCS_MGF_TYPE CK_PTR CK_RSA_PKCS_MGF_TYPE_PTR
Definition pkcs11t.h:1044
CK_ULONG CK_MAC_GENERAL_PARAMS
Definition pkcs11t.h:1253
CK_SSL3_KEY_MAT_PARAMS CK_PTR CK_SSL3_KEY_MAT_PARAMS_PTR
Definition pkcs11t.h:1362
CK_CHAR CK_PTR CK_CHAR_PTR
Definition pkcs11t.h:68
CK_ULONG CK_MECHANISM_TYPE
Definition pkcs11t.h:521
CK_ECDH2_DERIVE_PARAMS CK_PTR CK_ECDH2_DERIVE_PARAMS_PTR
Definition pkcs11t.h:1122
CK_PKCS5_PBKD2_PARAMS CK_PTR CK_PKCS5_PBKD2_PARAMS_PTR
Definition pkcs11t.h:1421
CK_ULONG CK_EXTRACT_PARAMS
Definition pkcs11t.h:1378
CK_BYTE CK_BBOOL
Definition pkcs11t.h:49
CK_ULONG CK_CERTIFICATE_TYPE
Definition pkcs11t.h:388
CK_RSA_PKCS_OAEP_PARAMS CK_PTR CK_RSA_PKCS_OAEP_PARAMS_PTR
Definition pkcs11t.h:1071
void CK_PTR CK_VOID_PTR
Definition pkcs11t.h:71
CK_SLOT_ID CK_PTR CK_SLOT_ID_PTR
Definition pkcs11t.h:115
CK_ULONG CK_RC2_PARAMS
Definition pkcs11t.h:1184
long int CK_LONG
Definition pkcs11t.h:56
CK_ULONG CK_OBJECT_HANDLE
Definition pkcs11t.h:308
CK_ULONG CK_HW_FEATURE_TYPE
Definition pkcs11t.h:337
CK_ULONG CK_ATTRIBUTE_TYPE
Definition pkcs11t.h:401
CK_SSL3_KEY_MAT_OUT CK_PTR CK_SSL3_KEY_MAT_OUT_PTR
Definition pkcs11t.h:1350
CK_VOID_PTR CK_PTR CK_VOID_PTR_PTR
Definition pkcs11t.h:74
CK_OBJECT_CLASS CK_PTR CK_OBJECT_CLASS_PTR
Definition pkcs11t.h:332
CK_ULONG CK_STATE
Definition pkcs11t.h:278
CK_PKCS5_PBKD2_PSEUDO_RANDOM_FUNCTION_TYPE CK_PTR CK_PKCS5_PBKD2_PSEUDO_RANDOM_FUNCTION_TYPE_PTR
Definition pkcs11t.h:1389
CK_SESSION_HANDLE CK_PTR CK_SESSION_HANDLE_PTR
Definition pkcs11t.h:262
CK_VERSION CK_PTR CK_VERSION_PTR
Definition pkcs11t.h:87
CK_ULONG CK_PTR CK_ULONG_PTR
Definition pkcs11t.h:70
CK_RC2_MAC_GENERAL_PARAMS CK_PTR CK_RC2_MAC_GENERAL_PARAMS_PTR
Definition pkcs11t.h:1210
CK_UTF8CHAR CK_PTR CK_UTF8CHAR_PTR
Definition pkcs11t.h:69
CK_SKIPJACK_PRIVATE_WRAP_PARAMS CK_PTR CK_SKIPJACK_PRIVATE_WRAP_PTR
Definition pkcs11t.h:1275
CK_MECHANISM CK_PTR CK_MECHANISM_PTR
Definition pkcs11t.h:788
CK_NOTIFICATION event
Definition pkcs11t.h:974
CK_SKIPJACK_RELAYX_PARAMS CK_PTR CK_SKIPJACK_RELAYX_PARAMS_PTR
Definition pkcs11t.h:1298
CK_VOID_PTR pValue
Definition pkcs11t.h:500
CK_ATTRIBUTE_TYPE type
Definition pkcs11t.h:499
CK_ULONG ulValueLen
Definition pkcs11t.h:503
CK_DESTROYMUTEX DestroyMutex
Definition pkcs11t.h:1016
CK_UNLOCKMUTEX UnlockMutex
Definition pkcs11t.h:1018
CK_VOID_PTR pReserved
Definition pkcs11t.h:1020
CK_LOCKMUTEX LockMutex
Definition pkcs11t.h:1017
CK_CREATEMUTEX CreateMutex
Definition pkcs11t.h:1015
CK_CHAR month[2]
Definition pkcs11t.h:512
CK_CHAR year[4]
Definition pkcs11t.h:511
CK_CHAR day[2]
Definition pkcs11t.h:513
CK_EC_KDF_TYPE kdf
Definition pkcs11t.h:1097
CK_BYTE_PTR pPublicData
Definition pkcs11t.h:1101
CK_BYTE_PTR pSharedData
Definition pkcs11t.h:1099
CK_EC_KDF_TYPE kdf
Definition pkcs11t.h:1111
CK_ULONG ulPrivateDataLen
Definition pkcs11t.h:1116
CK_OBJECT_HANDLE hPrivateData
Definition pkcs11t.h:1117
CK_BYTE_PTR pPublicData
Definition pkcs11t.h:1115
CK_BYTE_PTR pPublicData2
Definition pkcs11t.h:1119
CK_ULONG ulPublicDataLen2
Definition pkcs11t.h:1118
CK_BYTE_PTR pSharedData
Definition pkcs11t.h:1113
CK_UTF8CHAR libraryDescription[32]
Definition pkcs11t.h:98
CK_VERSION libraryVersion
Definition pkcs11t.h:99
CK_UTF8CHAR manufacturerID[32]
Definition pkcs11t.h:94
CK_VERSION cryptokiVersion
Definition pkcs11t.h:93
CK_FLAGS flags
Definition pkcs11t.h:95
CK_BYTE_PTR pPublicData
Definition pkcs11t.h:1175
CK_BYTE_PTR pRandomB
Definition pkcs11t.h:1173
CK_BYTE_PTR pRandomA
Definition pkcs11t.h:1172
CK_ULONG ulPublicDataLen
Definition pkcs11t.h:1174
CK_ULONG ulMaxKeySize
Definition pkcs11t.h:795
CK_FLAGS flags
Definition pkcs11t.h:796
CK_ULONG ulMinKeySize
Definition pkcs11t.h:794
CK_MECHANISM_TYPE mechanism
Definition pkcs11t.h:780
CK_VOID_PTR pParameter
Definition pkcs11t.h:781
CK_ULONG ulParameterLen
Definition pkcs11t.h:785
CK_ULONG ulSaltLen
Definition pkcs11t.h:1306
CK_BYTE_PTR pInitVector
Definition pkcs11t.h:1302
CK_ULONG ulPasswordLen
Definition pkcs11t.h:1304
CK_BYTE_PTR pSalt
Definition pkcs11t.h:1305
CK_ULONG ulIteration
Definition pkcs11t.h:1307
CK_UTF8CHAR_PTR pPassword
Definition pkcs11t.h:1303
CK_VOID_PTR pPrfData
Definition pkcs11t.h:1415
CK_ULONG_PTR ulPasswordLen
Definition pkcs11t.h:1418
CK_PKCS5_PBKDF2_SALT_SOURCE_TYPE saltSource
Definition pkcs11t.h:1410
CK_PKCS5_PBKD2_PSEUDO_RANDOM_FUNCTION_TYPE prf
Definition pkcs11t.h:1414
CK_ULONG ulSaltSourceDataLen
Definition pkcs11t.h:1412
CK_VOID_PTR pSaltSourceData
Definition pkcs11t.h:1411
CK_UTF8CHAR_PTR pPassword
Definition pkcs11t.h:1417
CK_ULONG ulEffectiveBits
Definition pkcs11t.h:1194
CK_BYTE iv[8]
Definition pkcs11t.h:1196
CK_ULONG ulIvLen
Definition pkcs11t.h:1231
CK_BYTE_PTR pIv
Definition pkcs11t.h:1230
CK_ULONG ulRounds
Definition pkcs11t.h:1229
CK_ULONG ulWordsize
Definition pkcs11t.h:1228
CK_ULONG ulRounds
Definition pkcs11t.h:1218
CK_ULONG ulWordsize
Definition pkcs11t.h:1217
CK_RSA_PKCS_MGF_TYPE mgf
Definition pkcs11t.h:1065
CK_RSA_PKCS_OAEP_SOURCE_TYPE source
Definition pkcs11t.h:1066
CK_MECHANISM_TYPE hashAlg
Definition pkcs11t.h:1064
CK_VOID_PTR pSourceData
Definition pkcs11t.h:1067
CK_RSA_PKCS_MGF_TYPE mgf
Definition pkcs11t.h:1078
CK_MECHANISM_TYPE hashAlg
Definition pkcs11t.h:1077
CK_STATE state
Definition pkcs11t.h:289
CK_ULONG ulDeviceError
Definition pkcs11t.h:294
CK_FLAGS flags
Definition pkcs11t.h:290
CK_SLOT_ID slotID
Definition pkcs11t.h:288
CK_BYTE_PTR pNewPublicData
Definition pkcs11t.h:1293
CK_BYTE_PTR pOldPublicData
Definition pkcs11t.h:1287
CK_VERSION hardwareVersion
Definition pkcs11t.h:127
CK_VERSION firmwareVersion
Definition pkcs11t.h:128
CK_UTF8CHAR manufacturerID[32]
Definition pkcs11t.h:123
CK_UTF8CHAR slotDescription[64]
Definition pkcs11t.h:122
CK_FLAGS flags
Definition pkcs11t.h:124
CK_OBJECT_HANDLE hServerMacSecret
Definition pkcs11t.h:1343
CK_OBJECT_HANDLE hClientKey
Definition pkcs11t.h:1344
CK_OBJECT_HANDLE hServerKey
Definition pkcs11t.h:1345
CK_BYTE_PTR pIVServer
Definition pkcs11t.h:1347
CK_BYTE_PTR pIVClient
Definition pkcs11t.h:1346
CK_OBJECT_HANDLE hClientMacSecret
Definition pkcs11t.h:1342
CK_SSL3_RANDOM_DATA RandomInfo
Definition pkcs11t.h:1358
CK_SSL3_KEY_MAT_OUT_PTR pReturnedKeyMaterial
Definition pkcs11t.h:1359
CK_SSL3_RANDOM_DATA RandomInfo
Definition pkcs11t.h:1334
CK_ULONG ulServerRandomLen
Definition pkcs11t.h:1329
CK_BYTE_PTR pServerRandom
Definition pkcs11t.h:1328
CK_ULONG ulClientRandomLen
Definition pkcs11t.h:1327
CK_BYTE_PTR pClientRandom
Definition pkcs11t.h:1326
CK_ULONG ulFreePrivateMemory
Definition pkcs11t.h:163
CK_VERSION hardwareVersion
Definition pkcs11t.h:167
CK_ULONG ulTotalPublicMemory
Definition pkcs11t.h:160
CK_ULONG ulSessionCount
Definition pkcs11t.h:155
CK_ULONG ulMaxSessionCount
Definition pkcs11t.h:154
CK_ULONG ulRwSessionCount
Definition pkcs11t.h:157
CK_ULONG ulMinPinLen
Definition pkcs11t.h:159
CK_ULONG ulMaxPinLen
Definition pkcs11t.h:158
CK_VERSION firmwareVersion
Definition pkcs11t.h:168
CK_ULONG ulFreePublicMemory
Definition pkcs11t.h:161
CK_UTF8CHAR manufacturerID[32]
Definition pkcs11t.h:146
CK_ULONG ulMaxRwSessionCount
Definition pkcs11t.h:156
CK_CHAR serialNumber[16]
Definition pkcs11t.h:148
CK_FLAGS flags
Definition pkcs11t.h:149
CK_UTF8CHAR model[16]
Definition pkcs11t.h:147
CK_CHAR utcTime[16]
Definition pkcs11t.h:169
CK_ULONG ulTotalPrivateMemory
Definition pkcs11t.h:162
CK_UTF8CHAR label[32]
Definition pkcs11t.h:145
CK_BYTE major
Definition pkcs11t.h:83
CK_BYTE minor
Definition pkcs11t.h:84
CK_X9_42_DH_KDF_TYPE kdf
Definition pkcs11t.h:1139
CK_OBJECT_HANDLE hPrivateData
Definition pkcs11t.h:1159
CK_X9_42_DH_KDF_TYPE kdf
Definition pkcs11t.h:1153