1
0
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:
Andres AG
2016-08-25 10:18:50 +01:00
committed by Simon Butcher
parent b34e42e69e
commit e7723ec284
4 changed files with 72 additions and 66 deletions

View File

@@ -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