![]() |
|
|||
File indexing completed on 2025-08-27 09:37:30
0001 /** 0002 * \file mbedtls/config_psa.h 0003 * \brief PSA crypto configuration options (set of defines) 0004 * 0005 * This set of compile-time options takes settings defined in 0006 * include/mbedtls/mbedtls_config.h and include/psa/crypto_config.h and uses 0007 * those definitions to define symbols used in the library code. 0008 * 0009 * Users and integrators should not edit this file, please edit 0010 * include/mbedtls/mbedtls_config.h for MBEDTLS_XXX settings or 0011 * include/psa/crypto_config.h for PSA_WANT_XXX settings. 0012 */ 0013 /* 0014 * Copyright The Mbed TLS Contributors 0015 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 0016 */ 0017 0018 #ifndef MBEDTLS_CONFIG_PSA_H 0019 #define MBEDTLS_CONFIG_PSA_H 0020 0021 #include "psa/crypto_legacy.h" 0022 0023 #include "psa/crypto_adjust_config_synonyms.h" 0024 0025 #include "psa/crypto_adjust_config_dependencies.h" 0026 0027 #include "mbedtls/config_adjust_psa_superset_legacy.h" 0028 0029 #if defined(MBEDTLS_PSA_CRYPTO_CONFIG) 0030 0031 /* Require built-in implementations based on PSA requirements */ 0032 0033 /* We need this to have a complete list of requirements 0034 * before we deduce what built-ins are required. */ 0035 #include "psa/crypto_adjust_config_key_pair_types.h" 0036 0037 #if defined(MBEDTLS_PSA_CRYPTO_C) 0038 /* If we are implementing PSA crypto ourselves, then we want to enable the 0039 * required built-ins. Otherwise, PSA features will be provided by the server. */ 0040 #include "mbedtls/config_adjust_legacy_from_psa.h" 0041 #endif 0042 0043 #else /* MBEDTLS_PSA_CRYPTO_CONFIG */ 0044 0045 /* Infer PSA requirements from Mbed TLS capabilities */ 0046 0047 #include "mbedtls/config_adjust_psa_from_legacy.h" 0048 0049 /* Hopefully the file above will have enabled keypair symbols in a consistent 0050 * way, but including this here fixes them if that wasn't the case. */ 0051 #include "psa/crypto_adjust_config_key_pair_types.h" 0052 0053 #endif /* MBEDTLS_PSA_CRYPTO_CONFIG */ 0054 0055 #if defined(PSA_WANT_ALG_JPAKE) 0056 #define PSA_WANT_ALG_SOME_PAKE 1 0057 #endif 0058 0059 #include "psa/crypto_adjust_auto_enabled.h" 0060 0061 #endif /* MBEDTLS_CONFIG_PSA_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |