From a6dbddce0c79716e2b79cbfa3d318e17c705f36c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 6 Jul 2015 11:20:33 +0200 Subject: [PATCH] Fix benchmark.c for removal of small DH params --- programs/test/benchmark.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/programs/test/benchmark.c b/programs/test/benchmark.c index 953da6a77..9838b84da 100644 --- a/programs/test/benchmark.c +++ b/programs/test/benchmark.c @@ -588,7 +588,7 @@ int main( int argc, char *argv[] ) { int keysize; mbedtls_rsa_context rsa; - for( keysize = 1024; keysize <= 4096; keysize *= 2 ) + for( keysize = 2048; keysize <= 4096; keysize *= 2 ) { mbedtls_snprintf( title, sizeof( title ), "RSA-%d", keysize ); @@ -611,14 +611,12 @@ int main( int argc, char *argv[] ) #if defined(MBEDTLS_DHM_C) && defined(MBEDTLS_BIGNUM_C) if( todo.dhm ) { - int dhm_sizes[DHM_SIZES] = { 1024, 2048, 3072 }; + int dhm_sizes[DHM_SIZES] = { 2048, 3072 }; const char *dhm_P[DHM_SIZES] = { - MBEDTLS_DHM_RFC5114_MODP_1024_P, MBEDTLS_DHM_RFC3526_MODP_2048_P, MBEDTLS_DHM_RFC3526_MODP_3072_P, }; const char *dhm_G[DHM_SIZES] = { - MBEDTLS_DHM_RFC5114_MODP_1024_G, MBEDTLS_DHM_RFC3526_MODP_2048_G, MBEDTLS_DHM_RFC3526_MODP_3072_G, };