mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-30 05:14:15 +01:00
Add rng for the test suites
This commit is contained in:
parent
39a9d40f84
commit
f098b26b83
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user