mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Simplify usage of DHM blinding
This commit is contained in:
parent
c83e418149
commit
15d5de1969
8 changed files with 62 additions and 57 deletions
|
|
@ -558,7 +558,7 @@ int main( int argc, char *argv[] )
|
|||
{
|
||||
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 @@ int main( int argc, char *argv[] )
|
|||
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 @@ int main( int argc, char *argv[] )
|
|||
{
|
||||
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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue