Type safety for rsa-tfm.c
This commit is contained in:
@@ -408,7 +408,7 @@ imath_rsa_private_decrypt(int flen, const unsigned char* from,
|
|||||||
{
|
{
|
||||||
unsigned char *ptr;
|
unsigned char *ptr;
|
||||||
mp_result res;
|
mp_result res;
|
||||||
size_t size;
|
int size;
|
||||||
mpz_t in, out, n, e, b, bi;
|
mpz_t in, out, n, e, b, bi;
|
||||||
int blinding = (rsa->flags & RSA_FLAG_NO_BLINDING) == 0;
|
int blinding = (rsa->flags & RSA_FLAG_NO_BLINDING) == 0;
|
||||||
int do_unblind = 0;
|
int do_unblind = 0;
|
||||||
|
@@ -321,7 +321,7 @@ tfm_rsa_private_decrypt(int flen, const unsigned char* from,
|
|||||||
{
|
{
|
||||||
unsigned char *ptr;
|
unsigned char *ptr;
|
||||||
int res;
|
int res;
|
||||||
size_t size;
|
int size;
|
||||||
fp_int in, out, n, e;
|
fp_int in, out, n, e;
|
||||||
|
|
||||||
if (padding != RSA_PKCS1_PADDING)
|
if (padding != RSA_PKCS1_PADDING)
|
||||||
|
Reference in New Issue
Block a user