Path: blob/master/thirdparty/mbedtls/include/psa/crypto_config.h
9904 views
/**1* \file psa/crypto_config.h2* \brief PSA crypto configuration options (set of defines)3*4*/5#if defined(MBEDTLS_PSA_CRYPTO_CONFIG)6/**7* When #MBEDTLS_PSA_CRYPTO_CONFIG is enabled in mbedtls_config.h,8* this file determines which cryptographic mechanisms are enabled9* through the PSA Cryptography API (\c psa_xxx() functions).10*11* To enable a cryptographic mechanism, uncomment the definition of12* the corresponding \c PSA_WANT_xxx preprocessor symbol.13* To disable a cryptographic mechanism, comment out the definition of14* the corresponding \c PSA_WANT_xxx preprocessor symbol.15* The names of cryptographic mechanisms correspond to values16* defined in psa/crypto_values.h, with the prefix \c PSA_WANT_ instead17* of \c PSA_.18*19* Note that many cryptographic mechanisms involve two symbols: one for20* the key type (\c PSA_WANT_KEY_TYPE_xxx) and one for the algorithm21* (\c PSA_WANT_ALG_xxx). Mechanisms with additional parameters may involve22* additional symbols.23*/24#else25/**26* When \c MBEDTLS_PSA_CRYPTO_CONFIG is disabled in mbedtls_config.h,27* this file is not used, and cryptographic mechanisms are supported28* through the PSA API if and only if they are supported through the29* mbedtls_xxx API.30*/31#endif32/*33* Copyright The Mbed TLS Contributors34* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later35*/3637#ifndef PSA_CRYPTO_CONFIG_H38#define PSA_CRYPTO_CONFIG_H3940#define PSA_WANT_ALG_CBC_NO_PADDING 141#define PSA_WANT_ALG_CBC_PKCS7 142#define PSA_WANT_ALG_CCM 143#define PSA_WANT_ALG_CCM_STAR_NO_TAG 144#define PSA_WANT_ALG_CMAC 145#define PSA_WANT_ALG_CFB 146#define PSA_WANT_ALG_CHACHA20_POLY1305 147#define PSA_WANT_ALG_CTR 148#define PSA_WANT_ALG_DETERMINISTIC_ECDSA 149#define PSA_WANT_ALG_ECB_NO_PADDING 150#define PSA_WANT_ALG_ECDH 151#define PSA_WANT_ALG_FFDH 152#define PSA_WANT_ALG_ECDSA 153#define PSA_WANT_ALG_JPAKE 154#define PSA_WANT_ALG_GCM 155#define PSA_WANT_ALG_HKDF 156#define PSA_WANT_ALG_HKDF_EXTRACT 157#define PSA_WANT_ALG_HKDF_EXPAND 158#define PSA_WANT_ALG_HMAC 159#define PSA_WANT_ALG_MD5 160#define PSA_WANT_ALG_OFB 161#define PSA_WANT_ALG_PBKDF2_HMAC 162#define PSA_WANT_ALG_PBKDF2_AES_CMAC_PRF_128 163#define PSA_WANT_ALG_RIPEMD160 164#define PSA_WANT_ALG_RSA_OAEP 165#define PSA_WANT_ALG_RSA_PKCS1V15_CRYPT 166#define PSA_WANT_ALG_RSA_PKCS1V15_SIGN 167#define PSA_WANT_ALG_RSA_PSS 168#define PSA_WANT_ALG_SHA_1 169#define PSA_WANT_ALG_SHA_224 170#define PSA_WANT_ALG_SHA_256 171#define PSA_WANT_ALG_SHA_384 172#define PSA_WANT_ALG_SHA_512 173#define PSA_WANT_ALG_SHA3_224 174#define PSA_WANT_ALG_SHA3_256 175#define PSA_WANT_ALG_SHA3_384 176#define PSA_WANT_ALG_SHA3_512 177#define PSA_WANT_ALG_STREAM_CIPHER 178#define PSA_WANT_ALG_TLS12_PRF 179#define PSA_WANT_ALG_TLS12_PSK_TO_MS 180#define PSA_WANT_ALG_TLS12_ECJPAKE_TO_PMS 18182#define PSA_WANT_ECC_BRAINPOOL_P_R1_256 183#define PSA_WANT_ECC_BRAINPOOL_P_R1_384 184#define PSA_WANT_ECC_BRAINPOOL_P_R1_512 185#define PSA_WANT_ECC_MONTGOMERY_255 186#define PSA_WANT_ECC_MONTGOMERY_448 187#define PSA_WANT_ECC_SECP_K1_192 188#define PSA_WANT_ECC_SECP_K1_256 189#define PSA_WANT_ECC_SECP_R1_192 190#define PSA_WANT_ECC_SECP_R1_224 191/* For secp256r1, consider enabling #MBEDTLS_PSA_P256M_DRIVER_ENABLED92* (see the description in mbedtls/mbedtls_config.h for details). */93#define PSA_WANT_ECC_SECP_R1_256 194#define PSA_WANT_ECC_SECP_R1_384 195#define PSA_WANT_ECC_SECP_R1_521 19697#define PSA_WANT_DH_RFC7919_2048 198#define PSA_WANT_DH_RFC7919_3072 199#define PSA_WANT_DH_RFC7919_4096 1100#define PSA_WANT_DH_RFC7919_6144 1101#define PSA_WANT_DH_RFC7919_8192 1102103#define PSA_WANT_KEY_TYPE_DERIVE 1104#define PSA_WANT_KEY_TYPE_PASSWORD 1105#define PSA_WANT_KEY_TYPE_PASSWORD_HASH 1106#define PSA_WANT_KEY_TYPE_HMAC 1107#define PSA_WANT_KEY_TYPE_AES 1108#define PSA_WANT_KEY_TYPE_ARIA 1109#define PSA_WANT_KEY_TYPE_CAMELLIA 1110#define PSA_WANT_KEY_TYPE_CHACHA20 1111#define PSA_WANT_KEY_TYPE_DES 1112//#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR 1 /* Deprecated */113#define PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY 1114#define PSA_WANT_KEY_TYPE_DH_PUBLIC_KEY 1115#define PSA_WANT_KEY_TYPE_RAW_DATA 1116//#define PSA_WANT_KEY_TYPE_RSA_KEY_PAIR 1 /* Deprecated */117#define PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY 1118119/*120* The following symbols extend and deprecate the legacy121* PSA_WANT_KEY_TYPE_xxx_KEY_PAIR ones. They include the usage of that key in122* the name's suffix. "_USE" is the most generic and it can be used to describe123* a generic suport, whereas other ones add more features on top of that and124* they are more specific.125*/126#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC 1127#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT 1128#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT 1129#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE 1130#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_DERIVE 1131132#define PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_BASIC 1133#define PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_IMPORT 1134#define PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_EXPORT 1135#define PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_GENERATE 1136//#define PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_DERIVE 1 /* Not supported */137138#define PSA_WANT_KEY_TYPE_DH_KEY_PAIR_BASIC 1139#define PSA_WANT_KEY_TYPE_DH_KEY_PAIR_IMPORT 1140#define PSA_WANT_KEY_TYPE_DH_KEY_PAIR_EXPORT 1141#define PSA_WANT_KEY_TYPE_DH_KEY_PAIR_GENERATE 1142//#define PSA_WANT_KEY_TYPE_DH_KEY_PAIR_DERIVE 1 /* Not supported */143144#endif /* PSA_CRYPTO_CONFIG_H */145146147