mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-07 06:42:56 +03:00
- Fixed selftest for CTR_DRBG
This commit is contained in:
@@ -470,7 +470,7 @@ int ctr_drbg_self_test( int verbose )
|
|||||||
printf( " CTR_DRBG (PR = TRUE) : " );
|
printf( " CTR_DRBG (PR = TRUE) : " );
|
||||||
|
|
||||||
test_offset = 0;
|
test_offset = 0;
|
||||||
if( ctr_drbg_init( &ctx, ctr_drbg_self_test_entropy, entropy_source_pr, nonce_pers_pr, 16 ) != 0 )
|
if( ctr_drbg_init_entropy_len( &ctx, ctr_drbg_self_test_entropy, entropy_source_pr, nonce_pers_pr, 16, 32 ) != 0 )
|
||||||
{
|
{
|
||||||
if( verbose != 0 )
|
if( verbose != 0 )
|
||||||
printf( "failed\n" );
|
printf( "failed\n" );
|
||||||
@@ -513,7 +513,7 @@ int ctr_drbg_self_test( int verbose )
|
|||||||
printf( " CTR_DRBG (PR = FALSE): " );
|
printf( " CTR_DRBG (PR = FALSE): " );
|
||||||
|
|
||||||
test_offset = 0;
|
test_offset = 0;
|
||||||
if( ctr_drbg_init( &ctx, ctr_drbg_self_test_entropy, entropy_source_nopr, nonce_pers_nopr, 16 ) != 0 )
|
if( ctr_drbg_init_entropy_len( &ctx, ctr_drbg_self_test_entropy, entropy_source_nopr, nonce_pers_nopr, 16, 32 ) != 0 )
|
||||||
{
|
{
|
||||||
if( verbose != 0 )
|
if( verbose != 0 )
|
||||||
printf( "failed\n" );
|
printf( "failed\n" );
|
||||||
|
Reference in New Issue
Block a user