Skip to content

Commit 8e18c5c

Browse files
mfischercarlescufi
authored andcommitted
modules: mbedtls: Allow for enabling LMS algorithms
Allow for enabling LMS algorithm support via KConfig Signed-off-by: Moritz Fischer <[email protected]>
1 parent a50791d commit 8e18c5c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

modules/mbedtls/Kconfig.tls-generic

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,4 +458,9 @@ config MBEDTLS_PSA_CRYPTO_C
458458
depends on MBEDTLS_CTR_DRBG_ENABLED || MBEDTLS_HMAC_DRBG_ENABLED
459459
default y if UOSCORE || UEDHOC
460460

461+
config MBEDTLS_LMS
462+
bool "Support LMS signature schemes"
463+
depends on MBEDTLS_PSA_CRYPTO_C
464+
depends on MBEDTLS_HASH_SHA256_ENABLED
465+
461466
endmenu

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
#define MBEDTLS_HAVE_ASM
2929
#endif
3030

31+
#if defined(CONFIG_MBEDTLS_LMS)
32+
#define MBEDTLS_LMS_C
33+
#define PSA_WANT_ALG_SHA_256 1
34+
#endif
35+
3136
#if defined(CONFIG_MBEDTLS_HAVE_TIME_DATE)
3237
#define MBEDTLS_HAVE_TIME
3338
#define MBEDTLS_HAVE_TIME_DATE

0 commit comments

Comments
 (0)