1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Adapt uses of mbedtls_rsa_complete to removed PRNG argument

This commit is contained in:
Hanno Becker
2017-10-10 16:56:22 +01:00
parent f9e184b9df
commit 7f25f850ac
9 changed files with 19 additions and 25 deletions

View File

@@ -149,8 +149,7 @@ int main( void )
goto exit;
}
if( ( ret = mbedtls_rsa_complete( &rsa, mbedtls_ctr_drbg_random,
&ctr_drbg ) ) != 0 )
if( ( ret = mbedtls_rsa_complete( &rsa ) ) != 0 )
{
mbedtls_printf( " failed\n ! mbedtls_rsa_complete returned %d\n\n",
ret );

View File

@@ -142,8 +142,7 @@ int main( int argc, char *argv[] )
goto exit;
}
if( ( return_val = mbedtls_rsa_complete( &rsa, mbedtls_ctr_drbg_random,
&ctr_drbg ) ) != 0 )
if( ( return_val = mbedtls_rsa_complete( &rsa ) ) != 0 )
{
mbedtls_printf( " failed\n ! mbedtls_rsa_complete returned %d\n\n",
return_val );

View File

@@ -115,7 +115,7 @@ int main( int argc, char *argv[] )
goto exit;
}
if( ( ret = mbedtls_rsa_complete( &rsa, NULL, NULL ) ) != 0 )
if( ( ret = mbedtls_rsa_complete( &rsa ) ) != 0 )
{
mbedtls_printf( " failed\n ! mbedtls_rsa_complete returned %d\n\n",
ret );