mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
RSA: cast bitwise negate value to byte before converting to int
This commit is contained in:
@@ -1738,7 +1738,7 @@ static int RsaUnPad(const byte *pkcsBlock, unsigned int pkcsBlockLen,
|
||||
invalid |= ctMaskNotEq(pkcsBlock[1], padValue);
|
||||
|
||||
*output = (byte *)(pkcsBlock + i);
|
||||
ret = ((int)~invalid) & (pkcsBlockLen - i);
|
||||
ret = ((int)(byte)~invalid) & (pkcsBlockLen - i);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user