Update benchmarks for new prototypes

This commit is contained in:
Manuel Pégourié-Gonnard 2013-09-04 17:19:18 +02:00
parent ed8a02bfae
commit cac5f7d737
2 changed files with 7 additions and 8 deletions

View file

@ -446,7 +446,7 @@ int main( int argc, char *argv[] )
for( i = 1; ! alarmed; i++ )
{
buf[0] = 0;
rsa_private( &rsa, buf, buf );
rsa_private( &rsa, myrand, NULL, buf, buf );
}
printf( "%9lu private/s\n", i / 3 );
@ -475,7 +475,7 @@ int main( int argc, char *argv[] )
for( i = 1; ! alarmed; i++ )
{
buf[0] = 0;
rsa_private( &rsa, buf, buf );
rsa_private( &rsa, myrand, NULL, buf, buf );
}
printf( "%9lu private/s\n", i / 3 );
@ -504,7 +504,7 @@ int main( int argc, char *argv[] )
for( i = 1; ! alarmed; i++ )
{
buf[0] = 0;
rsa_private( &rsa, buf, buf );
rsa_private( &rsa, myrand, NULL, buf, buf );
}
printf( "%9lu private/s\n", i / 3 );
@ -528,7 +528,7 @@ int main( int argc, char *argv[] )
for( i = 1; ! alarmed; i++ )
{
dhm_make_public( &dhm, dhm.len, buf, dhm.len, myrand, NULL );
dhm_calc_secret( &dhm, buf, &olen );
dhm_calc_secret( &dhm, buf, &olen, NULL, NULL );
}
printf( "%9lu handshake/s\n", i / 3 );
@ -550,13 +550,12 @@ int main( int argc, char *argv[] )
for( i = 1; ! alarmed; i++ )
{
dhm_make_public( &dhm, dhm.len, buf, dhm.len, myrand, NULL );
dhm_calc_secret( &dhm, buf, &olen );
dhm_calc_secret( &dhm, buf, &olen, NULL, NULL );
}
printf( "%9lu handshake/s\n", i / 3 );
dhm_free( &dhm );
memset( &dhm, 0, sizeof( dhm_context ) );
mpi_read_string( &dhm.P, 16, POLARSSL_DHM_RFC3526_MODP_3072_P );
@ -572,7 +571,7 @@ int main( int argc, char *argv[] )
for( i = 1; ! alarmed; i++ )
{
dhm_make_public( &dhm, dhm.len, buf, dhm.len, myrand, NULL );
dhm_calc_secret( &dhm, buf, &olen );
dhm_calc_secret( &dhm, buf, &olen, NULL, NULL );
}
printf( "%9lu handshake/s\n", i / 3 );

View file

@ -161,7 +161,7 @@ static void ecp_bench_case( size_t dp, const char *s, const char *m )
set_alarm( 3 );
for( i = 1; ! alarmed; i++ )
ecp_mul( &grp, &R, &M, &grp.G );
ecp_mul( &grp, &R, &M, &grp.G, NULL, NULL );
printf( "%9lu mul/s\n", i / 3 );