From ffb1d57b72ef373b1b0c4f2167ca06f1ed3305d0 Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Fri, 31 Jul 2020 23:11:33 +0200 Subject: [PATCH] More readable Blake2b unrolled loop --- src/monocypher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3