From 7b539ccdcd598cad3033f2ca534c1940906158fb Mon Sep 17 00:00:00 2001 From: Lucas Gabriel Vuotto Date: Fri, 7 Jun 2024 17:34:03 +0000 Subject: [PATCH] cipher/chacha20: logical AND is && --- cipher_chacha20.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cipher_chacha20.c b/cipher_chacha20.c index 48f0b9a..38e4c59 100644 --- a/cipher_chacha20.c +++ b/cipher_chacha20.c @@ -213,7 +213,7 @@ chacha20_common(const uint8_t *key, size_t keylen, const uint8_t *iv, } rc = chacha20_common_init(&ctx, key, keylen, iv, ivlen) && - chacha20_common_update(&ctx, out, &l0, in, inlen) & + chacha20_common_update(&ctx, out, &l0, in, inlen) && chacha20_common_final(&ctx, out + l0, &l1); if (rc)