mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-01-04 13:45:05 +01: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:
parent
b34e42e69e
commit
e7723ec284
4 changed files with 72 additions and 66 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue