From ede1d88636802a11e16bc6c0d0afe3e70b48c7af Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Sat, 23 Mar 2019 12:14:19 +0100 Subject: [PATCH] Fixed variable shadowing --- src/monocypher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/monocypher.c b/src/monocypher.c index efa04f3..0bb3f23 100644 --- a/src/monocypher.c +++ b/src/monocypher.c @@ -388,8 +388,8 @@ void crypto_poly1305_update(crypto_poly1305_ctx *ctx, // Process the message block by block size_t nb_blocks = message_size >> 4; FOR (i, 0, nb_blocks) { - FOR (i, 0, 4) { - ctx->c[i] = load32_le(message + i*4); + FOR (j, 0, 4) { + ctx->c[j] = load32_le(message + j*4); } poly_block(ctx); message += 16; -- 2.47.3