From 9289b468951a96a2d198847a27b716da74e85d3c Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Sat, 24 Feb 2018 15:39:44 +0100 Subject: [PATCH] Removed allways-true conditional --- src/monocypher.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) { -- 2.47.3