Add rng for the test suites

This commit is contained in:
Jarno Lamsa 2019-10-04 12:51:45 +03:00
parent 39a9d40f84
commit f098b26b83

View File

@ -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
*