wolfcrypt/src/chacha20_poly1305.c: in wc_XChaCha20Poly1305_crypt_oneshot(), allow empty message.

This commit is contained in:
Daniel Pouzzner
2025-09-23 17:06:22 -05:00
parent 7084728482
commit 4af6eb4f2b

View File

@@ -401,7 +401,7 @@ static WC_INLINE int wc_XChaCha20Poly1305_crypt_oneshot(
goto out;
}
if (dst_len <= 0 || (long int)dst_space < dst_len) {
if (dst_len < 0 || (long int)dst_space < dst_len) {
ret = BUFFER_E;
goto out;
}