Mbed TLS v3.5.0
config_psa.h
Go to the documentation of this file.
1 
13 /*
14  * Copyright The Mbed TLS Contributors
15  * SPDX-License-Identifier: Apache-2.0
16  *
17  * Licensed under the Apache License, Version 2.0 (the "License"); you may
18  * not use this file except in compliance with the License.
19  * You may obtain a copy of the License at
20  *
21  * http://www.apache.org/licenses/LICENSE-2.0
22  *
23  * Unless required by applicable law or agreed to in writing, software
24  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
25  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26  * See the License for the specific language governing permissions and
27  * limitations under the License.
28  */
29 
30 #ifndef MBEDTLS_CONFIG_PSA_H
31 #define MBEDTLS_CONFIG_PSA_H
32 
33 #include "psa/crypto_legacy.h"
34 
36 
38 
39 #if defined(MBEDTLS_PSA_CRYPTO_CONFIG)
40 
41 /* Require built-in implementations based on PSA requirements */
42 
43 /* We need this to have a complete list of requirements
44  * before we deduce what built-ins are required. */
46 
48 
49 #else /* MBEDTLS_PSA_CRYPTO_CONFIG */
50 
51 /* Infer PSA requirements from Mbed TLS capabilities */
52 
54 
55 /* Hopefully the file above will have enabled keypair symbols in a consistent
56  * way, but including this here fixes them if that wasn't the case. */
58 
59 #endif /* MBEDTLS_PSA_CRYPTO_CONFIG */
60 
61 #if defined(PSA_WANT_ALG_JPAKE)
62 #define PSA_WANT_ALG_SOME_PAKE 1
63 #endif
64 
66 
67 #endif /* MBEDTLS_CONFIG_PSA_H */
Adjust PSA configuration: activate legacy implementations.
Adjust PSA configuration: construct PSA configuration from legacy.
Adjust PSA configuration: automatic enablement from legacy.
Adjust PSA configuration: enable always-on features.
Adjust PSA configuration for key pair types.
Adjust PSA configuration: enable quasi-synonyms.
Add temporary suppport for deprecated symbols before they are removed from the library.