aboutsummaryrefslogtreecommitdiffstats
path: root/libhashsum_init_hasher.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-09-01 16:34:46 +0200
committerMattias Andrée <maandree@kth.se>2024-09-01 16:34:46 +0200
commitd737d34b436f673173695c4c772f0ddef9fe7837 (patch)
treef6bf400809124d411eaff38fe2c9d24842c8d23a /libhashsum_init_hasher.c
parentm fix (diff)
downloadlibhashsum-d737d34b436f673173695c4c772f0ddef9fe7837.tar.gz
libhashsum-d737d34b436f673173695c4c772f0ddef9fe7837.tar.bz2
libhashsum-d737d34b436f673173695c4c772f0ddef9fe7837.tar.xz
Add support for BLAKE2 (but not tree-hashing)
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libhashsum_init_hasher.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libhashsum_init_hasher.c b/libhashsum_init_hasher.c
index 6f09629..02c1e92 100644
--- a/libhashsum_init_hasher.c
+++ b/libhashsum_init_hasher.c
@@ -72,6 +72,10 @@ libhashsum_init_hasher(struct libhashsum_hasher *this, enum libhashsum_algorithm
return libhashsum_init_blake384_hasher(this, NULL);
case LIBHASHSUM_BLAKE512:
return libhashsum_init_blake512_hasher(this, NULL);
+ case LIBHASHSUM_BLAKE2S:
+ return libhashsum_init_blake2s_hasher(this, 0, NULL, NULL, NULL, 0);
+ case LIBHASHSUM_BLAKE2B:
+ return libhashsum_init_blake2b_hasher(this, 0, NULL, NULL, NULL, 0);
default:
case LIBHASHSUM_KECCAK:
errno = EINVAL;