From c429269f0f682aebbfb5d0e839bea1ca90601d59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Audun=20Kvamtr=C3=B8?= Date: Wed, 25 Sep 2024 08:41:37 +0200 Subject: [PATCH] [nrf noup] matter: Enable MBEDTLS_LEGACY_CRYPTO_C MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -The Kconfig CHIP_CRYPTO_PSA is not a configuration that will enable a pure PSA crypto build. There are still features required for legacy support. This commit enabled MBEDTLS_LEGACY_CRYPTO_C for now to ensure access to ECP (and mbedtls_ecp_muladd) Signed-off-by: Frank Audun Kvamtrø --- config/nrfconnect/chip-module/Kconfig.defaults | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/nrfconnect/chip-module/Kconfig.defaults b/config/nrfconnect/chip-module/Kconfig.defaults index 1bcba3ea09..f3ab534ca9 100644 --- a/config/nrfconnect/chip-module/Kconfig.defaults +++ b/config/nrfconnect/chip-module/Kconfig.defaults @@ -380,6 +380,7 @@ config MBEDTLS_ECP_C default y config MBEDTLS_ECP_DP_SECP256R1_ENABLED + bool default y endif # !CHIP_CRYPTO_PSA @@ -422,6 +423,10 @@ config MBEDTLS_SSL_COOKIE_C config MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH default y +config MBEDTLS_LEGACY_CRYPTO_C + bool + default y + # ============================================================================== # Logging configuration # ==============================================================================