diff options
author | Mattias Andrée <maandree@kth.se> | 2024-08-23 22:36:41 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-08-23 22:40:29 +0200 |
commit | 2fd94aae29d53d9859bfc3f53777970def38e253 (patch) | |
tree | e45573486f44271d75ee22284953e5dcde303ca5 /libhashsum_init_hasher.c | |
parent | First commit (diff) | |
download | libhashsum-2fd94aae29d53d9859bfc3f53777970def38e253.tar.gz libhashsum-2fd94aae29d53d9859bfc3f53777970def38e253.tar.bz2 libhashsum-2fd94aae29d53d9859bfc3f53777970def38e253.tar.xz |
Fixes + add SHA0 and SHA1 using libsha1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libhashsum_init_hasher.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libhashsum_init_hasher.c b/libhashsum_init_hasher.c index fc39758..91689ca 100644 --- a/libhashsum_init_hasher.c +++ b/libhashsum_init_hasher.c @@ -20,6 +20,10 @@ libhashsum_init_hasher(struct libhashsum_hasher *hasher, enum libhashsum_algorit return libhashsum_init_ripemd_256_hasher(hasher); case LIBHASHSUM_RIPEMD_320: return libhashsum_init_ripemd_320_hasher(hasher); + case LIBHASHSUM_SHA0: + return libhashsum_init_sha0_hasher(hasher); + case LIBHASHSUM_SHA1: + return libhashsum_init_sha1_hasher(hasher); default: errno = EINVAL; return -1; |