modules: mbedtls: option for MBEDTLS_HKDF_C

Add kconfig option to enabled `MBEDTLS_HKDF_C`, HMAC-based
Extract-and-Expand Key Derivation Function.

Signed-off-by: Jordan Yates <jordan@embeint.com>
This commit is contained in:
Jordan Yates 2024-04-02 14:20:22 +10:00 committed by Anas Nashif
parent 6784ed8202
commit 3247a1db81
2 changed files with 7 additions and 0 deletions

View file

@ -118,6 +118,9 @@ config MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
bool "ECJPAKE based ciphersuite modes" bool "ECJPAKE based ciphersuite modes"
depends on MBEDTLS_ECJPAKE_C depends on MBEDTLS_ECJPAKE_C
config MBEDTLS_HKDF_C
bool "HMAC-based Extract-and-Expand Key Derivation Function"
comment "Elliptic curve libraries" comment "Elliptic curve libraries"
config MBEDTLS_ECDH_C config MBEDTLS_ECDH_C

View file

@ -138,6 +138,10 @@
#define MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED #define MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
#endif #endif
#if defined(CONFIG_MBEDTLS_HKDF_C)
#define MBEDTLS_HKDF_C
#endif
/* Supported cipher modes */ /* Supported cipher modes */
#if defined(CONFIG_MBEDTLS_CIPHER_AES_ENABLED) #if defined(CONFIG_MBEDTLS_CIPHER_AES_ENABLED)