aboutsummaryrefslogtreecommitdiffstats
path: root/libhashsum_init_hasher.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-08-24 20:39:01 +0200
committerMattias Andrée <maandree@kth.se>2024-08-24 20:39:01 +0200
commit2bc752da4a803cf6c03fb84bb90bc6e468981526 (patch)
tree5223412269afd9af411f918b51a66a433f235af0 /libhashsum_init_hasher.c
parentAdd BLAKE via libblake>=1.1 (this version introduced libblake_init()) (diff)
downloadlibhashsum-2bc752da4a803cf6c03fb84bb90bc6e468981526.tar.gz
libhashsum-2bc752da4a803cf6c03fb84bb90bc6e468981526.tar.bz2
libhashsum-2bc752da4a803cf6c03fb84bb90bc6e468981526.tar.xz
Add support for salt for BLAKE
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libhashsum_init_hasher.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libhashsum_init_hasher.c b/libhashsum_init_hasher.c
index ab44ac1..6f09629 100644
--- a/libhashsum_init_hasher.c
+++ b/libhashsum_init_hasher.c
@@ -65,13 +65,13 @@ libhashsum_init_hasher(struct libhashsum_hasher *this, enum libhashsum_algorithm
case LIBHASHSUM_RAWSHAKE512:
return libhashsum_init_rawshake512_hasher(this, 0);
case LIBHASHSUM_BLAKE224:
- return libhashsum_init_blake224_hasher(this);
+ return libhashsum_init_blake224_hasher(this, NULL);
case LIBHASHSUM_BLAKE256:
- return libhashsum_init_blake256_hasher(this);
+ return libhashsum_init_blake256_hasher(this, NULL);
case LIBHASHSUM_BLAKE384:
- return libhashsum_init_blake384_hasher(this);
+ return libhashsum_init_blake384_hasher(this, NULL);
case LIBHASHSUM_BLAKE512:
- return libhashsum_init_blake512_hasher(this);
+ return libhashsum_init_blake512_hasher(this, NULL);
default:
case LIBHASHSUM_KECCAK:
errno = EINVAL;