Skip to content

Commit 3247a1d

Browse files
JordanYatesnashif
authored andcommitted
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 <[email protected]>
1 parent 6784ed8 commit 3247a1d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

modules/mbedtls/Kconfig.tls-generic

+3
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ config MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
118118
bool "ECJPAKE based ciphersuite modes"
119119
depends on MBEDTLS_ECJPAKE_C
120120

121+
config MBEDTLS_HKDF_C
122+
bool "HMAC-based Extract-and-Expand Key Derivation Function"
123+
121124
comment "Elliptic curve libraries"
122125

123126
config MBEDTLS_ECDH_C

modules/mbedtls/configs/config-tls-generic.h

+4
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@
138138
#define MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
139139
#endif
140140

141+
#if defined(CONFIG_MBEDTLS_HKDF_C)
142+
#define MBEDTLS_HKDF_C
143+
#endif
144+
141145
/* Supported cipher modes */
142146

143147
#if defined(CONFIG_MBEDTLS_CIPHER_AES_ENABLED)

0 commit comments

Comments
 (0)