From: Loup Vaillant Date: Sat, 24 Feb 2018 14:39:44 +0000 (+0100) Subject: Removed allways-true conditional X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=9289b468951a96a2d198847a27b716da74e85d3c;p=Monocypher.git Removed allways-true conditional --- diff --git a/src/monocypher.c b/src/monocypher.c index 222d7b8..711dd5d 100644 --- a/src/monocypher.c +++ b/src/monocypher.c @@ -246,10 +246,9 @@ void crypto_chacha20_encrypt(crypto_chacha_ctx *ctx, } } cipher_text += 64; - if (nb_blocks > 0) { - ctx->pool_idx = 64; - } + ctx->pool_idx = 64; } + // Remaining input, byte by byte FOR (i, 0, remainder) { if (ctx->pool_idx == 64) {