diff --git a/lib/hcrypto/rsa-imath.c b/lib/hcrypto/rsa-imath.c index 901e9c359..23d535270 100644 --- a/lib/hcrypto/rsa-imath.c +++ b/lib/hcrypto/rsa-imath.c @@ -408,7 +408,7 @@ imath_rsa_private_decrypt(int flen, const unsigned char* from, { unsigned char *ptr; mp_result res; - size_t size; + int size; mpz_t in, out, n, e, b, bi; int blinding = (rsa->flags & RSA_FLAG_NO_BLINDING) == 0; int do_unblind = 0; diff --git a/lib/hcrypto/rsa-tfm.c b/lib/hcrypto/rsa-tfm.c index 796985f8b..32c118c45 100644 --- a/lib/hcrypto/rsa-tfm.c +++ b/lib/hcrypto/rsa-tfm.c @@ -321,7 +321,7 @@ tfm_rsa_private_decrypt(int flen, const unsigned char* from, { unsigned char *ptr; int res; - size_t size; + int size; fp_int in, out, n, e; if (padding != RSA_PKCS1_PADDING)