Simplify usage of DHM blinding
diff --git a/programs/test/benchmark.c b/programs/test/benchmark.c
index 52aecf2..436912a 100644
--- a/programs/test/benchmark.c
+++ b/programs/test/benchmark.c
@@ -558,7 +558,7 @@
{
olen = sizeof( buf );
ret |= dhm_make_public( &dhm, dhm.len, buf, dhm.len, myrand, NULL );
- ret |= dhm_calc_secret( &dhm, buf, &olen, NULL, NULL );
+ ret |= dhm_calc_secret( &dhm, buf, &olen, myrand, NULL );
}
if( ret != 0 )
@@ -617,7 +617,7 @@
for( i = 1; ! alarmed && ! ret ; i++ )
{
olen = sizeof( buf );
- ret |= dhm_calc_secret( &dhm, buf, &olen, NULL, NULL );
+ ret |= dhm_calc_secret( &dhm, buf, &olen, myrand, NULL );
}
if( ret != 0 )
@@ -643,7 +643,7 @@
{
olen = sizeof( buf );
ret |= dhm_make_public( &dhm, dhm.len, buf, dhm.len, myrand, NULL );
- ret |= dhm_calc_secret( &dhm, buf, &olen, NULL, NULL );
+ ret |= dhm_calc_secret( &dhm, buf, &olen, myrand, NULL );
}
if( ret != 0 )