From e88186d2ff70116975598d73908aa89363030d37 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Sun, 22 Jan 2012 20:29:47 +0000 Subject: [PATCH] - Fixed selftest for CTR_DRBG --- library/ctr_drbg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/ctr_drbg.c b/library/ctr_drbg.c index 5b610a20f..882d68618 100644 --- a/library/ctr_drbg.c +++ b/library/ctr_drbg.c @@ -470,7 +470,7 @@ int ctr_drbg_self_test( int verbose ) printf( " CTR_DRBG (PR = TRUE) : " ); 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 ) printf( "failed\n" ); @@ -513,7 +513,7 @@ int ctr_drbg_self_test( int verbose ) printf( " CTR_DRBG (PR = FALSE): " ); 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 ) printf( "failed\n" );