diff --git a/src/internal.c b/src/internal.c index 755ca3ac..5d8dbdbb 100644 --- a/src/internal.c +++ b/src/internal.c @@ -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;