modules: mbedtls: Add Kconfig entry for PSA API

Add Kconfig option to enable PSA API in mbed TLS.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
Robert Lubos 2022-04-27 15:24:00 +02:00 committed by Carles Cufí
commit fc81f67e9a
2 changed files with 9 additions and 0 deletions

View file

@ -430,4 +430,9 @@ config MBEDTLS_SSL_EXTENDED_MASTER_SECRET
which ensures that master secrets are different for every
connection and every session.
config MBEDTLS_PSA_CRYPTO_C
bool "Platform Security Architecture cryptography API"
depends on MBEDTLS_ENTROPY_ENABLED
depends on MBEDTLS_CTR_DRBG_ENABLED || MBEDTLS_HMAC_DRBG_ENABLED
endmenu

View file

@ -449,6 +449,10 @@
#define MBEDTLS_SSL_EXTENDED_MASTER_SECRET
#endif
#if defined(CONFIG_MBEDTLS_PSA_CRYPTO_C)
#define MBEDTLS_PSA_CRYPTO_C
#endif
/* User config file */
#if defined(CONFIG_MBEDTLS_USER_CONFIG_FILE)