mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-05-11 16:32:17 +00: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 */
|
#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
|
* This function only returns zeros
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue