mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-26 19:22:20 +01:00
wolfcrypt/src/chacha20_poly1305.c: in wc_XChaCha20Poly1305_crypt_oneshot(), allow empty message.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user