-
Notifications
You must be signed in to change notification settings - Fork 10
/
crypto_config_min.h
167 lines (148 loc) · 6.87 KB
/
crypto_config_min.h
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/**
* \file psa/crypto_config.h
* \brief PSA crypto configuration options (set of defines)
*
*/
/**
* To enable a cryptographic mechanism, uncomment the definition of
* the corresponding \c PSA_WANT_xxx preprocessor symbol.
* To disable a cryptographic mechanism, comment out the definition of
* the corresponding \c PSA_WANT_xxx preprocessor symbol.
* The names of cryptographic mechanisms correspond to values
* defined in psa/crypto_values.h, with the prefix \c PSA_WANT_ instead
* of \c PSA_.
*
* Note that many cryptographic mechanisms involve two symbols: one for
* the key type (\c PSA_WANT_KEY_TYPE_xxx) and one for the algorithm
* (\c PSA_WANT_ALG_xxx). Mechanisms with additional parameters may involve
* additional symbols.
*/
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* NOTICE: This file has been modified by Oberon microsystems AG.
*/
#ifndef PSA_CRYPTO_CONFIG_H
#define PSA_CRYPTO_CONFIG_H
//#define PSA_WANT_ALG_CBC_NO_PADDING 1
//#define PSA_WANT_ALG_CBC_PKCS7 1
#define PSA_WANT_ALG_CCM 1
#define PSA_WANT_ALG_CCM_STAR_NO_TAG 1
//#define PSA_WANT_ALG_CHACHA20_POLY1305 1
//#define PSA_WANT_ALG_CMAC 1
//#define PSA_WANT_ALG_CTR 1
#define PSA_WANT_ALG_DETERMINISTIC_ECDSA 1
#define PSA_WANT_ALG_ECB_NO_PADDING 1
#define PSA_WANT_ALG_ECDH 1
#define PSA_WANT_ALG_ECDSA 1
//#define PSA_WANT_ALG_GCM 1
//#define PSA_WANT_ALG_HKDF 1
//#define PSA_WANT_ALG_HKDF_EXTRACT 1
//#define PSA_WANT_ALG_HKDF_EXPAND 1
#define PSA_WANT_ALG_HMAC 1
//#define PSA_WANT_ALG_JPAKE 1
//#define PSA_WANT_ALG_PBKDF2_HMAC 1
//#define PSA_WANT_ALG_PBKDF2_AES_CMAC_PRF_128 1
//#define PSA_WANT_ALG_PURE_EDDSA 1
//#define PSA_WANT_ALG_ED25519PH 1
//#define PSA_WANT_ALG_ED448PH 1
//#define PSA_WANT_ALG_RSA_OAEP 1
//#define PSA_WANT_ALG_RSA_PKCS1V15_CRYPT 1
//#define PSA_WANT_ALG_RSA_PKCS1V15_SIGN 1
//#define PSA_WANT_ALG_RSA_PSS 1
//#define PSA_WANT_ALG_SHA_1 1
//#define PSA_WANT_ALG_SHA_224 1
#define PSA_WANT_ALG_SHA_256 1
//#define PSA_WANT_ALG_SHA_384 1
//#define PSA_WANT_ALG_SHA_512 1
//#define PSA_WANT_ALG_SHA3_224 1
//#define PSA_WANT_ALG_SHA3_256 1
//#define PSA_WANT_ALG_SHA3_384 1
//#define PSA_WANT_ALG_SHA3_512 1
//#define PSA_WANT_ALG_SHAKE256_512 1
//#define PSA_WANT_ALG_SPAKE2P_HMAC 1
//#define PSA_WANT_ALG_SPAKE2P_CMAC 1
//#define PSA_WANT_ALG_SPAKE2P_MATTER 1
//#define PSA_WANT_ALG_SRP_6 1
//#define PSA_WANT_ALG_SRP_PASSWORD_HASH 1
//#define PSA_WANT_ALG_STREAM_CIPHER 1
//#define PSA_WANT_ALG_TLS12_ECJPAKE_TO_PMS 1
//#define PSA_WANT_ALG_TLS12_PRF 1
//#define PSA_WANT_ALG_TLS12_PSK_TO_MS 1
//#define PSA_WANT_ALG_SP800_108_COUNTER_HMAC 1
//#define PSA_WANT_ALG_SP800_108_COUNTER_CMAC 1
//#define PSA_WANT_ECC_MONTGOMERY_255 1
//#define PSA_WANT_ECC_MONTGOMERY_448 1
//#define PSA_WANT_ECC_TWISTED_EDWARDS_255 1
//#define PSA_WANT_ECC_TWISTED_EDWARDS_448 1
//#define PSA_WANT_ECC_SECP_R1_224 1
#define PSA_WANT_ECC_SECP_R1_256 1
//#define PSA_WANT_ECC_SECP_R1_384 1
//#define PSA_WANT_ECC_SECP_R1_521 1
#define PSA_WANT_KEY_TYPE_DERIVE 1
//#define PSA_WANT_KEY_TYPE_PASSWORD 1
//#define PSA_WANT_KEY_TYPE_PASSWORD_HASH 1
#define PSA_WANT_KEY_TYPE_HMAC 1
#define PSA_WANT_KEY_TYPE_AES 1
//#define PSA_WANT_KEY_TYPE_CHACHA20 1
//#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR 1 /* Deprecated */
#define PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY 1
#define PSA_WANT_KEY_TYPE_RAW_DATA 1
//#define PSA_WANT_KEY_TYPE_RSA_KEY_PAIR 1 /* Deprecated */
//#define PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY 1
//#define PSA_WANT_KEY_TYPE_SPAKE2P_PUBLIC_KEY 1
//#define PSA_WANT_KEY_TYPE_SRP_PUBLIC_KEY 1
#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC 1
#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT 1
#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT 1
#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE 1
//#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_DERIVE 1
//#define PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_BASIC 1
//#define PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_IMPORT 1
//#define PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_EXPORT 1
//#define PSA_WANT_KEY_TYPE_SPAKE2P_KEY_PAIR_BASIC 1
//#define PSA_WANT_KEY_TYPE_SPAKE2P_KEY_PAIR_IMPORT 1
//#define PSA_WANT_KEY_TYPE_SPAKE2P_KEY_PAIR_EXPORT 1
//#define PSA_WANT_KEY_TYPE_SPAKE2P_KEY_PAIR_DERIVE 1
//#define PSA_WANT_KEY_TYPE_SRP_KEY_PAIR_BASIC 1
//#define PSA_WANT_KEY_TYPE_SRP_KEY_PAIR_IMPORT 1
//#define PSA_WANT_KEY_TYPE_SRP_KEY_PAIR_EXPORT 1
//#define PSA_WANT_KEY_TYPE_SRP_KEY_PAIR_DERIVE 1
// Additional AES key size option
#define PSA_WANT_AES_KEY_SIZE_128 1
//#define PSA_WANT_AES_KEY_SIZE_192 1
//#define PSA_WANT_AES_KEY_SIZE_256 1
// Additional RSA key size option
//#define PSA_WANT_RSA_KEY_SIZE_1024 1
//#define PSA_WANT_RSA_KEY_SIZE_1536 1
//#define PSA_WANT_RSA_KEY_SIZE_2048 1
//#define PSA_WANT_RSA_KEY_SIZE_3072 1
//#define PSA_WANT_RSA_KEY_SIZE_4096 1
//#define PSA_WANT_RSA_KEY_SIZE_6144 1
//#define PSA_WANT_RSA_KEY_SIZE_8192 1
// Additional configuration option
#define PSA_WANT_GENERATE_RANDOM 1
// Moved from mbedtls_config.h
#define MBEDTLS_PSA_KEY_SLOT_COUNT 2
/* Driver usage configuration */
//#define PSA_USE_CTR_DRBG_DRIVER 1
#define PSA_USE_HMAC_DRBG_DRIVER 1
/* Hardware driver demonstration */
#define PSA_USE_DEMO_ENTROPY_DRIVER 1
//#define PSA_USE_DEMO_HARDWARE_DRIVER 1
//#define PSA_USE_DEMO_OPAQUE_DRIVER 1
#endif /* PSA_CRYPTO_CONFIG_H */