]> git.codecow.com Git - Monocypher.git/commitdiff
More readable Blake2b unrolled loop
authorLoup Vaillant <loup@loup-vaillant.fr>
Fri, 31 Jul 2020 21:11:33 +0000 (23:11 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Fri, 31 Jul 2020 21:11:33 +0000 (23:11 +0200)
src/monocypher.c

index f5f93fcfb8856c999239980e54aa762be05f586c..ef052fb5fedd9949a6d98bc14ddb46d209dce2a7 100644 (file)
@@ -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