word16 for consistency

This commit is contained in:
Takashi Kojo
2019-06-27 06:38:14 +09:00
parent 6d04d784c4
commit c7d1424adf

View File

@@ -1367,7 +1367,7 @@ static int RsaUnPad(const byte *pkcsBlock, unsigned int pkcsBlockLen,
byte **output, byte padValue) byte **output, byte padValue)
{ {
int ret = BAD_FUNC_ARG; int ret = BAD_FUNC_ARG;
word32 i; word16 i;
#ifndef WOLFSSL_RSA_VERIFY_ONLY #ifndef WOLFSSL_RSA_VERIFY_ONLY
byte invalid = 0; byte invalid = 0;
#endif #endif
@@ -1397,7 +1397,7 @@ static int RsaUnPad(const byte *pkcsBlock, unsigned int pkcsBlockLen,
} }
#ifndef WOLFSSL_RSA_VERIFY_ONLY #ifndef WOLFSSL_RSA_VERIFY_ONLY
else { else {
word32 j; word16 j;
word16 pastSep = 0; word16 pastSep = 0;
/* Decrypted with private key - unpad must be constant time. */ /* Decrypted with private key - unpad must be constant time. */