SharkSSL C/C++ Reference
TLS, cryptography, certificates, and PSA integration
SharkSSL_opts.h
Go to the documentation of this file.
1
2
/*
3
4
SharkSSL_opts.h is a user file that you can use to configure
5
SharkSSL. You do not need to define every option that is defined in
6
the main configuration file SharkSSL_cfg.h; if you do not define an
7
option, a default value will be used. In other words, SharkSSL_opts.h
8
provides a way to override the default configuration options for
9
SharkSSL.
10
11
*/
12
13
/*
14
The SHARKSSL_TINY preset disables ECC point verification and removes
15
algorithms and features required by some TLS configurations. It is not a
16
recommended production TLS configuration. Use the constrained-build guide
17
(Doxygen page minimalbuild) to select features while retaining security
18
protections. This block uses #ifdef: defining SHARKSSL_TINY to 0 also
19
activates it. Leave SHARKSSL_TINY undefined for normal configuration.
20
*/
21
22
#ifdef SHARKSSL_TINY
/* DEFAULT value in SharkSsl_cfg.h */
23
24
#define SHARKSSL_USE_AES_256 0
/* 1 */
25
#define SHARKSSL_ENABLE_AES_GCM 0
/* 1 */
26
#define SHARKSSL_USE_SHA_384 0
/* 1 */
27
#define SHARKSSL_USE_SHA_512 0
/* 0 */
28
#define SHARKSSL_SSL_SERVER_CODE 0
/* 1 */
29
#define SHARKSSL_ENABLE_CLIENT_AUTH 0
/* 1 */
30
#define SHARKSSL_ENABLE_SNI 1
/* 1 */
31
#define SHARKSSL_ENABLE_RSA 0
/* 1 */
32
#define SHARKSSL_ENABLE_SESSION_CACHE 0
/* 1 */
33
#define SHARKSSL_ENABLE_SECURE_RENEGOTIATION 0
/* 1 */
34
#define SHARKSSL_ENABLE_DHE_RSA 0
/* 1 */
35
#define SHARKSSL_ENABLE_SELECT_CIPHERSUITE 0
/* 1 */
36
#define SHARKSSL_ENABLE_ALPN_EXTENSION 1
/* 1 */
37
#define SHARKSSL_ENABLE_RSA_API 0
/* 0 */
38
#define SHARKSSL_ENABLE_RSA_PKCS1 0
/* 1 */
39
#define SHARKSSL_ENABLE_ECDSA_API 0
/* 1 */
40
#define SHARKSSL_ENABLE_PEM_API 0
/* 1 */
41
#define SHARKSSL_ENABLE_INFO_API 0
/* 1 */
42
#define SHARKSSL_ENABLE_CERT_CHAIN 0
/* 1 */
43
#define SHARKSSL_ENABLE_CA_LIST 1
/* 1 */
44
#define SHARKSSL_ENABLE_CERTSTORE_API 0
/* 0 */
45
#define SHARKSSL_SHA256_SMALL_FOOTPRINT 1
/* 0 */
46
#define SHARKSSL_BIGINT_EXP_SLIDING_WINDOW_K 1
/* 4 */
47
#define SHARKSSL_ENABLE_AES_CTR_MODE 0
/* 1 */
48
#define SHARKSSL_AES_CIPHER_LOOP_UNROLL 0
/* 1 */
49
#define SHARKSSL_UNALIGNED_ACCESS 1
/* nd */
50
#define SHARKSSL_USE_ECC 1
/* 1 */
51
#define SHARKSSL_ENABLE_ECDSA 1
/* 1 */
52
#define SHARKSSL_ECC_VERIFY_POINT 0
/* 1 */
53
#define SHARKSSL_ECC_FIXED_BASE_COMB 0
/* 1 */
54
#define SHARKSSL_ECC_MULT_FIXED_WINDOW 0
/* 4 */
55
#define SHARKSSL_ECC_USE_SECP521R1 0
/* 1 */
56
#define SHARKSSL_ECC_USE_BRAINPOOLP512R1 0
/* 1 */
57
#define SHARKSSL_ENABLE_ECDHE_RSA 0
/* 1 */
58
59
60
#ifndef BASIC_TRUST_CHECK
61
#define BASIC_TRUST_CHECK
62
#endif
63
64
#endif
inc
SharkSSL_opts.h
SharkSSL
C/C++ reference | Doxygen 1.9.4