From 95ef1a715d16ae2191a44a660fc31451f345caff Mon Sep 17 00:00:00 2001 From: Paul Adelsbach Date: Tue, 21 Apr 2026 11:04:16 -0700 Subject: [PATCH] Fix word16 truncation in internal.c --- src/internal.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/internal.c b/src/internal.c index 0bf745e59..3894b48be 100644 --- a/src/internal.c +++ b/src/internal.c @@ -10170,7 +10170,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; @@ -10218,7 +10218,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; @@ -10464,9 +10464,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; @@ -10499,9 +10499,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;