Path: blob/master/thirdparty/mbedtls/include/psa/crypto_adjust_config_synonyms.h
9904 views
/**1* \file psa/crypto_adjust_config_synonyms.h2* \brief Adjust PSA configuration: enable quasi-synonyms3*4* This is an internal header. Do not include it directly.5*6* When two features require almost the same code, we automatically enable7* both when either one is requested, to reduce the combinatorics of8* possible configurations.9*/10/*11* Copyright The Mbed TLS Contributors12* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later13*/1415#ifndef PSA_CRYPTO_ADJUST_CONFIG_SYNONYMS_H16#define PSA_CRYPTO_ADJUST_CONFIG_SYNONYMS_H1718#if !defined(MBEDTLS_CONFIG_FILES_READ)19#error "Do not include psa/crypto_adjust_*.h manually! This can lead to problems, " \20"up to and including runtime errors such as buffer overflows. " \21"If you're trying to fix a complaint from check_config.h, just remove " \22"it from your configuration file: since Mbed TLS 3.0, it is included " \23"automatically at the right point."24#endif /* */2526/****************************************************************/27/* De facto synonyms */28/****************************************************************/2930#if defined(PSA_WANT_ALG_ECDSA_ANY) && !defined(PSA_WANT_ALG_ECDSA)31#define PSA_WANT_ALG_ECDSA PSA_WANT_ALG_ECDSA_ANY32#elif !defined(PSA_WANT_ALG_ECDSA_ANY) && defined(PSA_WANT_ALG_ECDSA)33#define PSA_WANT_ALG_ECDSA_ANY PSA_WANT_ALG_ECDSA34#endif3536#if defined(PSA_WANT_ALG_RSA_PKCS1V15_SIGN_RAW) && !defined(PSA_WANT_ALG_RSA_PKCS1V15_SIGN)37#define PSA_WANT_ALG_RSA_PKCS1V15_SIGN PSA_WANT_ALG_RSA_PKCS1V15_SIGN_RAW38#elif !defined(PSA_WANT_ALG_RSA_PKCS1V15_SIGN_RAW) && defined(PSA_WANT_ALG_RSA_PKCS1V15_SIGN)39#define PSA_WANT_ALG_RSA_PKCS1V15_SIGN_RAW PSA_WANT_ALG_RSA_PKCS1V15_SIGN40#endif4142#if defined(PSA_WANT_ALG_RSA_PSS_ANY_SALT) && !defined(PSA_WANT_ALG_RSA_PSS)43#define PSA_WANT_ALG_RSA_PSS PSA_WANT_ALG_RSA_PSS_ANY_SALT44#elif !defined(PSA_WANT_ALG_RSA_PSS_ANY_SALT) && defined(PSA_WANT_ALG_RSA_PSS)45#define PSA_WANT_ALG_RSA_PSS_ANY_SALT PSA_WANT_ALG_RSA_PSS46#endif4748#endif /* PSA_CRYPTO_ADJUST_CONFIG_SYNONYMS_H */495051