tests: rename mbedtls_platform_get_entropy_alt()

Since mbedtls_platform_get_entropy_alt() is being renamed to
mbedtls_platform_get_entropy() on the tf-psa-crypto repo, this commit
adapts to testing support.

Signed-off-by: Valerio Setti <[email protected]>
This commit is contained in:
Valerio Setti
2025-04-17 16:49:09 +02:00
parent 566659e20e
commit 6f0b670d3a
2 changed files with 7 additions and 7 deletions
@@ -41,16 +41,16 @@ void mbedtls_test_disable_insecure_external_rng(void);
#include <mbedtls/platform.h>
/* Force return value or entropy content in mbedtls_platform_get_entropy_alt()
/* Force return value or entropy content in mbedtls_platform_get_entropy()
* as follows:
* - if fail == 0 && forced_entropy_content == 0 then
* mbedtls_platform_get_entropy_alt() behaves properly.
* mbedtls_platform_get_entropy() behaves properly.
* - if fail != 0 then MBEDTLS_ERR_ENTROPY_SOURCE_FAILED is returned.
* - if forced_entropy_content != 0 then
* - return value is success (0) but
* - returned entropy_content will be equal to forced_entropy_content.
*/
void mbedtls_test_get_entropy_alt_force(int fail, size_t forced_entropy_content);
void mbedtls_test_get_entropy_force(int fail, size_t forced_entropy_content);
#endif /* MBEDTLS_PLATFORM_GET_ENTROPY_ALT */