From: Loup Vaillant Date: Sat, 23 Mar 2019 11:14:19 +0000 (+0100) Subject: Fixed variable shadowing X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=ede1d88636802a11e16bc6c0d0afe3e70b48c7af;p=Monocypher.git Fixed variable shadowing --- 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;