forked from wolfSSL/wolfHSM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwolfhsm_cfg.h
More file actions
61 lines (48 loc) · 1.76 KB
/
Copy pathwolfhsm_cfg.h
File metadata and controls
61 lines (48 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
* Copyright (C) 2024 wolfSSL Inc.
*
* This file is part of wolfHSM.
*
* wolfHSM is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* wolfHSM is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with wolfHSM. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* wolfhsm_cfg.h
*
* wolfHSM compile-time options. Override here for your application
*/
#ifndef WOLFHSM_CFG_H_
#define WOLFHSM_CFG_H_
#include "port/posix/posix_time.h"
#define WOLFHSM_CFG_PORT_GETTIME posixGetTime
/** wolfHSM settings. Simple overrides to show they work */
#define WOLFHSM_CFG_ENABLE_SERVER
#define WOLFHSM_CFG_HEXDUMP
/* Must match client WOLFHSM_CFG_COMM_DATA_LEN */
#define WOLFHSM_CFG_COMM_DATA_LEN (1024 * 8)
#define WOLFHSM_CFG_NVM_OBJECT_COUNT 30
#define WOLFHSM_CFG_SERVER_KEYCACHE_COUNT 9
#define WOLFHSM_CFG_SERVER_KEYCACHE_SIZE 1024
#define WOLFHSM_CFG_SERVER_KEYCACHE_BIG_BUFSIZE 5120
#define WOLFHSM_CFG_SERVER_KEYCACHE_BIG_COUNT 5
#define WOLFHSM_CFG_SERVER_DMAADDR_COUNT 8
#define WOLFHSM_CFG_SERVER_CUSTOMCB_COUNT 6
#define WOLFHSM_CFG_CERTIFICATE_MANAGER
#define WOLFHSM_CFG_CERTIFICATE_MANAGER_ACERT
#define XMEMFENCE() __atomic_thread_fence(__ATOMIC_SEQ_CST)
#define WOLFHSM_CFG_KEYWRAP_MAX_KEY_SIZE 5000
#ifndef WOLFHSM_CFG_NO_CRYPTO
#define WOLFHSM_CFG_KEYWRAP
#define WOLFHSM_CFG_GLOBAL_KEYS
#endif
#endif /* WOLFHSM_CFG_H_ */