From 0c8dc6fb60a04104f7d9d22efa31c88659423ba6 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 19 Feb 2022 16:56:49 +0100 Subject: Fix initial t[0] for keyed BLAKE2Xs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libblake_blake2xs_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libblake_blake2xs_init.c') diff --git a/libblake_blake2xs_init.c b/libblake_blake2xs_init.c index d2d5834..5404eee 100644 --- a/libblake_blake2xs_init.c +++ b/libblake_blake2xs_init.c @@ -19,7 +19,7 @@ libblake_blake2xs_init(struct libblake_blake2xs_state *state, const struct libbl memset(&state->intermediate, 0, sizeof(state->intermediate)); if (params->key_len) { - state->b2s.t[0] = 32; + state->b2s.t[0] = 64; libblake_internal_blake2s_compress(&state->b2s, key); } } -- cgit v1.2.3-70-g09d2