zephyr/modules/mbedtls
Valerio Setti 46b8536a27 mbedtls: add TEST_CSPRNG_GENERATOR to the list of non-CS sources
Strong entropy/random sources are a must to get secure crypto algorithms,
but sometimes its useful to allow non-CS sources as well for sake of
test purposes. MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG_ALLOW_NON_CSPRNG was
designed exactly for this scope, but recently also TEST_CSPRNG_GENERATOR
was added and it acts similarly:

- MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG_ALLOW_NON_CSPRNG operates in
  "zephyr/modules/mbedtls/zephyr_entropy.c" allowing
  mbedtls_psa_external_get_random() to try both sys_csrand_get() first
  and then sys_rand_get() as fallback.

- TEST_CSPRNG_GENERATOR instead operates in
  "zephyr/subsys/random/random_test_csprng.c" and it basically wraps
  the call to sys_csrand_get() with a call to sys_rand_get().

Albeit they operate at different level, the result is identical, so
Mbed TLS should support both of them when MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG
is set and there is no CSPRNG_ENABLED.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2024-12-19 17:53:37 +01:00
..
configs modules: mbedtls: fix ITS configuration on POSIX architecture 2024-12-02 06:09:13 +01:00
include mbedtls: add CONFIG_MBEDTLS_INIT 2023-07-06 11:45:08 +02:00
CMakeLists.txt mbedtls: add TEST_CSPRNG_GENERATOR to the list of non-CS sources 2024-12-19 17:53:37 +01:00
create_psa_files.py mbedtls: rename automatically generated Kconfig file for PSA symbols 2024-12-16 22:56:43 +01:00
debug.c modules: mbedtls: support stripping newline from debug log messages 2022-08-17 12:03:52 +02:00
Kconfig mbedtls: rename automatically generated Kconfig file for PSA symbols 2024-12-16 22:56:43 +01:00
Kconfig.psa.auto mbedtls: rename automatically generated Kconfig file for PSA symbols 2024-12-16 22:56:43 +01:00
Kconfig.psa.logic mbedtls: auto-enable PSA_WANT_KEY_TYPE_xxx_KEY_PAIR_BASIC 2024-12-16 22:56:43 +01:00
Kconfig.tls-generic mbedtls: select ENTROPY_GENERATOR when a driver is available 2024-12-19 17:53:37 +01:00
shell.c
zephyr_entropy.c mbedtls: move entropy polling functions to a dedicated file 2024-08-24 07:16:51 -04:00
zephyr_init.c mbedtls: add ability to use custom memory section for mbedtls heap 2024-09-13 09:18:11 +02:00