Skip to content

Commit

Permalink
[nrf noup] Updated Matter for single Mbed TLS config
Browse files Browse the repository at this point in the history
-This allows for PSA crypto and legacy APIs living side-by-side
 but will be reworked once PSA Crypto APIs is default and legacy
 configs and APIs becomes deprecated

Signed-off-by: Frank Audun Kvamtrø <[email protected]>
  • Loading branch information
frkv committed Dec 5, 2023
1 parent 340a3a2 commit ac3344e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/nrfconnect/chip-module/Kconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,21 @@ config MBEDTLS_SHA1_C
config MBEDTLS_SHA256_C
default y

config MBEDTLS_HKDF_C
default y

config MBEDTLS_PK_C
default y

config MBEDTLS_PK_WRITE_C
default y

config MBEDTLS_PK_PARSE_C
default y

config MBEDTLS_PKCS5_C
default y

config MBEDTLS_X509_CREATE_C
default y if !CHIP_CRYPTO_PSA

Expand All @@ -328,6 +337,9 @@ config MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG
config MBEDTLS_SSL_OUT_CONTENT_LEN
default 900 if CHIP_WIFI

config MBEDTLS_TLS_LIBRARY
default y

# Disable unneeded crypto operations

config MBEDTLS_SHA384_C
Expand Down
1 change: 1 addition & 0 deletions config/nrfconnect/chip-module/Kconfig.features
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ config CHIP_WIFI
imply NORDIC_SECURITY_BACKEND
imply MBEDTLS_ENTROPY_C
imply MBEDTLS_PSA_CRYPTO_C
imply PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY
imply NET_STATISTICS
imply NET_L2_ETHERNET
imply NET_PKT_TXTIME
Expand Down

0 comments on commit ac3344e

Please sign in to comment.