From 6f2e821b9fa68c8d97ea6ea3e4183a1a5adc9f0b Mon Sep 17 00:00:00 2001 From: starter48 <14238917+starter48@users.noreply.github.com> Date: Mon, 9 Jan 2023 10:49:24 +0700 Subject: [PATCH] Update aead.c --- src/aead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aead.c b/src/aead.c index 358ec938..330b10f6 100644 --- a/src/aead.c +++ b/src/aead.c @@ -596,7 +596,7 @@ aead_chunk_decrypt(cipher_ctx_t *ctx, uint8_t *p, uint8_t *c, uint8_t *n, return CRYPTO_ERROR; assert(*plen == CHUNK_SIZE_LEN); - mlen = load16_be(len_buf); + mlen = ntohs(*(uint16_t*)len_buf); mlen = mlen & CHUNK_SIZE_MASK; if (mlen == 0)