zephyr/modules/mbedtls
Rajkumar Kanagaraj 80a06b2533 modules: mbedtls: build MbedTLS as three libraries
Previously, Zephyr's mbedtls module's cmake build created a single static
library, rather than the collection of libraries (mbedtls, mbedcrypto,
and mbedx509) that upstream mbedTLS cmake provides.

To give better control at link time to choose the required libraries to
link, this commit updates the Zephyr MbedTLS module to also define a
collection of libraries rather than a single static MbedTLS library.

One benefit of the three library approach is that if mbedTLS is used in
Zephyr in the the non-secure application in addition to TFM's PSA Crypto
API on the secure side with TF-M, PSA API calls on the non-secure side
will be redirected to the TFM PSA implementation, and the mbedcrypto
library will only be linked to the secure (TF-M) binary, with the mbedtls
and mbedx509 libraries linked against the non-secure (Zephyr) binary,
enabling TLS calls to PSA crypto to be redirected to mbedcrypto in the
secure partition and avoiding function duplication in the non-secure
binary.

Signed-off-by: Rajkumar Kanagaraj <rajkumar.kanagaraj@linaro.org>
2023-05-26 14:00:18 -04:00
..
configs Bluetooth: Mesh: add experimental support mbedtls psa 2023-04-17 16:31:20 +02:00
include modules: mbedtls: move debug log hook implementation to modules/mbedtls/ 2022-08-17 12:03:52 +02:00
CMakeLists.txt modules: mbedtls: build MbedTLS as three libraries 2023-05-26 14:00:18 -04:00
debug.c modules: mbedtls: support stripping newline from debug log messages 2022-08-17 12:03:52 +02:00
Kconfig mbedtls: Remove dependency on MBEDTLS_BUILTIN for MBEDTLS_DEBUG 2023-03-10 09:30:32 +01:00
Kconfig.tls-generic modules: mbedtls: Allow for enabling LMS algorithms 2023-02-23 10:51:31 +01:00
shell.c modules: migrate includes to <zephyr/...> 2022-05-06 19:57:47 +02:00
zephyr_init.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00