]> git.codecow.com Git - Monocypher.git/commitdiff
Removed allways-true conditional
authorLoup Vaillant <loup@loup-vaillant.fr>
Sat, 24 Feb 2018 14:39:44 +0000 (15:39 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sat, 24 Feb 2018 14:40:42 +0000 (15:40 +0100)
src/monocypher.c

index 222d7b8f0a89fdc5cdf918737cb3451453152af5..711dd5de5b350d1967529293a9f133235f953a8e 100644 (file)
@@ -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) {