corePKCS11 v3.6.1
PKCS #11 Cryptoki Library
 
Loading...
Searching...
No Matches
core_pkcs11_config_defaults.h
Go to the documentation of this file.
1/*
2 * corePKCS11 v3.6.1
3 * Copyright (C) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4 *
5 * SPDX-License-Identifier: MIT
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy of
8 * this software and associated documentation files (the "Software"), to deal in
9 * the Software without restriction, including without limitation the rights to
10 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
11 * the Software, and to permit persons to whom the Software is furnished to do so,
12 * subject to the following conditions:
13 *
14 * The above copyright notice and this permission notice shall be included in all
15 * copies or substantial portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
19 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
20 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
21 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 */
24
31#ifndef CORE_PKCS11_CONFIG_DEFAULTS_H_
32#define CORE_PKCS11_CONFIG_DEFAULTS_H_
33
34/* *INDENT-OFF* */
35#ifdef __cplusplus
36 extern "C" {
37#endif
38/* *INDENT-ON* */
39
44#ifndef DOXYGEN
45 #ifdef PKCS11_MALLOC
46 #define pkcs11configPKCS11_MALLOC PKCS11_MALLOC
47 #endif
48
49 #ifdef PKCS11_FREE
50 #define pkcs11configPKCS11_FREE PKCS11_FREE
51 #endif
52
53 #ifdef configPKCS11_DEFAULT_USER_PIN
54 #define pkcs11configPKCS11_DEFAULT_USER_PIN configPKCS11_DEFAULT_USER_PIN
55 #endif
56#endif /* ifndef DOXYGEN */
57
58
65#ifndef pkcs11configPKCS11_MALLOC
66 #define pkcs11configPKCS11_MALLOC malloc
67#endif
68
75#ifndef pkcs11configPKCS11_FREE
76 #define pkcs11configPKCS11_FREE free
77#endif
78
94#ifndef pkcs11configPKCS11_DEFAULT_USER_PIN
95 #define pkcs11configPKCS11_DEFAULT_USER_PIN "0000"
96#endif
97
105#ifndef pkcs11configMAX_LABEL_LENGTH
106 #define pkcs11configMAX_LABEL_LENGTH 32
107#endif
108
116#ifndef pkcs11configMAX_NUM_OBJECTS
117 #define pkcs11configMAX_NUM_OBJECTS 6
118#endif
119
130#ifndef pkcs11configMAX_SESSIONS
131 #define pkcs11configMAX_SESSIONS 10
132#endif
133
134
144#ifndef pkcs11configPAL_DESTROY_SUPPORTED
145 #define pkcs11configPAL_DESTROY_SUPPORTED 0
146#endif
147
157#ifndef pkcs11configOTA_SUPPORTED
158 #define pkcs11configOTA_SUPPORTED 0
159#endif
160
171#ifndef pkcs11configJITP_CODEVERIFY_ROOT_CERT_SUPPORTED
172 #define pkcs11configJITP_CODEVERIFY_ROOT_CERT_SUPPORTED 0
173#endif
174
184#ifndef pkcs11configLABEL_DEVICE_PRIVATE_KEY_FOR_TLS
185 #define pkcs11configLABEL_DEVICE_PRIVATE_KEY_FOR_TLS "Device Priv TLS Key"
186#endif
187
196#ifndef pkcs11configLABEL_DEVICE_PUBLIC_KEY_FOR_TLS
197 #define pkcs11configLABEL_DEVICE_PUBLIC_KEY_FOR_TLS "Device Pub TLS Key"
198#endif
199
208#ifndef pkcs11configLABEL_DEVICE_CERTIFICATE_FOR_TLS
209 #define pkcs11configLABEL_DEVICE_CERTIFICATE_FOR_TLS "Device Cert"
210#endif
211
220#ifndef pkcs11configLABEL_ROOT_CERTIFICATE
221 #define pkcs11configLABEL_ROOT_CERTIFICATE "Root Cert"
222#endif
223
230#ifndef pkcs11configLABEL_HMAC_KEY
231 #define pkcs11configLABEL_HMAC_KEY "HMAC Key"
232#endif
233
240#ifndef pkcs11configLABEL_CMAC_KEY
241 #define pkcs11configLABEL_CMAC_KEY "CMAC Key"
242#endif
243
252#ifndef pkcs11configLABEL_CODE_VERIFICATION_KEY
253 #define pkcs11configLABEL_CODE_VERIFICATION_KEY "Code Verify Key"
254#endif
255
266#ifndef pkcs11configLABEL_JITP_CERTIFICATE
267 #define pkcs11configLABEL_JITP_CERTIFICATE "JITP Cert"
268#endif
269
281#ifndef pkcs11configLABEL_CLAIM_CERTIFICATE
282 #define pkcs11configLABEL_CLAIM_CERTIFICATE "Claim Cert"
283#endif
284
296#ifndef pkcs11configLABEL_CLAIM_PRIVATE_KEY
297 #define pkcs11configLABEL_CLAIM_PRIVATE_KEY "Claim Key"
298#endif
299
316#ifndef LogError
317 #define LogError( message )
318#endif
319
336#ifndef LogWarn
337 #define LogWarn( message )
338#endif
339
356#ifndef LogInfo
357 #define LogInfo( message )
358#endif
359
376#ifndef LogDebug
377 #define LogDebug( message )
378#endif
379
380/* *INDENT-OFF* */
381#ifdef __cplusplus
382 }
383#endif
384/* *INDENT-ON* */
385
386#endif /* CORE_PKCS11_CONFIG_DEFAULTS_H_ include guard. */