:: commit 22a8a6d95c0cfccf95f1d3b83991022437ec1143

Mintsuki <mintsuki@protonmail.com> — 2026-01-04 16:36

parents: f0ee314bf2

crypt/blake2b: Fix incorrect loop variable in blake2b_update()

diff --git a/common/crypt/blake2b.c b/common/crypt/blake2b.c
index 52c358e7..c95b740d 100644
--- a/common/crypt/blake2b.c
+++ b/common/crypt/blake2b.c
@@ -175,8 +175,8 @@ static void blake2b_update(struct blake2b_state *state, const void *in, size_t i
             blake2b_increment_counter(state, BLAKE2B_BLOCK_BYTES);
             blake2b_compress(state, in);
 
-            in += fill;
-            in_len -= fill;
+            in += BLAKE2B_BLOCK_BYTES;
+            in_len -= BLAKE2B_BLOCK_BYTES;
         }
     }
 
tab: 248 wrap: offon