From e512f5e8261b5211e4d1f678dfbb78cf89793c97 Mon Sep 17 00:00:00 2001 From: Asanka Herath Date: Wed, 2 Jun 2010 21:14:07 -0400 Subject: [PATCH] Type safety for rsa-tfm.c --- lib/hcrypto/rsa-imath.c | 2 +- lib/hcrypto/rsa-tfm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)