diff --git a/wolfcrypt/src/rsa.c b/wolfcrypt/src/rsa.c index 11fd5a0b8..4c47cd7d9 100644 --- a/wolfcrypt/src/rsa.c +++ b/wolfcrypt/src/rsa.c @@ -1367,7 +1367,7 @@ static int RsaUnPad(const byte *pkcsBlock, unsigned int pkcsBlockLen, byte **output, byte padValue) { int ret = BAD_FUNC_ARG; - word32 i; + word16 i; #ifndef WOLFSSL_RSA_VERIFY_ONLY byte invalid = 0; #endif @@ -1397,7 +1397,7 @@ static int RsaUnPad(const byte *pkcsBlock, unsigned int pkcsBlockLen, } #ifndef WOLFSSL_RSA_VERIFY_ONLY else { - word32 j; + word16 j; word16 pastSep = 0; /* Decrypted with private key - unpad must be constant time. */