crypto_config.h
PSA_WANT_ALG_CBC_NO_PADDING
1

When `MBEDTLS_PSA_CRYPTO_CONFIG` is disabled in mbedtls_config.h, this file is not used, and cryptographic mechanisms are supported through the PSA API if and only if they are supported through the mbedtls_xxx API.

PSA_WANT_ALG_CBC_PKCS7
1
PSA_WANT_ALG_CCM
1
PSA_WANT_ALG_CCM_STAR_NO_TAG
1
PSA_WANT_ALG_CMAC
1
PSA_WANT_ALG_CFB
1
PSA_WANT_ALG_CHACHA20_POLY1305
1
PSA_WANT_ALG_CTR
1
PSA_WANT_ALG_DETERMINISTIC_ECDSA
1
PSA_WANT_ALG_ECB_NO_PADDING
1
PSA_WANT_ALG_ECDH
1
PSA_WANT_ALG_FFDH
1
PSA_WANT_ALG_ECDSA
1
PSA_WANT_ALG_JPAKE
1
PSA_WANT_ALG_GCM
1
PSA_WANT_ALG_HKDF
1
PSA_WANT_ALG_HKDF_EXTRACT
1
PSA_WANT_ALG_HKDF_EXPAND
1
PSA_WANT_ALG_HMAC
1
PSA_WANT_ALG_MD5
1
PSA_WANT_ALG_OFB
1
PSA_WANT_ALG_PBKDF2_HMAC
1
PSA_WANT_ALG_PBKDF2_AES_CMAC_PRF_128
1
PSA_WANT_ALG_RIPEMD160
1
PSA_WANT_ALG_RSA_OAEP
1
PSA_WANT_ALG_RSA_PKCS1V15_CRYPT
1
PSA_WANT_ALG_RSA_PKCS1V15_SIGN
1
PSA_WANT_ALG_RSA_PSS
1
PSA_WANT_ALG_SHA_1
1
PSA_WANT_ALG_SHA_224
1
PSA_WANT_ALG_SHA_256
1
PSA_WANT_ALG_SHA_384
1
PSA_WANT_ALG_SHA_512
1
PSA_WANT_ALG_SHA3_224
1
PSA_WANT_ALG_SHA3_256
1
PSA_WANT_ALG_SHA3_384
1
PSA_WANT_ALG_SHA3_512
1
PSA_WANT_ALG_STREAM_CIPHER
1
PSA_WANT_ALG_TLS12_PRF
1
PSA_WANT_ALG_TLS12_PSK_TO_MS
1
PSA_WANT_ALG_TLS12_ECJPAKE_TO_PMS
1
PSA_WANT_ECC_BRAINPOOL_P_R1_256
1
PSA_WANT_ECC_BRAINPOOL_P_R1_384
1
PSA_WANT_ECC_BRAINPOOL_P_R1_512
1
PSA_WANT_ECC_MONTGOMERY_255
1
PSA_WANT_ECC_MONTGOMERY_448
1
PSA_WANT_ECC_SECP_K1_192
1
PSA_WANT_ECC_SECP_K1_256
1
PSA_WANT_ECC_SECP_R1_192
1
PSA_WANT_ECC_SECP_R1_224
1
PSA_WANT_ECC_SECP_R1_256
1
PSA_WANT_ECC_SECP_R1_384
1
PSA_WANT_ECC_SECP_R1_521
1
PSA_WANT_DH_RFC7919_2048
1
PSA_WANT_DH_RFC7919_3072
1
PSA_WANT_DH_RFC7919_4096
1
PSA_WANT_DH_RFC7919_6144
1
PSA_WANT_DH_RFC7919_8192
1
PSA_WANT_KEY_TYPE_DERIVE
1
PSA_WANT_KEY_TYPE_PASSWORD
1
PSA_WANT_KEY_TYPE_PASSWORD_HASH
1
PSA_WANT_KEY_TYPE_HMAC
1
PSA_WANT_KEY_TYPE_AES
1
PSA_WANT_KEY_TYPE_ARIA
1
PSA_WANT_KEY_TYPE_CAMELLIA
1
PSA_WANT_KEY_TYPE_CHACHA20
1
PSA_WANT_KEY_TYPE_DES
1
PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY
1
PSA_WANT_KEY_TYPE_DH_PUBLIC_KEY
1
PSA_WANT_KEY_TYPE_RAW_DATA
1
PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY
1
PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC
1
PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT
1
PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT
1
PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE
1
PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_DERIVE
1
PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_BASIC
1
PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_IMPORT
1
PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_EXPORT
1
PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_GENERATE
1
PSA_WANT_KEY_TYPE_DH_KEY_PAIR_BASIC
1
PSA_WANT_KEY_TYPE_DH_KEY_PAIR_IMPORT
1
PSA_WANT_KEY_TYPE_DH_KEY_PAIR_EXPORT
1
PSA_WANT_KEY_TYPE_DH_KEY_PAIR_GENERATE
1

PSA crypto configuration options (set of defines)

    #ifdefined(MBEDTLS_PSA_CRYPTO_CONFIG)
    #else
    #endif
    /*
    *CopyrightTheMbedTLSContributors
    *SPDX-License-Identifier:Apache-2.0ORGPL-2.0-or-later
    */

    #ifndefPSA_CRYPTO_CONFIG_H
    #definePSA_CRYPTO_CONFIG_H

    /*
    *CBC-MACisnotyetsupportedviathePSAAPIinMbedTLS.
    */
    //#definePSA_WANT_ALG_CBC_MAC1
    #definePSA_WANT_ALG_CBC_NO_PADDING1
    #definePSA_WANT_ALG_CBC_PKCS71
    #definePSA_WANT_ALG_CCM1
    #definePSA_WANT_ALG_CCM_STAR_NO_TAG1
    #definePSA_WANT_ALG_CMAC1
    #definePSA_WANT_ALG_CFB1
    #definePSA_WANT_ALG_CHACHA20_POLY13051
    #definePSA_WANT_ALG_CTR1
    #definePSA_WANT_ALG_DETERMINISTIC_ECDSA1
    #definePSA_WANT_ALG_ECB_NO_PADDING1
    #definePSA_WANT_ALG_ECDH1
    #definePSA_WANT_ALG_FFDH1
    #definePSA_WANT_ALG_ECDSA1
    #definePSA_WANT_ALG_JPAKE1
    #definePSA_WANT_ALG_GCM1
    #definePSA_WANT_ALG_HKDF1
    #definePSA_WANT_ALG_HKDF_EXTRACT1
    #definePSA_WANT_ALG_HKDF_EXPAND1
    #definePSA_WANT_ALG_HMAC1
    #definePSA_WANT_ALG_MD51
    #definePSA_WANT_ALG_OFB1
    #definePSA_WANT_ALG_PBKDF2_HMAC1
    #definePSA_WANT_ALG_PBKDF2_AES_CMAC_PRF_1281
    #definePSA_WANT_ALG_RIPEMD1601
    #definePSA_WANT_ALG_RSA_OAEP1
    #definePSA_WANT_ALG_RSA_PKCS1V15_CRYPT1
    #definePSA_WANT_ALG_RSA_PKCS1V15_SIGN1
    #definePSA_WANT_ALG_RSA_PSS1
    #definePSA_WANT_ALG_SHA_11
    #definePSA_WANT_ALG_SHA_2241
    #definePSA_WANT_ALG_SHA_2561
    #definePSA_WANT_ALG_SHA_3841
    #definePSA_WANT_ALG_SHA_5121
    #definePSA_WANT_ALG_SHA3_2241
    #definePSA_WANT_ALG_SHA3_2561
    #definePSA_WANT_ALG_SHA3_3841
    #definePSA_WANT_ALG_SHA3_5121
    #definePSA_WANT_ALG_STREAM_CIPHER1
    #definePSA_WANT_ALG_TLS12_PRF1
    #definePSA_WANT_ALG_TLS12_PSK_TO_MS1
    #definePSA_WANT_ALG_TLS12_ECJPAKE_TO_PMS1

    /*XTSisnotyetsupportedviathePSAAPIinMbedTLS.
    *Note:whenaddingsupport,alsoadjustinclude/mbedtls/config_psa.h*/
    //#definePSA_WANT_ALG_XTS1

    #definePSA_WANT_ECC_BRAINPOOL_P_R1_2561
    #definePSA_WANT_ECC_BRAINPOOL_P_R1_3841
    #definePSA_WANT_ECC_BRAINPOOL_P_R1_5121
    #definePSA_WANT_ECC_MONTGOMERY_2551
    #definePSA_WANT_ECC_MONTGOMERY_4481
    #definePSA_WANT_ECC_SECP_K1_1921
    /*
    *SECP224K1isbuggyviathePSAAPIinMbedTLS
    *(https://github.com/Mbed-TLS/mbedtls/issues/3541).Thus,donotenableitby
    *default.
    */
    //#definePSA_WANT_ECC_SECP_K1_2241
    #definePSA_WANT_ECC_SECP_K1_2561
    #definePSA_WANT_ECC_SECP_R1_1921
    #definePSA_WANT_ECC_SECP_R1_2241
    /*Forsecp256r1,considerenabling#MBEDTLS_PSA_P256M_DRIVER_ENABLED
    *(seethedescriptioninmbedtls/mbedtls_config.hfordetails).*/
    #definePSA_WANT_ECC_SECP_R1_2561
    #definePSA_WANT_ECC_SECP_R1_3841
    #definePSA_WANT_ECC_SECP_R1_5211

    #definePSA_WANT_DH_RFC7919_20481
    #definePSA_WANT_DH_RFC7919_30721
    #definePSA_WANT_DH_RFC7919_40961
    #definePSA_WANT_DH_RFC7919_61441
    #definePSA_WANT_DH_RFC7919_81921

    #definePSA_WANT_KEY_TYPE_DERIVE1
    #definePSA_WANT_KEY_TYPE_PASSWORD1
    #definePSA_WANT_KEY_TYPE_PASSWORD_HASH1
    #definePSA_WANT_KEY_TYPE_HMAC1
    #definePSA_WANT_KEY_TYPE_AES1
    #definePSA_WANT_KEY_TYPE_ARIA1
    #definePSA_WANT_KEY_TYPE_CAMELLIA1
    #definePSA_WANT_KEY_TYPE_CHACHA201
    #definePSA_WANT_KEY_TYPE_DES1
    //#definePSA_WANT_KEY_TYPE_ECC_KEY_PAIR1/*Deprecated*/
    #definePSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY1
    #definePSA_WANT_KEY_TYPE_DH_PUBLIC_KEY1
    #definePSA_WANT_KEY_TYPE_RAW_DATA1
    //#definePSA_WANT_KEY_TYPE_RSA_KEY_PAIR1/*Deprecated*/
    #definePSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY1

    /*
    *Thefollowingsymbolsextendanddeprecatethelegacy
    *PSA_WANT_KEY_TYPE_xxx_KEY_PAIRones.Theyincludetheusageofthatkeyin
    *thename'ssuffix."_USE"isthemostgenericanditcanbeusedtodescribe
    *agenericsuport,whereasotheronesaddmorefeaturesontopofthatand
    *theyaremorespecific.
    */
    #definePSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC1
    #definePSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT1
    #definePSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT1
    #definePSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE1
    #definePSA_WANT_KEY_TYPE_ECC_KEY_PAIR_DERIVE1

    #definePSA_WANT_KEY_TYPE_RSA_KEY_PAIR_BASIC1
    #definePSA_WANT_KEY_TYPE_RSA_KEY_PAIR_IMPORT1
    #definePSA_WANT_KEY_TYPE_RSA_KEY_PAIR_EXPORT1
    #definePSA_WANT_KEY_TYPE_RSA_KEY_PAIR_GENERATE1
    //#definePSA_WANT_KEY_TYPE_RSA_KEY_PAIR_DERIVE1/*Notsupported*/

    #definePSA_WANT_KEY_TYPE_DH_KEY_PAIR_BASIC1
    #definePSA_WANT_KEY_TYPE_DH_KEY_PAIR_IMPORT1
    #definePSA_WANT_KEY_TYPE_DH_KEY_PAIR_EXPORT1
    #definePSA_WANT_KEY_TYPE_DH_KEY_PAIR_GENERATE1
    //#definePSA_WANT_KEY_TYPE_DH_KEY_PAIR_DERIVE1/*Notsupported*/

    #endif/*PSA_CRYPTO_CONFIG_H*/