mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
Make entropy bias self test poll multiple times
Instead of polling the hardware entropy source a single time and comparing the output with itself, the source is polled at least twice and make sure that the separate outputs are different.
This commit is contained in:
@@ -375,12 +375,6 @@ int main( int argc, char *argv[] )
|
||||
{
|
||||
suites_failed++;
|
||||
}
|
||||
#if !defined(MBEDTLS_TEST_NULL_ENTROPY) && defined(MBEDTLS_ENTROPY_HARDWARE_ALT)
|
||||
if( mbedtls_entropy_self_test_bias( v ) != 0)
|
||||
{
|
||||
suites_failed++;
|
||||
}
|
||||
#endif
|
||||
suites_tested++;
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user