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
/* A few examples of different math options below.
*
* See examples/configs/user_settings_template.h for a more
* detailed template. */
/* Use only single precision (SP) math and algorithms.
* SP math is written to accelerate specific/common key
* sizes and curves. This adds code from sp_c32.c, or one of the specific
* assembly implementations like sp_cortexm.c. This code is faster than the
* multi-precision support because it's optimized for the key/curve.
* The SP math can be used together with any multi-precision math library
* if WOLFSSL_SP_MATH is removed. If only standard keys/curves are being
* used the multi-precision math is not required.
*/
/* Enable SP ECC support */
/* Enable SP RSA support */
/* Enable SP DH support */
/* Reduce stack use specifically in SP implementation. */
/* use smaller version of code */
/* Assembly optimized version - sp_cortexm.c */
//#define WOLFSSL_SP_ARM_CORTEX_M_ASM
/* Use SP math for all key sizes and curves. This will use
* the multi-precision (MP) math implementation in sp_int.c */
/* Disable use of dynamic stack items */
/* use smaller version of code */
/* Fast Math (tfm.c) (stack based and timing resistant) */
/* Enable Fast Math Timing Resistance */
/* Normal (integer.c) (heap based, not timing resistant) - not recommended*/
#define USE_INTEGER_HEAP_MATH
/* Enable ECC Timing Resistance */
/* Enables blinding mode, to prevent timing attacks */
/* reduce stack use. For variables over 100 bytes allocate from heap */
/* disable mutex locking */
/* #define WOLFSSL_CMSIS_RTOS */
/* #define NO_DH */