Adapt uses of `mbedtls_rsa_complete` to removed PRNG argument
diff --git a/programs/pkey/dh_server.c b/programs/pkey/dh_server.c
index 49066cd..a8ee8fd 100644
--- a/programs/pkey/dh_server.c
+++ b/programs/pkey/dh_server.c
@@ -149,8 +149,7 @@
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 );
diff --git a/programs/pkey/rsa_decrypt.c b/programs/pkey/rsa_decrypt.c
index 48275bc..2da3fbf 100644
--- a/programs/pkey/rsa_decrypt.c
+++ b/programs/pkey/rsa_decrypt.c
@@ -142,8 +142,7 @@
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 );
diff --git a/programs/pkey/rsa_sign.c b/programs/pkey/rsa_sign.c
index ff64736..89018cb 100644
--- a/programs/pkey/rsa_sign.c
+++ b/programs/pkey/rsa_sign.c
@@ -115,7 +115,7 @@
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 );