From f098b26b83649e940fe303750cca91f1fca83632 Mon Sep 17 00:00:00 2001 From: Jarno Lamsa Date: Fri, 4 Oct 2019 12:51:45 +0300 Subject: [PATCH] Add rng for the test suites --- tests/suites/helpers.function | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/suites/helpers.function b/tests/suites/helpers.function index 6ead2d349..43426f5ae 100644 --- a/tests/suites/helpers.function +++ b/tests/suites/helpers.function @@ -561,6 +561,16 @@ static int uecc_rng_wrapper( uint8_t *dest, unsigned int size ) } #endif /* MBEDTLS_USE_TINYCRYPT */ +#if defined(MBEDTLS_ENTROPY_HARDWARE_ALT) +int mbedtls_hardware_poll( void *data, unsigned char *output, + size_t len, size_t *olen ) +{ + (void) data; + *olen = len; + return( rnd_std_rand( NULL, output, len ) ); +} +#endif + /** * This function only returns zeros *