corePKCS11 v3.4.0
PKCS #11 Cryptoki Library
core_pkcs11_config_defaults.h
Go to the documentation of this file.
1/*
2 * corePKCS11 v3.4.0
3 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy of
6 * this software and associated documentation files (the "Software"), to deal in
7 * the Software without restriction, including without limitation the rights to
8 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 * the Software, and to permit persons to whom the Software is furnished to do so,
10 * subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in all
13 * copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 */
22
29#ifndef CORE_PKCS11_CONFIG_DEFAULTS_H_
30#define CORE_PKCS11_CONFIG_DEFAULTS_H_
31
32/* *INDENT-OFF* */
33#ifdef __cplusplus
34 extern "C" {
35#endif
36/* *INDENT-ON* */
37
42#ifndef DOXYGEN
43 #ifdef PKCS11_MALLOC
44 #define pkcs11configPKCS11_MALLOC PKCS11_MALLOC
45 #endif
46
47 #ifdef PKCS11_FREE
48 #define pkcs11configPKCS11_FREE PKCS11_FREE
49 #endif
50
51 #ifdef configPKCS11_DEFAULT_USER_PIN
52 #define pkcs11configPKCS11_DEFAULT_USER_PIN configPKCS11_DEFAULT_USER_PIN
53 #endif
54#endif /* ifndef DOXYGEN */
55
56
63#ifndef pkcs11configPKCS11_MALLOC
64 #define pkcs11configPKCS11_MALLOC malloc
65#endif
66
73#ifndef pkcs11configPKCS11_FREE
74 #define pkcs11configPKCS11_FREE free
75#endif
76
92#ifndef pkcs11configPKCS11_DEFAULT_USER_PIN
93 #define pkcs11configPKCS11_DEFAULT_USER_PIN "0000"
94#endif
95
103#ifndef pkcs11configMAX_LABEL_LENGTH
104 #define pkcs11configMAX_LABEL_LENGTH 32
105#endif
106
114#ifndef pkcs11configMAX_NUM_OBJECTS
115 #define pkcs11configMAX_NUM_OBJECTS 6
116#endif
117
128#ifndef pkcs11configMAX_SESSIONS
129 #define pkcs11configMAX_SESSIONS 10
130#endif
131
132
142#ifndef pkcs11configPAL_DESTROY_SUPPORTED
143 #define pkcs11configPAL_DESTROY_SUPPORTED 0
144#endif
145
155#ifndef pkcs11configOTA_SUPPORTED
156 #define pkcs11configOTA_SUPPORTED 0
157#endif
158
169#ifndef pkcs11configJITP_CODEVERIFY_ROOT_CERT_SUPPORTED
170 #define pkcs11configJITP_CODEVERIFY_ROOT_CERT_SUPPORTED 0
171#endif
172
182#ifndef pkcs11configLABEL_DEVICE_PRIVATE_KEY_FOR_TLS
183 #define pkcs11configLABEL_DEVICE_PRIVATE_KEY_FOR_TLS "Device Priv TLS Key"
184#endif
185
194#ifndef pkcs11configLABEL_DEVICE_PUBLIC_KEY_FOR_TLS
195 #define pkcs11configLABEL_DEVICE_PUBLIC_KEY_FOR_TLS "Device Pub TLS Key"
196#endif
197
206#ifndef pkcs11configLABEL_DEVICE_CERTIFICATE_FOR_TLS
207 #define pkcs11configLABEL_DEVICE_CERTIFICATE_FOR_TLS "Device Cert"
208#endif
209
218#ifndef pkcs11configLABEL_ROOT_CERTIFICATE
219 #define pkcs11configLABEL_ROOT_CERTIFICATE "Root Cert"
220#endif
221
228#ifndef pkcs11configLABEL_HMAC_KEY
229 #define pkcs11configLABEL_HMAC_KEY "HMAC Key"
230#endif
231
238#ifndef pkcs11configLABEL_CMAC_KEY
239 #define pkcs11configLABEL_CMAC_KEY "CMAC Key"
240#endif
241
250#ifndef pkcs11configLABEL_CODE_VERIFICATION_KEY
251 #define pkcs11configLABEL_CODE_VERIFICATION_KEY "Code Verify Key"
252#endif
253
264#ifndef pkcs11configLABEL_JITP_CERTIFICATE
265 #define pkcs11configLABEL_JITP_CERTIFICATE "JITP Cert"
266#endif
267
279#ifndef pkcs11configLABEL_CLAIM_CERTIFICATE
280 #define pkcs11configLABEL_CLAIM_CERTIFICATE "Claim Cert"
281#endif
282
294#ifndef pkcs11configLABEL_CLAIM_PRIVATE_KEY
295 #define pkcs11configLABEL_CLAIM_PRIVATE_KEY "Claim Key"
296#endif
297
314#ifndef LogError
315 #define LogError( message )
316#endif
317
334#ifndef LogWarn
335 #define LogWarn( message )
336#endif
337
354#ifndef LogInfo
355 #define LogInfo( message )
356#endif
357
374#ifndef LogDebug
375 #define LogDebug( message )
376#endif
377
378/* *INDENT-OFF* */
379#ifdef __cplusplus
380 }
381#endif
382/* *INDENT-ON* */
383
384#endif /* CORE_PKCS11_CONFIG_DEFAULTS_H_ include guard. */