aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-19 16:56:49 +0100
committerMattias Andrée <maandree@kth.se>2022-02-19 16:56:49 +0100
commit0c8dc6fb60a04104f7d9d22efa31c88659423ba6 (patch)
tree5ce74e565f9f60913c7808d6d9d30ba4f6aab57e
parentFix initial t[0] for keyed BLAKE2s (diff)
downloadlibblake-0c8dc6fb60a04104f7d9d22efa31c88659423ba6.tar.gz
libblake-0c8dc6fb60a04104f7d9d22efa31c88659423ba6.tar.bz2
libblake-0c8dc6fb60a04104f7d9d22efa31c88659423ba6.tar.xz
Fix initial t[0] for keyed BLAKE2Xs
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--libblake_blake2xs_init.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}