Update aead.c

This commit is contained in:
starter48
2023-01-09 10:49:24 +07:00
committed by GitHub
parent d83ace0f0d
commit 6f2e821b9f
+1 -1
View File
@@ -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)