cipher/chacha20: logical AND is &&

This commit is contained in:
Lucas Gabriel Vuotto 2024-06-07 17:34:03 +00:00
parent 1a8f813442
commit 7b539ccdcd
1 changed files with 1 additions and 1 deletions

View File

@ -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) && 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); chacha20_common_final(&ctx, out + l0, &l1);
if (rc) if (rc)