From ff0cc43df0e1acfdf35439c7969a340f1a7bb3c7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 19 Feb 2022 16:49:53 +0100 Subject: Fix initial t[0] for keyed BLAKE2s MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libblake_blake2s_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libblake_blake2s_init.c b/libblake_blake2s_init.c index e9eacb8..bafe010 100644 --- a/libblake_blake2s_init.c +++ b/libblake_blake2s_init.c @@ -80,7 +80,7 @@ libblake_blake2s_init(struct libblake_blake2s_state *state, const struct libblak } if (params->key_len) { - state->t[0] = 32; + state->t[0] = 64; libblake_internal_blake2s_compress(state, key); } } -- cgit v1.2.3-70-g09d2