From d7d3d082ad0228fb21f20d3a1516d299fceafedd Mon Sep 17 00:00:00 2001 From: Przemyslaw Bida Date: Thu, 10 Aug 2023 11:03:14 +0200 Subject: [PATCH] kconfig: openthread: add default configs for nRf53 ns. This commit adds needed nRF53 TFM crypto related flags as defaults when using openthread. Signed-off-by: Przemyslaw Bida --- subsys/net/openthread/Kconfig.defconfig | 80 +++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/subsys/net/openthread/Kconfig.defconfig b/subsys/net/openthread/Kconfig.defconfig index b6334ae5982..5b122a02087 100644 --- a/subsys/net/openthread/Kconfig.defconfig +++ b/subsys/net/openthread/Kconfig.defconfig @@ -200,6 +200,86 @@ endif endif +if MBEDTLS_PSA_CRYPTO_C + +config PSA_WANT_GENERATE_RANDOM + bool + default y + +config PSA_WANT_ALG_CCM + bool + default y + +config PSA_WANT_ALG_GCM + bool + default y + +config PSA_WANT_ALG_CHACHA20_POLY1305 + bool + default y + +config PSA_WANT_ALG_CMAC + bool + default y + +config PSA_WANT_ALG_HMAC + bool + default y + +config PSA_WANT_ALG_SHA_256 + bool + default y + +config PSA_WANT_ALG_ECB_NO_PADDING + bool + default y + +config PSA_WANT_ALG_CBC_NO_PADDING + bool + default y + +config PSA_WANT_ALG_CBC_PKCS7 + bool + default y + +config PSA_WANT_ALG_CTR + bool + default y + +config PSA_WANT_ALG_HKDF + bool + default y + +config PSA_WANT_ALG_TLS12_PRF + bool + default y + +config PSA_WANT_ALG_ECDH + bool + default y + +config PSA_WANT_ALG_ECDSA + bool + default y + +config PSA_WANT_ALG_DETERMINISTIC_ECDSA + bool + default y + +config PSA_WANT_ECC_SECP_R1_256 + bool + default y + +config PSA_WANT_ALG_STREAM_CIPHER + bool + default y + +config PSA_WANT_ALG_TLS12_PSK_TO_MS + bool + default y + +endif + config OPENTHREAD_TCP_ENABLE select EXPERIMENTAL