replace user rand by platform rand in ecc delays

Signed-off-by: Shelly Liberman <shelly.liberman@arm.com>
This commit is contained in:
Shelly Liberman 2020-09-13 15:23:56 +03:00
parent 6f3a987ae3
commit 05beb9ac70
3 changed files with 30 additions and 1 deletions

View file

@ -300,6 +300,15 @@ uint32_t mbedtls_platform_random_in_range( uint32_t num );
*/
void mbedtls_platform_random_delay( void );
/**
* \brief RNG-function for getting a random buffer.
*
* \param buf Buffer for random data
* \param len Length of the buffer in bytes
*
*/
void mbedtls_platform_random_buf( uint8_t *buf, size_t len);
#if defined(MBEDTLS_HAVE_TIME_DATE)
/**
* \brief Platform-specific implementation of gmtime_r()