From 55c8bd00e0d5ff217c4cc200f42f4b4e79174222 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 24 Aug 2024 21:05:42 +0200 Subject: m fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libhashsum_init_blake256_hasher.c | 2 +- libhashsum_init_blake384_hasher.c | 2 +- libhashsum_init_blake512_hasher.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libhashsum_init_blake256_hasher.c b/libhashsum_init_blake256_hasher.c index fd77878..39a8eb9 100644 --- a/libhashsum_init_blake256_hasher.c +++ b/libhashsum_init_blake256_hasher.c @@ -96,7 +96,7 @@ libhashsum_init_blake256_hasher(struct libhashsum_hasher *this, const void *salt { libblake_init(); this->algorithm = LIBHASHSUM_BLAKE256; - this->algorithm_string = mkalgostr(this->state.blake224.algostr, "BLAKE256", salt); + this->algorithm_string = mkalgostr(this->state.blake256.algostr, "BLAKE256", salt); this->input_block_size = 64U; this->hash_size = LIBHASHSUM_BLAKE256_HASH_SIZE; this->hash_output = NULL; diff --git a/libhashsum_init_blake384_hasher.c b/libhashsum_init_blake384_hasher.c index cd6457f..5346689 100644 --- a/libhashsum_init_blake384_hasher.c +++ b/libhashsum_init_blake384_hasher.c @@ -96,7 +96,7 @@ libhashsum_init_blake384_hasher(struct libhashsum_hasher *this, const void *salt { libblake_init(); this->algorithm = LIBHASHSUM_BLAKE384; - this->algorithm_string = mkalgostr(this->state.blake224.algostr, "BLAKE384", salt); + this->algorithm_string = mkalgostr(this->state.blake384.algostr, "BLAKE384", salt); this->input_block_size = 128U; this->hash_size = LIBHASHSUM_BLAKE384_HASH_SIZE; this->hash_output = NULL; diff --git a/libhashsum_init_blake512_hasher.c b/libhashsum_init_blake512_hasher.c index d174fdd..a42b429 100644 --- a/libhashsum_init_blake512_hasher.c +++ b/libhashsum_init_blake512_hasher.c @@ -96,7 +96,7 @@ libhashsum_init_blake512_hasher(struct libhashsum_hasher *this, const void *salt { libblake_init(); this->algorithm = LIBHASHSUM_BLAKE512; - this->algorithm_string = mkalgostr(this->state.blake224.algostr, "BLAKE512", salt); + this->algorithm_string = mkalgostr(this->state.blake512.algostr, "BLAKE512", salt); this->input_block_size = 128U; this->hash_size = LIBHASHSUM_BLAKE512_HASH_SIZE; this->hash_output = NULL; -- cgit v1.2.3-70-g09d2