BSB Developer Docs
Loading...
Searching...
No Matches
sl_mbedtls_device_config.h
1#ifndef SL_MBEDTLS_DEVICE_CONFIG_H
2#define SL_MBEDTLS_DEVICE_CONFIG_H
3
4// -----------------------------------------------------------------------------
5// User exposed config options
6
7// <<< Use Configuration Wizard in Context Menu >>>
8
9// <h> Secure Engine (SE) version configuration
10
11// <o SL_SE_SUPPORT_FW_PRIOR_TO_1_2_2> Support SE firmware versions older than 1.2.2 <0-1>
12// <i> Enable software fallback for ECDH and ECC public key validation on xG21
13// <i> devices running SE firmware versions lower than 1.2.2.
14// <i>
15// <i> Due to other stability concerns, it is strongly recommended to upgrade
16// <i> these devices to the latest firmware revision instead of turning on
17// <i> software fallback support.
18// <i>
19// <i> Not having fallback support will make ECDH operations, as well as PSA
20// <i> Crypto public key import, return an error code on affected devices.
21// <i>
22// <i> Default: 0
23#define SL_SE_SUPPORT_FW_PRIOR_TO_1_2_2 0
24
25// <o SL_SE_ASSUME_FW_AT_LEAST_1_2_2> Assume an SE firmware version newer than 1.2.2 <0-1>
26// <i> For enhanced performance: if it is guaranteed that all devices on which
27// <i> this library will run are updated to at least SE FW 1.2.2, then turning
28// <i> on this option will remove certain fallback checks, thereby reducing the
29// <i> amount of processing required for ECDH and public key verification
30// <i> operations.
31// <i> Default: 0
32#define SL_SE_ASSUME_FW_AT_LEAST_1_2_2 0
33
34// <o SL_SE_ASSUME_FW_UNAFFECTED_BY_ED25519_ERRATA> Assume an SE firmware version that is unaffected by Ed25519 errata <0-1>
35// <i> For minimal code size and performance savings: if it is guaranteed that
36// <i> none of the devices running this library has SE FWs in the range
37// <i> [1.2.2, 1.2.8], then enabling this option will disable runtime version
38// <i> checks.
39// <i> Default: 0
40#define SL_SE_ASSUME_FW_UNAFFECTED_BY_ED25519_ERRATA 0
41
42// </h>
43
44// <<< end of configuration section >>>
45
46// -----------------------------------------------------------------------------
47// Additional SE version related logic (DO NOT MODIFY)
48
49// SL_SE_ASSUME_FW_AT_LEAST_1_2_10 is no longer in use, however, it is kept here
50// for backwards compatibility. */
51#if defined(SL_SE_ASSUME_FW_AT_LEAST_1_2_10)
52 #undef SL_SE_ASSUME_FW_AT_LEAST_1_2_2
53 #define SL_SE_ASSUME_FW_AT_LEAST_1_2_2 1
54 #undef SL_SE_ASSUME_FW_UNAFFECTED_BY_ED25519_ERRATA
55 #define SL_SE_ASSUME_FW_UNAFFECTED_BY_ED25519_ERRATA 1
56#endif
57
58// SLI_SE_SUPPORT_FW_PRIOR_TO_1_2_2 is no longer in use, however, it is kept
59// here for backwards compatibility. */
60#if defined(SLI_SE_SUPPORT_FW_PRIOR_TO_1_2_2)
61 #undef SL_SE_SUPPORT_FW_PRIOR_TO_1_2_2
62 #define SL_SE_SUPPORT_FW_PRIOR_TO_1_2_2 1
63#endif
64
65// SLI_SE_ASSUME_FW_AT_LEAST_1_2_2 is no longer in use, however, it is kept
66// here for backwards compatibility. */
67#if defined(SLI_SE_ASSUME_FW_AT_LEAST_1_2_2)
68 #undef SL_SE_ASSUME_FW_AT_LEAST_1_2_2
69 #define SL_SE_ASSUME_FW_AT_LEAST_1_2_2 1
70#endif
71
72#endif // SL_MBEDTLS_DEVICE_CONFIG_H