aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-WOLFSSL-HALCRYPTO/cfg/user_settings.h
blob: 8a00e7a97cd124057b3a378b5b0cab7ccbfc5055 (plain)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#include "chtypes.h"
#include "halconf.h"
/* Configuration */

#define CRY_DRV		CRYD1
#define CRYD_KEY	0
#define HAL_CRY_WOLF_SHABUFF_SIZE 2*128


#define WOLFSSL_GENERAL_ALIGNMENT 4
#define HAVE_TM_TYPE

/* ChibiOS + Lwip */
#define HAVE_LWIP_NATIVE 
#define WOLFSSL_CHIBIOS 

#define USER_TICKS 
#define WOLFSSL_USER_CURRTIME 
#define XMALLOC_OVERRIDE 
#define USE_WOLF_TIME_T
#define XTIME(tl)       (LowResTimer())

//#define WOLFCRYPT_ONLY

/* ARM  */
		
#define RSA_LOW_MEM
#define NO_OLD_RNGNAME
#define NO_OLD_WC_NAMES
#define SMALL_SESSION_CACHE
#define WOLFSSL_SMALL_STACK

#define TFM_ARM
#define SINGLE_THREADED
#define NO_SIG_WRAPPER
		
/* Cipher features */
#define HAVE_AES_ECB
#define WOLFSSL_AES_DIRECT
#define HAVE_AES_DECRYPT
#define WOLFSSL_SHA512

//#define USE_FAST_MATH
//#define ALT_ECC_SIZE

//#define HAVE_FFDHE_2048
//#define HAVE_CHACHA
//#define HAVE_POLY1305
//#define HAVE_ECC
//#define HAVE_CURVE25519
//#define CURVED25519_SMALL
//#define HAVE_ONE_TIME_AUTH
//#define WOLFSSL_DH_CONST
		
/* HW RNG support */

//unsigned int chibios_rand_generate(void);
//int custom_rand_generate_block(unsigned char* output, unsigned int sz);

//#define CUSTOM_RAND_GENERATE chibios_rand_generate
//#define CUSTOM_RAND_TYPE uint32_t

//#define HAVE_ED25519
//#define HAVE_POLY1305
#define HAVE_SHA512
#define WOLFSSL_SHA512

/* Size/speed config */
//#define USE_SLOW_SHA2

/* Robustness */
#define TFM_TIMING_RESISTANT
#define ECC_TIMING_RESISTANT
#define WC_RSA_BLINDING

/* Remove Features */
#define NO_WRITEV
//#define NO_DEV_RANDOM
#define NO_FILESYSTEM
#define NO_MAIN_DRIVER
#define NO_MD4
#define NO_RABBIT
#define NO_HC128
#define NO_DSA
#define NO_PWDBASED
#define NO_PSK
#define NO_64BIT
#define NO_DH
#define NO_RC4
#define NO_HMAC
//test purpose
#define NO_RSA
#define NO_CODING
#define NO_ASN
#define NO_MD5
#define NO_MD4
#define NO_OLD_TLS
#define NO_CERTS
#define WOLFSSL_DH_CONST

/* Realloc (to use without USE_FAST_MATH) */

void *chHeapRealloc (void *addr, uint32_t size);
#define XREALLOC(p,n,h,t) chHeapRealloc( (p) , (n) )