Fix word16 truncation in internal.c

pull/925/head
Paul Adelsbach 2026-04-21 11:04:16 -07:00 committed by John Safranek
parent aa974545a0
commit 3f03a851c5
1 changed files with 6 additions and 6 deletions

View File

@ -10184,7 +10184,7 @@ static int DoPacket(WOLFSSH* ssh, byte* bufferConsumed)
static INLINE int Encrypt(WOLFSSH* ssh, byte* cipher, const byte* input,
word16 sz)
word32 sz)
{
int ret = WS_SUCCESS;
@ -10232,7 +10232,7 @@ static INLINE int Encrypt(WOLFSSH* ssh, byte* cipher, const byte* input,
static INLINE int Decrypt(WOLFSSH* ssh, byte* plain, const byte* input,
word16 sz)
word32 sz)
{
int ret = WS_SUCCESS;
@ -10478,9 +10478,9 @@ static INLINE void AeadIncrementExpIv(byte* iv)
static INLINE int EncryptAead(WOLFSSH* ssh, byte* cipher,
const byte* input, word16 sz,
const byte* input, word32 sz,
byte* authTag, const byte* auth,
word16 authSz)
word32 authSz)
{
int ret = WS_SUCCESS;
@ -10513,9 +10513,9 @@ static INLINE int EncryptAead(WOLFSSH* ssh, byte* cipher,
static INLINE int DecryptAead(WOLFSSH* ssh, byte* plain,
const byte* input, word16 sz,
const byte* input, word32 sz,
const byte* authTag, const byte* auth,
word16 authSz)
word32 authSz)
{
int ret = WS_SUCCESS;