diff --git a/modules/mbedtls/Kconfig.tls-generic b/modules/mbedtls/Kconfig.tls-generic index 3c0e17c0fe..3f48996fcd 100644 --- a/modules/mbedtls/Kconfig.tls-generic +++ b/modules/mbedtls/Kconfig.tls-generic @@ -118,6 +118,9 @@ config MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED bool "ECJPAKE based ciphersuite modes" depends on MBEDTLS_ECJPAKE_C +config MBEDTLS_HKDF_C + bool "HMAC-based Extract-and-Expand Key Derivation Function" + comment "Elliptic curve libraries" config MBEDTLS_ECDH_C diff --git a/modules/mbedtls/configs/config-tls-generic.h b/modules/mbedtls/configs/config-tls-generic.h index 7a7294aba8..eeb15571e4 100644 --- a/modules/mbedtls/configs/config-tls-generic.h +++ b/modules/mbedtls/configs/config-tls-generic.h @@ -138,6 +138,10 @@ #define MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED #endif +#if defined(CONFIG_MBEDTLS_HKDF_C) +#define MBEDTLS_HKDF_C +#endif + /* Supported cipher modes */ #if defined(CONFIG_MBEDTLS_CIPHER_AES_ENABLED)