1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +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

@ -540,7 +540,7 @@ static int pk_get_rsapubkey( unsigned char **p,
*p += len;
if( ( ret = mbedtls_rsa_complete( rsa, NULL, NULL ) ) != 0 )
if( ( ret = mbedtls_rsa_complete( rsa ) ) != 0 )
return( MBEDTLS_ERR_PK_INVALID_PUBKEY );
if( *p != end )
@ -745,7 +745,7 @@ static int pk_parse_key_pkcs1_der( mbedtls_rsa_context *rsa,
p += len;
/* Complete the RSA private key */
if( ( ret = mbedtls_rsa_complete( rsa, NULL, NULL ) ) != 0 )
if( ( ret = mbedtls_rsa_complete( rsa ) ) != 0 )
goto cleanup;
/* Check optional parameters */