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:
@ -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 */
|
||||
|
Reference in New Issue
Block a user