OPTIGA™ Trust M
Host Library Documentation
optiga_lib_config_m_v3.h
Go to the documentation of this file.
1 
39 #ifndef _OPTIGA_LIB_CONFIG_M_V3_H_
40 #define _OPTIGA_LIB_CONFIG_M_V3_H_
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
47  #define OPTIGA_CRYPT_RANDOM_ENABLED
48 
49  #define OPTIGA_CRYPT_HASH_ENABLED
50 
51  #define OPTIGA_CRYPT_ECC_GENERATE_KEYPAIR_ENABLED
52 
53  #define OPTIGA_CRYPT_ECDSA_SIGN_ENABLED
54 
55  #define OPTIGA_CRYPT_ECDSA_VERIFY_ENABLED
56 
57  #define OPTIGA_CRYPT_ECDH_ENABLED
58 
59  #define OPTIGA_CRYPT_ECC_NIST_P_521_ENABLED
60 
61  #define OPTIGA_CRYPT_ECC_BRAINPOOL_P_R1_ENABLED
62 
63  #define OPTIGA_CRYPT_TLS_PRF_SHA256_ENABLED
64 
65  #define OPTIGA_CRYPT_TLS_PRF_SHA384_ENABLED
66 
67  #define OPTIGA_CRYPT_TLS_PRF_SHA512_ENABLED
68 
69  #define OPTIGA_CRYPT_RSA_GENERATE_KEYPAIR_ENABLED
70 
71  #define OPTIGA_CRYPT_RSA_SIGN_ENABLED
72 
73  #define OPTIGA_CRYPT_RSA_VERIFY_ENABLED
74 
75  #define OPTIGA_CRYPT_RSA_ENCRYPT_ENABLED
76 
77  #define OPTIGA_CRYPT_RSA_DECRYPT_ENABLED
78 
79  #define OPTIGA_CRYPT_RSA_PRE_MASTER_SECRET_ENABLED
80 
81  #define OPTIGA_CRYPT_RSA_SSA_SHA512_ENABLED
82 
83  #define OPTIGA_CRYPT_SYM_ENCRYPT_ENABLED
84 
85  #define OPTIGA_CRYPT_SYM_DECRYPT_ENABLED
86 
87  #define OPTIGA_CRYPT_HMAC_ENABLED
88 
89  #define OPTIGA_CRYPT_HKDF_ENABLED
90 
91  #define OPTIGA_CRYPT_SYM_GENERATE_KEY_ENABLED
92 
93  #define OPTIGA_CRYPT_GENERATE_AUTH_CODE_ENABLED
94 
95  #define OPTIGA_CRYPT_HMAC_VERIFY_ENABLED
96 
97  #define OPTIGA_CRYPT_CLEAR_AUTO_STATE_ENABLED
98 
102  #define OPTIGA_COMMS_SHIELDED_CONNECTION
103 
105  #define OPTIGA_COMMS_DEFAULT_PROTECTION_LEVEL OPTIGA_COMMS_NO_PROTECTION
106 
113  #define OPTIGA_COMMS_DEFAULT_RESET_TYPE (0U)
114 
118  #define OPTIGA_LIB_DEBUG_NULL_CHECK
119 
120  #define OPTIGA_CMD_MAX_REGISTRATIONS (0x06)
121 
122  #define OPTIGA_MAX_COMMS_BUFFER_SIZE (0x615) //1557 in decimal
123 
129  #define OPTIGA_LIB_ENABLE_LOGGING
130 
131  #define OPTIGA_PAL_INIT_ENABLED
132 #ifdef OPTIGA_LIB_ENABLE_LOGGING
134 
135  //#define OPTIGA_LIB_ENABLE_UTIL_LOGGING
137  //#define OPTIGA_LIB_ENABLE_CRYPT_LOGGING
139  //#define OPTIGA_LIB_ENABLE_CMD_LOGGING
141  //#define OPTIGA_LIB_ENABLE_COMMS_LOGGING
142 #endif
143 
145  /* Below are the example macros for protected update not for any feature */
147  #define EXAMPLE_OPTIGA_UTIL_PROTECTED_UPDATE_CONFIDENTIALITY_ENABLED
148 
149  #define EXAMPLE_OPTIGA_UTIL_PROTECTED_UPDATE_OBJECT_KEY_ENABLED
150 
151  #define EXAMPLE_OPTIGA_UTIL_PROTECTED_UPDATE_OBJECT_METADATA_ENABLED
152 
153 
154 #ifdef __cplusplus
155 }
156 #endif
157 
158 #endif /* _OPTIGA_LIB_CONFIG_M_V3_H_*/
159