mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 18:15:40 +01:00
Revert "Disable use of HRNG in SCA-hardened mem-functions"
This reverts commit 1e96b46b03
.
This commit is contained in:
parent
a3877007e6
commit
de657fca6b
@ -142,10 +142,7 @@ int mbedtls_platform_memcmp( const void *buf1, const void *buf2, size_t num )
|
||||
|
||||
uint32_t mbedtls_platform_random_in_range( size_t num )
|
||||
{
|
||||
/* Temporary force the dummy version - drawing directly from the HRNG
|
||||
* seems to be causing issues, avoid doing that until we understood the
|
||||
* issue, and perhaps we'll need to draw from a DRBG instead. */
|
||||
#if 1 || !defined(MBEDTLS_ENTROPY_HARDWARE_ALT)
|
||||
#if !defined(MBEDTLS_ENTROPY_HARDWARE_ALT)
|
||||
(void) num;
|
||||
return 0;
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user