From: Loup Vaillant Date: Fri, 31 Jul 2020 21:11:33 +0000 (+0200) Subject: More readable Blake2b unrolled loop X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=ffb1d57b72ef373b1b0c4f2167ca06f1ed3305d0;p=Monocypher.git More readable Blake2b unrolled loop --- diff --git a/src/monocypher.c b/src/monocypher.c index f5f93fc..ef052fb 100644 --- a/src/monocypher.c +++ b/src/monocypher.c @@ -560,7 +560,7 @@ static void blake2b_compress(crypto_blake2b_ctx *ctx, int is_last_block) #else BLAKE2_ROUND(0); BLAKE2_ROUND(1); BLAKE2_ROUND(2); BLAKE2_ROUND(3); BLAKE2_ROUND(4); BLAKE2_ROUND(5); BLAKE2_ROUND(6); BLAKE2_ROUND(7); - BLAKE2_ROUND(8); BLAKE2_ROUND(9); BLAKE2_ROUND(0); BLAKE2_ROUND(1); + BLAKE2_ROUND(8); BLAKE2_ROUND(9); BLAKE2_ROUND(10); BLAKE2_ROUND(11); #endif // update hash