Skip to content

Commit 95ef1a7

Browse files
committed
Fix word16 truncation in internal.c
1 parent a608f19 commit 95ef1a7

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/internal.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10170,7 +10170,7 @@ static int DoPacket(WOLFSSH* ssh, byte* bufferConsumed)
1017010170

1017110171

1017210172
static INLINE int Encrypt(WOLFSSH* ssh, byte* cipher, const byte* input,
10173-
word16 sz)
10173+
word32 sz)
1017410174
{
1017510175
int ret = WS_SUCCESS;
1017610176

@@ -10218,7 +10218,7 @@ static INLINE int Encrypt(WOLFSSH* ssh, byte* cipher, const byte* input,
1021810218

1021910219

1022010220
static INLINE int Decrypt(WOLFSSH* ssh, byte* plain, const byte* input,
10221-
word16 sz)
10221+
word32 sz)
1022210222
{
1022310223
int ret = WS_SUCCESS;
1022410224

@@ -10464,9 +10464,9 @@ static INLINE void AeadIncrementExpIv(byte* iv)
1046410464

1046510465

1046610466
static INLINE int EncryptAead(WOLFSSH* ssh, byte* cipher,
10467-
const byte* input, word16 sz,
10467+
const byte* input, word32 sz,
1046810468
byte* authTag, const byte* auth,
10469-
word16 authSz)
10469+
word32 authSz)
1047010470
{
1047110471
int ret = WS_SUCCESS;
1047210472

@@ -10499,9 +10499,9 @@ static INLINE int EncryptAead(WOLFSSH* ssh, byte* cipher,
1049910499

1050010500

1050110501
static INLINE int DecryptAead(WOLFSSH* ssh, byte* plain,
10502-
const byte* input, word16 sz,
10502+
const byte* input, word32 sz,
1050310503
const byte* authTag, const byte* auth,
10504-
word16 authSz)
10504+
word32 authSz)
1050510505
{
1050610506
int ret = WS_SUCCESS;
1050710507

0 commit comments

Comments
 (0)