config_psa.h
crypto_platform.h
config_psa.h
crypto.h
crypto_builtin_composites.h
crypto_builtin_primitives.h
crypto_driver_common.h
crypto_driver_contexts_composites.h
crypto_driver_contexts_primitives.h
crypto_extra.h
crypto_platform.h
crypto_se_driver.h
crypto_struct.h
crypto_types.h
PSA_WANT_KEY_TYPE_DERIVE
1
PSA_WANT_KEY_TYPE_RAW_DATA
1

PSA crypto configuration options (set of defines)

This set of compile-time options takes settings defined in include/mbedtls/config.h and include/psa/crypto_config.h and uses those definitions to define symbols used in the library code.

Users and integrators should not edit this file, please edit include/mbedtls/config.h for MBEDTLS_XXX settings or include/psa/crypto_config.h for PSA_WANT_XXX settings.

    /*
    *CopyrightTheMbedTLSContributors
    *SPDX-License-Identifier:Apache-2.0ORGPL-2.0-or-later
    */

    #ifndefMBEDTLS_CONFIG_PSA_H
    #defineMBEDTLS_CONFIG_PSA_H

    #ifdefined(MBEDTLS_PSA_CRYPTO_CONFIG)
    #ifdefined(MBEDTLS_PSA_CRYPTO_CONFIG_FILE)
    #includeMBEDTLS_PSA_CRYPTO_CONFIG_FILE
    #else
    #include"psa/crypto_config.h"
    #endif
    #endif/*defined(MBEDTLS_PSA_CRYPTO_CONFIG)*/

    #ifdefined(MBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE)
    #includeMBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE
    #endif

    #ifdef__cplusplus
    extern"C"{
    #endif

    /****************************************************************/
    /*Defactosynonyms*/
    /****************************************************************/

    #ifdefined(PSA_WANT_ALG_ECDSA_ANY)&&!defined(PSA_WANT_ALG_ECDSA)
    #definePSA_WANT_ALG_ECDSAPSA_WANT_ALG_ECDSA_ANY
    #elif!defined(PSA_WANT_ALG_ECDSA_ANY)&&defined(PSA_WANT_ALG_ECDSA)
    #definePSA_WANT_ALG_ECDSA_ANYPSA_WANT_ALG_ECDSA
    #endif

    #ifdefined(PSA_WANT_ALG_RSA_PKCS1V15_SIGN_RAW)&&!defined(PSA_WANT_ALG_RSA_PKCS1V15_SIGN)
    #definePSA_WANT_ALG_RSA_PKCS1V15_SIGNPSA_WANT_ALG_RSA_PKCS1V15_SIGN_RAW
    #elif!defined(PSA_WANT_ALG_RSA_PKCS1V15_SIGN_RAW)&&defined(PSA_WANT_ALG_RSA_PKCS1V15_SIGN)
    #definePSA_WANT_ALG_RSA_PKCS1V15_SIGN_RAWPSA_WANT_ALG_RSA_PKCS1V15_SIGN
    #endif

    #ifdefined(PSA_WANT_ALG_RSA_PSS_ANY_SALT)&&!defined(PSA_WANT_ALG_RSA_PSS)
    #definePSA_WANT_ALG_RSA_PSSPSA_WANT_ALG_RSA_PSS_ANY_SALT
    #elif!defined(PSA_WANT_ALG_RSA_PSS_ANY_SALT)&&defined(PSA_WANT_ALG_RSA_PSS)
    #definePSA_WANT_ALG_RSA_PSS_ANY_SALTPSA_WANT_ALG_RSA_PSS
    #endif

    /****************************************************************/
    /*Requirebuilt-inimplementationsbasedonPSArequirements*/
    /****************************************************************/

    #ifdefined(MBEDTLS_PSA_CRYPTO_CONFIG)

    #ifdefined(PSA_WANT_ALG_DETERMINISTIC_ECDSA)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_DETERMINISTIC_ECDSA)
    #defineMBEDTLS_PSA_BUILTIN_ALG_DETERMINISTIC_ECDSA1
    #defineMBEDTLS_ECDSA_DETERMINISTIC
    #defineMBEDTLS_ECDSA_C
    #defineMBEDTLS_HMAC_DRBG_C
    #defineMBEDTLS_MD_C
    #endif/*!MBEDTLS_PSA_ACCEL_ALG_DETERMINISTIC_ECDSA*/
    #endif/*PSA_WANT_ALG_DETERMINISTIC_ECDSA*/

    #ifdefined(PSA_WANT_ALG_ECDH)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_ECDH)
    #defineMBEDTLS_PSA_BUILTIN_ALG_ECDH1
    #defineMBEDTLS_ECDH_C
    #defineMBEDTLS_ECP_C
    #defineMBEDTLS_BIGNUM_C
    #endif/*!MBEDTLS_PSA_ACCEL_ALG_ECDH*/
    #endif/*PSA_WANT_ALG_ECDH*/

    #ifdefined(PSA_WANT_ALG_ECDSA)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_ECDSA)
    #defineMBEDTLS_PSA_BUILTIN_ALG_ECDSA1
    #defineMBEDTLS_ECDSA_C
    #defineMBEDTLS_ECP_C
    #defineMBEDTLS_BIGNUM_C
    #defineMBEDTLS_ASN1_PARSE_C
    #defineMBEDTLS_ASN1_WRITE_C
    #endif/*!MBEDTLS_PSA_ACCEL_ALG_ECDSA*/
    #endif/*PSA_WANT_ALG_ECDSA*/

    #ifdefined(PSA_WANT_ALG_HKDF)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_HKDF)
    /*
    *ThePSAimplementationhasitsownimplementationofHKDF,separatefrom
    *hkdf.c.NoneedtoenableMBEDTLS_HKDF_Chere.
    */
    #defineMBEDTLS_PSA_BUILTIN_ALG_HMAC1
    #defineMBEDTLS_PSA_BUILTIN_ALG_HKDF1
    #endif/*!MBEDTLS_PSA_ACCEL_ALG_HKDF*/
    #endif/*PSA_WANT_ALG_HKDF*/

    #ifdefined(PSA_WANT_ALG_HMAC)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_HMAC)
    #defineMBEDTLS_PSA_BUILTIN_ALG_HMAC1
    #endif/*!MBEDTLS_PSA_ACCEL_ALG_HMAC*/
    #endif/*PSA_WANT_ALG_HMAC*/

    #ifdefined(PSA_WANT_ALG_MD2)&&!defined(MBEDTLS_PSA_ACCEL_ALG_MD2)
    #defineMBEDTLS_PSA_BUILTIN_ALG_MD21
    #defineMBEDTLS_MD2_C
    #endif

    #ifdefined(PSA_WANT_ALG_MD4)&&!defined(MBEDTLS_PSA_ACCEL_ALG_MD4)
    #defineMBEDTLS_PSA_BUILTIN_ALG_MD41
    #defineMBEDTLS_MD4_C
    #endif

    #ifdefined(PSA_WANT_ALG_MD5)&&!defined(MBEDTLS_PSA_ACCEL_ALG_MD5)
    #defineMBEDTLS_PSA_BUILTIN_ALG_MD51
    #defineMBEDTLS_MD5_C
    #endif

    #ifdefined(PSA_WANT_ALG_RIPEMD160)&&!defined(MBEDTLS_PSA_ACCEL_ALG_RIPEMD160)
    #defineMBEDTLS_PSA_BUILTIN_ALG_RIPEMD1601
    #defineMBEDTLS_RIPEMD160_C
    #endif

    #ifdefined(PSA_WANT_ALG_RSA_OAEP)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_RSA_OAEP)
    #defineMBEDTLS_PSA_BUILTIN_ALG_RSA_OAEP1
    #defineMBEDTLS_RSA_C
    #defineMBEDTLS_BIGNUM_C
    #defineMBEDTLS_OID_C
    #defineMBEDTLS_PKCS1_V21
    #defineMBEDTLS_MD_C
    #endif/*!MBEDTLS_PSA_ACCEL_ALG_RSA_OAEP*/
    #endif/*PSA_WANT_ALG_RSA_OAEP*/

    #ifdefined(PSA_WANT_ALG_RSA_PKCS1V15_CRYPT)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_RSA_PKCS1V15_CRYPT)
    #defineMBEDTLS_PSA_BUILTIN_ALG_RSA_PKCS1V15_CRYPT1
    #defineMBEDTLS_RSA_C
    #defineMBEDTLS_BIGNUM_C
    #defineMBEDTLS_OID_C
    #defineMBEDTLS_PKCS1_V15
    #endif/*!MBEDTLS_PSA_ACCEL_ALG_RSA_PKCS1V15_CRYPT*/
    #endif/*PSA_WANT_ALG_RSA_PKCS1V15_CRYPT*/

    #ifdefined(PSA_WANT_ALG_RSA_PKCS1V15_SIGN)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_RSA_PKCS1V15_SIGN)
    #defineMBEDTLS_PSA_BUILTIN_ALG_RSA_PKCS1V15_SIGN1
    #defineMBEDTLS_RSA_C
    #defineMBEDTLS_BIGNUM_C
    #defineMBEDTLS_OID_C
    #defineMBEDTLS_PKCS1_V15
    #defineMBEDTLS_MD_C
    #endif/*!MBEDTLS_PSA_ACCEL_ALG_RSA_PKCS1V15_SIGN*/
    #endif/*PSA_WANT_ALG_RSA_PKCS1V15_SIGN*/

    #ifdefined(PSA_WANT_ALG_RSA_PSS)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_RSA_PSS)
    #defineMBEDTLS_PSA_BUILTIN_ALG_RSA_PSS1
    #defineMBEDTLS_RSA_C
    #defineMBEDTLS_BIGNUM_C
    #defineMBEDTLS_OID_C
    #defineMBEDTLS_PKCS1_V21
    #defineMBEDTLS_MD_C
    #endif/*!MBEDTLS_PSA_ACCEL_ALG_RSA_PSS*/
    #endif/*PSA_WANT_ALG_RSA_PSS*/

    #ifdefined(PSA_WANT_ALG_SHA_1)&&!defined(MBEDTLS_PSA_ACCEL_ALG_SHA_1)
    #defineMBEDTLS_PSA_BUILTIN_ALG_SHA_11
    #defineMBEDTLS_SHA1_C
    #endif

    #ifdefined(PSA_WANT_ALG_SHA_224)&&!defined(MBEDTLS_PSA_ACCEL_ALG_SHA_224)
    #defineMBEDTLS_PSA_BUILTIN_ALG_SHA_2241
    #defineMBEDTLS_SHA256_C
    #endif

    #ifdefined(PSA_WANT_ALG_SHA_256)&&!defined(MBEDTLS_PSA_ACCEL_ALG_SHA_256)
    #defineMBEDTLS_PSA_BUILTIN_ALG_SHA_2561
    #defineMBEDTLS_SHA256_C
    #endif

    #ifdefined(PSA_WANT_ALG_SHA_384)&&!defined(MBEDTLS_PSA_ACCEL_ALG_SHA_384)
    #defineMBEDTLS_PSA_BUILTIN_ALG_SHA_3841
    #defineMBEDTLS_SHA512_C
    #endif

    #ifdefined(PSA_WANT_ALG_SHA_512)&&!defined(MBEDTLS_PSA_ACCEL_ALG_SHA_512)
    #defineMBEDTLS_PSA_BUILTIN_ALG_SHA_5121
    #defineMBEDTLS_SHA512_C
    #endif

    #ifdefined(PSA_WANT_ALG_TLS12_PRF)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_TLS12_PRF)
    #defineMBEDTLS_PSA_BUILTIN_ALG_TLS12_PRF1
    #endif/*!MBEDTLS_PSA_ACCEL_ALG_TLS12_PRF*/
    #endif/*PSA_WANT_ALG_TLS12_PRF*/

    #ifdefined(PSA_WANT_ALG_TLS12_PSK_TO_MS)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_TLS12_PSK_TO_MS)
    #defineMBEDTLS_PSA_BUILTIN_ALG_TLS12_PSK_TO_MS1
    #endif/*!MBEDTLS_PSA_ACCEL_ALG_TLS12_PSK_TO_MS*/
    #endif/*PSA_WANT_ALG_TLS12_PSK_TO_MS*/

    #ifdefined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR)
    #if!defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_ECC_KEY_PAIR)
    #defineMBEDTLS_PSA_BUILTIN_KEY_TYPE_ECC_KEY_PAIR1
    #defineMBEDTLS_ECP_C
    #defineMBEDTLS_BIGNUM_C
    #endif/*!MBEDTLS_PSA_ACCEL_KEY_TYPE_ECC_KEY_PAIR*/
    #endif/*PSA_WANT_KEY_TYPE_ECC_KEY_PAIR*/

    #ifdefined(PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY)
    #if!defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_ECC_PUBLIC_KEY)
    #defineMBEDTLS_PSA_BUILTIN_KEY_TYPE_ECC_PUBLIC_KEY1
    #defineMBEDTLS_ECP_C
    #defineMBEDTLS_BIGNUM_C
    #endif/*!MBEDTLS_PSA_ACCEL_KEY_TYPE_ECC_PUBLIC_KEY*/
    #endif/*PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY*/

    #ifdefined(PSA_WANT_KEY_TYPE_RSA_KEY_PAIR)
    #if!defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_RSA_KEY_PAIR)
    #defineMBEDTLS_PSA_BUILTIN_KEY_TYPE_RSA_KEY_PAIR1
    #defineMBEDTLS_RSA_C
    #defineMBEDTLS_BIGNUM_C
    #defineMBEDTLS_OID_C
    #defineMBEDTLS_GENPRIME
    #defineMBEDTLS_PK_PARSE_C
    #defineMBEDTLS_PK_WRITE_C
    #defineMBEDTLS_PK_C
    #defineMBEDTLS_ASN1_PARSE_C
    #defineMBEDTLS_ASN1_WRITE_C
    #endif/*!MBEDTLS_PSA_ACCEL_KEY_TYPE_RSA_KEY_PAIR*/
    #endif/*PSA_WANT_KEY_TYPE_RSA_KEY_PAIR*/

    #ifdefined(PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY)
    #if!defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_RSA_PUBLIC_KEY)
    #defineMBEDTLS_PSA_BUILTIN_KEY_TYPE_RSA_PUBLIC_KEY1
    #defineMBEDTLS_RSA_C
    #defineMBEDTLS_BIGNUM_C
    #defineMBEDTLS_OID_C
    #defineMBEDTLS_PK_PARSE_C
    #defineMBEDTLS_PK_WRITE_C
    #defineMBEDTLS_PK_C
    #defineMBEDTLS_ASN1_PARSE_C
    #defineMBEDTLS_ASN1_WRITE_C
    #endif/*!MBEDTLS_PSA_ACCEL_KEY_TYPE_RSA_PUBLIC_KEY*/
    #endif/*PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY*/

    /*Ifanyoftheblockmodesarerequestedthatdon'thavean
    *associatedHWassist,definePSA_HAVE_SOFT_BLOCK_MODEforchecking
    *intheblockcipherkeytypes.*/
    #if(defined(PSA_WANT_ALG_CTR)&&!defined(MBEDTLS_PSA_ACCEL_ALG_CTR))||\
    (defined(PSA_WANT_ALG_CFB)&&!defined(MBEDTLS_PSA_ACCEL_ALG_CFB))||\
    (defined(PSA_WANT_ALG_OFB)&&!defined(MBEDTLS_PSA_ACCEL_ALG_OFB))||\
    defined(PSA_WANT_ALG_ECB_NO_PADDING)||\
    (defined(PSA_WANT_ALG_CBC_NO_PADDING)&&\
    !defined(MBEDTLS_PSA_ACCEL_ALG_CBC_NO_PADDING))||\
    (defined(PSA_WANT_ALG_CBC_PKCS7)&&\
    !defined(MBEDTLS_PSA_ACCEL_ALG_CBC_PKCS7))||\
    (defined(PSA_WANT_ALG_CMAC)&&!defined(MBEDTLS_PSA_ACCEL_ALG_CMAC))
    #definePSA_HAVE_SOFT_BLOCK_MODE1
    #endif

    #if(defined(PSA_WANT_ALG_GCM)&&!defined(MBEDTLS_PSA_ACCEL_ALG_GCM))||\
    (defined(PSA_WANT_ALG_CCM)&&!defined(MBEDTLS_PSA_ACCEL_ALG_CCM))
    #definePSA_HAVE_SOFT_BLOCK_AEAD1
    #endif

    #ifdefined(PSA_WANT_KEY_TYPE_AES)
    #if!defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_AES)
    #definePSA_HAVE_SOFT_KEY_TYPE_AES1
    #endif/*!MBEDTLS_PSA_ACCEL_KEY_TYPE_AES*/
    #ifdefined(PSA_HAVE_SOFT_KEY_TYPE_AES)||\
    defined(PSA_HAVE_SOFT_BLOCK_MODE)||\
    defined(PSA_HAVE_SOFT_BLOCK_AEAD)
    #defineMBEDTLS_PSA_BUILTIN_KEY_TYPE_AES1
    #defineMBEDTLS_AES_C
    #endif/*PSA_HAVE_SOFT_KEY_TYPE_AES||PSA_HAVE_SOFT_BLOCK_MODE*/
    #endif/*PSA_WANT_KEY_TYPE_AES*/

    #ifdefined(PSA_WANT_KEY_TYPE_ARC4)
    #if!defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_ARC4)
    #defineMBEDTLS_PSA_BUILTIN_KEY_TYPE_ARC41
    #defineMBEDTLS_ARC4_C
    #endif
    #endif/*PSA_WANT_KEY_TYPE_ARC4*/

    #ifdefined(PSA_WANT_KEY_TYPE_ARIA)
    #if!defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_ARIA)
    #definePSA_HAVE_SOFT_KEY_TYPE_ARIA1
    #endif/*!MBEDTLS_PSA_ACCEL_KEY_TYPE_ARIA*/
    #ifdefined(PSA_HAVE_SOFT_KEY_TYPE_ARIA)||\
    defined(PSA_HAVE_SOFT_BLOCK_MODE)||\
    defined(PSA_HAVE_SOFT_BLOCK_AEAD)
    #defineMBEDTLS_PSA_BUILTIN_KEY_TYPE_ARIA1
    #defineMBEDTLS_ARIA_C
    #endif/*PSA_HAVE_SOFT_KEY_TYPE_ARIA||PSA_HAVE_SOFT_BLOCK_MODE*/
    #endif/*PSA_WANT_KEY_TYPE_ARIA*/

    #ifdefined(PSA_WANT_KEY_TYPE_CAMELLIA)
    #if!defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_CAMELLIA)
    #definePSA_HAVE_SOFT_KEY_TYPE_CAMELLIA1
    #endif/*!MBEDTLS_PSA_ACCEL_KEY_TYPE_CAMELLIA*/
    #ifdefined(PSA_HAVE_SOFT_KEY_TYPE_CAMELLIA)||\
    defined(PSA_HAVE_SOFT_BLOCK_MODE)||\
    defined(PSA_HAVE_SOFT_BLOCK_AEAD)
    #defineMBEDTLS_PSA_BUILTIN_KEY_TYPE_CAMELLIA1
    #defineMBEDTLS_CAMELLIA_C
    #endif/*PSA_HAVE_SOFT_KEY_TYPE_CAMELLIA||PSA_HAVE_SOFT_BLOCK_MODE*/
    #endif/*PSA_WANT_KEY_TYPE_CAMELLIA*/

    #ifdefined(PSA_WANT_KEY_TYPE_DES)
    #if!defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_DES)
    #definePSA_HAVE_SOFT_KEY_TYPE_DES1
    #endif/*!MBEDTLS_PSA_ACCEL_KEY_TYPE_DES*/
    #ifdefined(PSA_HAVE_SOFT_KEY_TYPE_DES)||\
    defined(PSA_HAVE_SOFT_BLOCK_MODE)
    #defineMBEDTLS_PSA_BUILTIN_KEY_TYPE_DES1
    #defineMBEDTLS_DES_C
    #endif/*PSA_HAVE_SOFT_KEY_TYPE_DES||PSA_HAVE_SOFT_BLOCK_MODE*/
    #endif/*PSA_WANT_KEY_TYPE_DES*/

    #ifdefined(PSA_WANT_KEY_TYPE_CHACHA20)
    #if!defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_CHACHA20)
    #defineMBEDTLS_PSA_BUILTIN_KEY_TYPE_CHACHA201
    #defineMBEDTLS_CHACHA20_C
    #endif
    #endif/*PSA_WANT_KEY_TYPE_CHACHA20*/

    /*Ifanyofthesoftwareblockciphersareselected,define
    *PSA_HAVE_SOFT_BLOCK_CIPHER,whichcanbeusedinanyofthese
    *situations.*/
    #ifdefined(PSA_HAVE_SOFT_KEY_TYPE_AES)||\
    defined(PSA_HAVE_SOFT_KEY_TYPE_ARIA)||\
    defined(PSA_HAVE_SOFT_KEY_TYPE_DES)||\
    defined(PSA_HAVE_SOFT_KEY_TYPE_CAMELLIA)
    #definePSA_HAVE_SOFT_BLOCK_CIPHER1
    #endif

    #ifdefined(PSA_WANT_ALG_STREAM_CIPHER)
    #defineMBEDTLS_PSA_BUILTIN_ALG_STREAM_CIPHER1
    #endif/*PSA_WANT_ALG_STREAM_CIPHER*/

    #ifdefined(PSA_WANT_ALG_CBC_MAC)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_CBC_MAC)
    #error"CBC-MACisnotyetsupportedviathePSAAPIinMbedTLS."
    #defineMBEDTLS_PSA_BUILTIN_ALG_CBC_MAC1
    #endif/*!MBEDTLS_PSA_ACCEL_ALG_CBC_MAC*/
    #endif/*PSA_WANT_ALG_CBC_MAC*/

    #ifdefined(PSA_WANT_ALG_CMAC)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_CMAC)||\
    defined(PSA_HAVE_SOFT_BLOCK_CIPHER)
    #defineMBEDTLS_PSA_BUILTIN_ALG_CMAC1
    #defineMBEDTLS_CMAC_C
    #endif/*!MBEDTLS_PSA_ACCEL_ALG_CMAC*/
    #endif/*PSA_WANT_ALG_CMAC*/

    #ifdefined(PSA_WANT_ALG_CTR)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_CTR)||\
    defined(PSA_HAVE_SOFT_BLOCK_CIPHER)
    #defineMBEDTLS_PSA_BUILTIN_ALG_CTR1
    #defineMBEDTLS_CIPHER_MODE_CTR
    #endif
    #endif/*PSA_WANT_ALG_CTR*/

    #ifdefined(PSA_WANT_ALG_CFB)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_CFB)||\
    defined(PSA_HAVE_SOFT_BLOCK_CIPHER)
    #defineMBEDTLS_PSA_BUILTIN_ALG_CFB1
    #defineMBEDTLS_CIPHER_MODE_CFB
    #endif
    #endif/*PSA_WANT_ALG_CFB*/

    #ifdefined(PSA_WANT_ALG_OFB)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_OFB)||\
    defined(PSA_HAVE_SOFT_BLOCK_CIPHER)
    #defineMBEDTLS_PSA_BUILTIN_ALG_OFB1
    #defineMBEDTLS_CIPHER_MODE_OFB
    #endif
    #endif/*PSA_WANT_ALG_OFB*/

    #ifdefined(PSA_WANT_ALG_ECB_NO_PADDING)&&\
    !defined(MBEDTLS_PSA_ACCEL_ALG_ECB_NO_PADDING)
    #defineMBEDTLS_PSA_BUILTIN_ALG_ECB_NO_PADDING1
    #endif

    #ifdefined(PSA_WANT_ALG_CBC_NO_PADDING)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_CBC_NO_PADDING)||\
    defined(PSA_HAVE_SOFT_BLOCK_CIPHER)
    #defineMBEDTLS_CIPHER_MODE_CBC
    #defineMBEDTLS_PSA_BUILTIN_ALG_CBC_NO_PADDING1
    #endif
    #endif/*PSA_WANT_ALG_CBC_NO_PADDING*/

    #ifdefined(PSA_WANT_ALG_CBC_PKCS7)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_CBC_PKCS7)||\
    defined(PSA_HAVE_SOFT_BLOCK_CIPHER)
    #defineMBEDTLS_CIPHER_MODE_CBC
    #defineMBEDTLS_PSA_BUILTIN_ALG_CBC_PKCS71
    #defineMBEDTLS_CIPHER_PADDING_PKCS7
    #endif
    #endif/*PSA_WANT_ALG_CBC_PKCS7*/

    #ifdefined(PSA_WANT_ALG_CCM)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_CCM)||\
    defined(PSA_HAVE_SOFT_KEY_TYPE_AES)||\
    defined(PSA_HAVE_SOFT_KEY_TYPE_ARIA)||\
    defined(PSA_HAVE_SOFT_KEY_TYPE_CAMELLIA)
    #defineMBEDTLS_PSA_BUILTIN_ALG_CCM1
    #defineMBEDTLS_CCM_C
    #endif
    #endif/*PSA_WANT_ALG_CCM*/

    #ifdefined(PSA_WANT_ALG_GCM)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_GCM)||\
    defined(PSA_HAVE_SOFT_KEY_TYPE_AES)||\
    defined(PSA_HAVE_SOFT_KEY_TYPE_ARIA)||\
    defined(PSA_HAVE_SOFT_KEY_TYPE_CAMELLIA)
    #defineMBEDTLS_PSA_BUILTIN_ALG_GCM1
    #defineMBEDTLS_GCM_C
    #endif
    #endif/*PSA_WANT_ALG_GCM*/

    #ifdefined(PSA_WANT_ALG_CHACHA20_POLY1305)
    #if!defined(MBEDTLS_PSA_ACCEL_ALG_CHACHA20_POLY1305)
    #ifdefined(PSA_WANT_KEY_TYPE_CHACHA20)
    #defineMBEDTLS_CHACHAPOLY_C
    #defineMBEDTLS_CHACHA20_C
    #defineMBEDTLS_POLY1305_C
    #defineMBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY13051
    #endif/*PSA_WANT_KEY_TYPE_CHACHA20*/
    #endif/*!MBEDTLS_PSA_ACCEL_ALG_CHACHA20_POLY1305*/
    #endif/*PSA_WANT_ALG_CHACHA20_POLY1305*/

    #ifdefined(PSA_WANT_ECC_BRAINPOOL_P_R1_256)
    #if!defined(MBEDTLS_PSA_ACCEL_ECC_BRAINPOOL_P_R1_256)
    #defineMBEDTLS_ECP_DP_BP256R1_ENABLED
    #defineMBEDTLS_PSA_BUILTIN_ECC_BRAINPOOL_P_R1_2561
    #endif/*!MBEDTLS_PSA_ACCEL_ECC_BRAINPOOL_P_R1_256*/
    #endif/*PSA_WANT_ECC_BRAINPOOL_P_R1_256*/

    #ifdefined(PSA_WANT_ECC_BRAINPOOL_P_R1_384)
    #if!defined(MBEDTLS_PSA_ACCEL_ECC_BRAINPOOL_P_R1_384)
    #defineMBEDTLS_ECP_DP_BP384R1_ENABLED
    #defineMBEDTLS_PSA_BUILTIN_ECC_BRAINPOOL_P_R1_3841
    #endif/*!MBEDTLS_PSA_ACCEL_ECC_BRAINPOOL_P_R1_384*/
    #endif/*PSA_WANT_ECC_BRAINPOOL_P_R1_384*/

    #ifdefined(PSA_WANT_ECC_BRAINPOOL_P_R1_512)
    #if!defined(MBEDTLS_PSA_ACCEL_ECC_BRAINPOOL_P_R1_512)
    #defineMBEDTLS_ECP_DP_BP512R1_ENABLED
    #defineMBEDTLS_PSA_BUILTIN_ECC_BRAINPOOL_P_R1_5121
    #endif/*!MBEDTLS_PSA_ACCEL_ECC_BRAINPOOL_P_R1_512*/
    #endif/*PSA_WANT_ECC_BRAINPOOL_P_R1_512*/

    #ifdefined(PSA_WANT_ECC_MONTGOMERY_255)
    #if!defined(MBEDTLS_PSA_ACCEL_ECC_MONTGOMERY_255)
    #defineMBEDTLS_ECP_DP_CURVE25519_ENABLED
    #defineMBEDTLS_PSA_BUILTIN_ECC_MONTGOMERY_2551
    #endif/*!MBEDTLS_PSA_ACCEL_ECC_MONTGOMERY_255*/
    #endif/*PSA_WANT_ECC_MONTGOMERY_255*/

    #ifdefined(PSA_WANT_ECC_MONTGOMERY_448)
    #if!defined(MBEDTLS_PSA_ACCEL_ECC_MONTGOMERY_448)
    /*
    *Curve448isnotyetsupportedviathePSAAPIinMbedTLS
    *(https://github.com/Mbed-TLS/mbedtls/issues/4249).
    */
    #error"Curve448isnotyetsupportedviathePSAAPIinMbedTLS."
    #defineMBEDTLS_ECP_DP_CURVE448_ENABLED
    #defineMBEDTLS_PSA_BUILTIN_ECC_MONTGOMERY_4481
    #endif/*!MBEDTLS_PSA_ACCEL_ECC_MONTGOMERY_448*/
    #endif/*PSA_WANT_ECC_MONTGOMERY_448*/

    #ifdefined(PSA_WANT_ECC_SECP_R1_192)
    #if!defined(MBEDTLS_PSA_ACCEL_ECC_SECP_R1_192)
    #defineMBEDTLS_ECP_DP_SECP192R1_ENABLED
    #defineMBEDTLS_PSA_BUILTIN_ECC_SECP_R1_1921
    #endif/*!MBEDTLS_PSA_ACCEL_ECC_SECP_R1_192*/
    #endif/*PSA_WANT_ECC_SECP_R1_192*/

    #ifdefined(PSA_WANT_ECC_SECP_R1_224)
    #if!defined(MBEDTLS_PSA_ACCEL_ECC_SECP_R1_224)
    #defineMBEDTLS_ECP_DP_SECP224R1_ENABLED
    #defineMBEDTLS_PSA_BUILTIN_ECC_SECP_R1_2241
    #endif/*!MBEDTLS_PSA_ACCEL_ECC_SECP_R1_224*/
    #endif/*PSA_WANT_ECC_SECP_R1_224*/

    #ifdefined(PSA_WANT_ECC_SECP_R1_256)
    #if!defined(MBEDTLS_PSA_ACCEL_ECC_SECP_R1_256)
    #defineMBEDTLS_ECP_DP_SECP256R1_ENABLED
    #defineMBEDTLS_PSA_BUILTIN_ECC_SECP_R1_2561
    #endif/*!MBEDTLS_PSA_ACCEL_ECC_SECP_R1_256*/
    #endif/*PSA_WANT_ECC_SECP_R1_256*/

    #ifdefined(PSA_WANT_ECC_SECP_R1_384)
    #if!defined(MBEDTLS_PSA_ACCEL_ECC_SECP_R1_384)
    #defineMBEDTLS_ECP_DP_SECP384R1_ENABLED
    #defineMBEDTLS_PSA_BUILTIN_ECC_SECP_R1_3841
    #endif/*!MBEDTLS_PSA_ACCEL_ECC_SECP_R1_384*/
    #endif/*PSA_WANT_ECC_SECP_R1_384*/

    #ifdefined(PSA_WANT_ECC_SECP_R1_521)
    #if!defined(MBEDTLS_PSA_ACCEL_ECC_SECP_R1_521)
    #defineMBEDTLS_ECP_DP_SECP521R1_ENABLED
    #defineMBEDTLS_PSA_BUILTIN_ECC_SECP_R1_5211
    #endif/*!MBEDTLS_PSA_ACCEL_ECC_SECP_R1_521*/
    #endif/*PSA_WANT_ECC_SECP_R1_521*/

    #ifdefined(PSA_WANT_ECC_SECP_K1_192)
    #if!defined(MBEDTLS_PSA_ACCEL_ECC_SECP_K1_192)
    #defineMBEDTLS_ECP_DP_SECP192K1_ENABLED
    #defineMBEDTLS_PSA_BUILTIN_ECC_SECP_K1_1921
    #endif/*!MBEDTLS_PSA_ACCEL_ECC_SECP_K1_192*/
    #endif/*PSA_WANT_ECC_SECP_K1_192*/

    #ifdefined(PSA_WANT_ECC_SECP_K1_224)
    #if!defined(MBEDTLS_PSA_ACCEL_ECC_SECP_K1_224)
    /*
    *SECP224K1isbuggyviathePSAAPIinMbedTLS
    *(https://github.com/Mbed-TLS/mbedtls/issues/3541).
    */
    #error"SECP224K1isbuggyviathePSAAPIinMbedTLS."
    #defineMBEDTLS_ECP_DP_SECP224K1_ENABLED
    #defineMBEDTLS_PSA_BUILTIN_ECC_SECP_K1_2241
    #endif/*!MBEDTLS_PSA_ACCEL_ECC_SECP_K1_224*/
    #endif/*PSA_WANT_ECC_SECP_K1_224*/

    #ifdefined(PSA_WANT_ECC_SECP_K1_256)
    #if!defined(MBEDTLS_PSA_ACCEL_ECC_SECP_K1_256)
    #defineMBEDTLS_ECP_DP_SECP256K1_ENABLED
    #defineMBEDTLS_PSA_BUILTIN_ECC_SECP_K1_2561
    #endif/*!MBEDTLS_PSA_ACCEL_ECC_SECP_K1_256*/
    #endif/*PSA_WANT_ECC_SECP_K1_256*/

    /****************************************************************/
    /*InferPSArequirementsfromMbedTLScapabilities*/
    /****************************************************************/

    #else/*MBEDTLS_PSA_CRYPTO_CONFIG*/

    /*
    *EnsurePSA_WANT_*definesaresetupproperlyifMBEDTLS_PSA_CRYPTO_CONFIG
    *isnotdefined
    */

    #ifdefined(MBEDTLS_CCM_C)
    #defineMBEDTLS_PSA_BUILTIN_ALG_CCM1
    #definePSA_WANT_ALG_CCM1
    #endif/*MBEDTLS_CCM_C*/

    #ifdefined(MBEDTLS_CMAC_C)
    #defineMBEDTLS_PSA_BUILTIN_ALG_CMAC1
    #definePSA_WANT_ALG_CMAC1
    #endif/*MBEDTLS_CMAC_C*/

    #ifdefined(MBEDTLS_ECDH_C)
    #defineMBEDTLS_PSA_BUILTIN_ALG_ECDH1
    #definePSA_WANT_ALG_ECDH1
    #endif/*MBEDTLS_ECDH_C*/

    #ifdefined(MBEDTLS_ECDSA_C)
    #defineMBEDTLS_PSA_BUILTIN_ALG_ECDSA1
    #definePSA_WANT_ALG_ECDSA1
    #definePSA_WANT_ALG_ECDSA_ANY1

    //OnlyaddinDETERMINISTICsupportifECDSAisalsoenabled
    #ifdefined(MBEDTLS_ECDSA_DETERMINISTIC)
    #defineMBEDTLS_PSA_BUILTIN_ALG_DETERMINISTIC_ECDSA1
    #definePSA_WANT_ALG_DETERMINISTIC_ECDSA1
    #endif/*MBEDTLS_ECDSA_DETERMINISTIC*/

    #endif/*MBEDTLS_ECDSA_C*/

    #ifdefined(MBEDTLS_ECP_C)
    #defineMBEDTLS_PSA_BUILTIN_KEY_TYPE_ECC_KEY_PAIR1
    #definePSA_WANT_KEY_TYPE_ECC_KEY_PAIR1
    #defineMBEDTLS_PSA_BUILTIN_KEY_TYPE_ECC_PUBLIC_KEY1
    #definePSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY1
    #endif/*MBEDTLS_ECP_C*/

    #ifdefined(MBEDTLS_GCM_C)
    #defineMBEDTLS_PSA_BUILTIN_ALG_GCM1
    #definePSA_WANT_ALG_GCM1
    #endif/*MBEDTLS_GCM_C*/

    #ifdefined(MBEDTLS_HKDF_C)
    #defineMBEDTLS_PSA_BUILTIN_ALG_HMAC1
    #definePSA_WANT_ALG_HMAC1
    #defineMBEDTLS_PSA_BUILTIN_ALG_HKDF1
    #definePSA_WANT_ALG_HKDF1
    #endif/*MBEDTLS_HKDF_C*/

    #ifdefined(MBEDTLS_MD_C)
    #defineMBEDTLS_PSA_BUILTIN_ALG_HMAC1
    #definePSA_WANT_ALG_HMAC1
    #definePSA_WANT_KEY_TYPE_HMAC1
    #defineMBEDTLS_PSA_BUILTIN_ALG_TLS12_PRF1
    #definePSA_WANT_ALG_TLS12_PRF1
    #defineMBEDTLS_PSA_BUILTIN_ALG_TLS12_PSK_TO_MS1
    #definePSA_WANT_ALG_TLS12_PSK_TO_MS1
    #endif/*MBEDTLS_MD_C*/

    #ifdefined(MBEDTLS_MD2_C)
    #defineMBEDTLS_PSA_BUILTIN_ALG_MD21
    #definePSA_WANT_ALG_MD21
    #endif

    #ifdefined(MBEDTLS_MD4_C)
    #defineMBEDTLS_PSA_BUILTIN_ALG_MD41
    #definePSA_WANT_ALG_MD41
    #endif

    #ifdefined(MBEDTLS_MD5_C)
    #defineMBEDTLS_PSA_BUILTIN_ALG_MD51
    #definePSA_WANT_ALG_MD51
    #endif

    #ifdefined(MBEDTLS_RIPEMD160_C)
    #defineMBEDTLS_PSA_BUILTIN_ALG_RIPEMD1601
    #definePSA_WANT_ALG_RIPEMD1601
    #endif

    #ifdefined(MBEDTLS_RSA_C)
    #ifdefined(MBEDTLS_PKCS1_V15)
    #defineMBEDTLS_PSA_BUILTIN_ALG_RSA_PKCS1V15_CRYPT1
    #definePSA_WANT_ALG_RSA_PKCS1V15_CRYPT1
    #defineMBEDTLS_PSA_BUILTIN_ALG_RSA_PKCS1V15_SIGN1
    #definePSA_WANT_ALG_RSA_PKCS1V15_SIGN1
    #definePSA_WANT_ALG_RSA_PKCS1V15_SIGN_RAW1
    #endif/*MBEDTLS_PKCS1_V15*/
    #ifdefined(MBEDTLS_PKCS1_V21)
    #defineMBEDTLS_PSA_BUILTIN_ALG_RSA_OAEP1
    #definePSA_WANT_ALG_RSA_OAEP1
    #defineMBEDTLS_PSA_BUILTIN_ALG_RSA_PSS1
    #definePSA_WANT_ALG_RSA_PSS1
    #endif/*MBEDTLS_PKCS1_V21*/
    #defineMBEDTLS_PSA_BUILTIN_KEY_TYPE_RSA_KEY_PAIR1
    #definePSA_WANT_KEY_TYPE_RSA_KEY_PAIR1
    #defineMBEDTLS_PSA_BUILTIN_KEY_TYPE_RSA_PUBLIC_KEY1
    #definePSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY1
    #endif/*MBEDTLS_RSA_C*/

    #ifdefined(MBEDTLS_SHA1_C)
    #defineMBEDTLS_PSA_BUILTIN_ALG_SHA_11
    #definePSA_WANT_ALG_SHA_11
    #endif

    #ifdefined(MBEDTLS_SHA256_C)
    #defineMBEDTLS_PSA_BUILTIN_ALG_SHA_2241
    #defineMBEDTLS_PSA_BUILTIN_ALG_SHA_2561
    #definePSA_WANT_ALG_SHA_2241
    #definePSA_WANT_ALG_SHA_2561
    #endif

    #ifdefined(MBEDTLS_SHA512_C)
    #if!defined(MBEDTLS_SHA512_NO_SHA384)
    #defineMBEDTLS_PSA_BUILTIN_ALG_SHA_3841
    #definePSA_WANT_ALG_SHA_3841
    #endif
    #defineMBEDTLS_PSA_BUILTIN_ALG_SHA_5121
    #definePSA_WANT_ALG_SHA_5121
    #endif

    #ifdefined(MBEDTLS_AES_C)
    #definePSA_WANT_KEY_TYPE_AES1
    #defineMBEDTLS_PSA_BUILTIN_KEY_TYPE_AES1
    #endif

    #ifdefined(MBEDTLS_ARC4_C)
    #definePSA_WANT_KEY_TYPE_ARC41
    #definePSA_WANT_ALG_STREAM_CIPHER1
    #defineMBEDTLS_PSA_BUILTIN_KEY_TYPE_ARC41
    #defineMBEDTLS_PSA_BUILTIN_ALG_STREAM_CIPHER1
    #endif

    #ifdefined(MBEDTLS_ARIA_C)
    #definePSA_WANT_KEY_TYPE_ARIA1
    #defineMBEDTLS_PSA_BUILTIN_KEY_TYPE_ARIA1
    #endif

    #ifdefined(MBEDTLS_CAMELLIA_C)
    #definePSA_WANT_KEY_TYPE_CAMELLIA1
    #defineMBEDTLS_PSA_BUILTIN_KEY_TYPE_CAMELLIA1
    #endif

    #ifdefined(MBEDTLS_DES_C)
    #definePSA_WANT_KEY_TYPE_DES1
    #defineMBEDTLS_PSA_BUILTIN_KEY_TYPE_DES1
    #endif

    #ifdefined(MBEDTLS_CHACHA20_C)
    #definePSA_WANT_KEY_TYPE_CHACHA201
    #definePSA_WANT_ALG_STREAM_CIPHER1
    #defineMBEDTLS_PSA_BUILTIN_KEY_TYPE_CHACHA201
    #defineMBEDTLS_PSA_BUILTIN_ALG_STREAM_CIPHER1
    #ifdefined(MBEDTLS_CHACHAPOLY_C)
    #definePSA_WANT_ALG_CHACHA20_POLY13051
    #defineMBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY13051
    #endif
    #endif

    #ifdefined(MBEDTLS_CIPHER_MODE_CBC)
    #defineMBEDTLS_PSA_BUILTIN_ALG_CBC_NO_PADDING1
    #definePSA_WANT_ALG_CBC_NO_PADDING1
    #ifdefined(MBEDTLS_CIPHER_PADDING_PKCS7)
    #defineMBEDTLS_PSA_BUILTIN_ALG_CBC_PKCS71
    #definePSA_WANT_ALG_CBC_PKCS71
    #endif
    #endif

    #ifdefined(MBEDTLS_AES_C)||defined(MBEDTLS_DES_C)||\
    defined(MBEDTLS_ARIA_C)||defined(MBEDTLS_CAMELLIA_C)
    #defineMBEDTLS_PSA_BUILTIN_ALG_ECB_NO_PADDING1
    #definePSA_WANT_ALG_ECB_NO_PADDING1
    #endif

    #ifdefined(MBEDTLS_CIPHER_MODE_CFB)
    #defineMBEDTLS_PSA_BUILTIN_ALG_CFB1
    #definePSA_WANT_ALG_CFB1
    #endif

    #ifdefined(MBEDTLS_CIPHER_MODE_CTR)
    #defineMBEDTLS_PSA_BUILTIN_ALG_CTR1
    #definePSA_WANT_ALG_CTR1
    #endif

    #ifdefined(MBEDTLS_CIPHER_MODE_OFB)
    #defineMBEDTLS_PSA_BUILTIN_ALG_OFB1
    #definePSA_WANT_ALG_OFB1
    #endif

    #ifdefined(MBEDTLS_ECP_DP_BP256R1_ENABLED)
    #defineMBEDTLS_PSA_BUILTIN_ECC_BRAINPOOL_P_R1_2561
    #definePSA_WANT_ECC_BRAINPOOL_P_R1_2561
    #endif

    #ifdefined(MBEDTLS_ECP_DP_BP384R1_ENABLED)
    #defineMBEDTLS_PSA_BUILTIN_ECC_BRAINPOOL_P_R1_3841
    #definePSA_WANT_ECC_BRAINPOOL_P_R1_3841
    #endif

    #ifdefined(MBEDTLS_ECP_DP_BP512R1_ENABLED)
    #defineMBEDTLS_PSA_BUILTIN_ECC_BRAINPOOL_P_R1_5121
    #definePSA_WANT_ECC_BRAINPOOL_P_R1_5121
    #endif

    #ifdefined(MBEDTLS_ECP_DP_CURVE25519_ENABLED)
    #defineMBEDTLS_PSA_BUILTIN_ECC_MONTGOMERY_2551
    #definePSA_WANT_ECC_MONTGOMERY_2551
    #endif

    /*Curve448isnotyetsupportedviathePSAAPI(https://github.com/Mbed-TLS/mbedtls/issues/4249)*/
    #if0&&defined(MBEDTLS_ECP_DP_CURVE448_ENABLED)
    #defineMBEDTLS_PSA_BUILTIN_ECC_MONTGOMERY_4481
    #definePSA_WANT_ECC_MONTGOMERY_4481
    #endif

    #ifdefined(MBEDTLS_ECP_DP_SECP192R1_ENABLED)
    #defineMBEDTLS_PSA_BUILTIN_ECC_SECP_R1_1921
    #definePSA_WANT_ECC_SECP_R1_1921
    #endif

    #ifdefined(MBEDTLS_ECP_DP_SECP224R1_ENABLED)
    #defineMBEDTLS_PSA_BUILTIN_ECC_SECP_R1_2241
    #definePSA_WANT_ECC_SECP_R1_2241
    #endif

    #ifdefined(MBEDTLS_ECP_DP_SECP256R1_ENABLED)
    #defineMBEDTLS_PSA_BUILTIN_ECC_SECP_R1_2561
    #definePSA_WANT_ECC_SECP_R1_2561
    #endif

    #ifdefined(MBEDTLS_ECP_DP_SECP384R1_ENABLED)
    #defineMBEDTLS_PSA_BUILTIN_ECC_SECP_R1_3841
    #definePSA_WANT_ECC_SECP_R1_3841
    #endif

    #ifdefined(MBEDTLS_ECP_DP_SECP521R1_ENABLED)
    #defineMBEDTLS_PSA_BUILTIN_ECC_SECP_R1_5211
    #definePSA_WANT_ECC_SECP_R1_5211
    #endif

    #ifdefined(MBEDTLS_ECP_DP_SECP192K1_ENABLED)
    #defineMBEDTLS_PSA_BUILTIN_ECC_SECP_K1_1921
    #definePSA_WANT_ECC_SECP_K1_1921
    #endif

    /*SECP224K1isbuggyviathePSAAPI(https://github.com/Mbed-TLS/mbedtls/issues/3541)*/
    #if0&&defined(MBEDTLS_ECP_DP_SECP224K1_ENABLED)
    #defineMBEDTLS_PSA_BUILTIN_ECC_SECP_K1_2241
    #definePSA_WANT_ECC_SECP_K1_2241
    #endif

    #ifdefined(MBEDTLS_ECP_DP_SECP256K1_ENABLED)
    #defineMBEDTLS_PSA_BUILTIN_ECC_SECP_K1_2561
    #definePSA_WANT_ECC_SECP_K1_2561
    #endif

    #endif/*MBEDTLS_PSA_CRYPTO_CONFIG*/

    /*Thesefeaturesarealwaysenabled.*/
    #definePSA_WANT_KEY_TYPE_DERIVE1
    #definePSA_WANT_KEY_TYPE_RAW_DATA1

    #ifdef__cplusplus
    }
    #endif

    #endif/*MBEDTLS_CONFIG_PSA_H*/