aboutsummaryrefslogtreecommitdiffstats
path: root/libhashsum_init_sha0_hasher.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-08-24 11:38:07 +0200
committerMattias Andrée <maandree@kth.se>2024-08-24 11:38:07 +0200
commitdadf0cb089c36b0d49483b50cac97d017cd9389e (patch)
tree70053cf96f04efea0da5fb5c3289352e7c74a1ce /libhashsum_init_sha0_hasher.c
parentMake algorithms optional (diff)
downloadlibhashsum-dadf0cb089c36b0d49483b50cac97d017cd9389e.tar.gz
libhashsum-dadf0cb089c36b0d49483b50cac97d017cd9389e.tar.bz2
libhashsum-dadf0cb089c36b0d49483b50cac97d017cd9389e.tar.xz
Add libhashsum_hasher.algorithm_string
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libhashsum_init_sha0_hasher.c')
-rw-r--r--libhashsum_init_sha0_hasher.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libhashsum_init_sha0_hasher.c b/libhashsum_init_sha0_hasher.c
index 6efd8fc..eddb750 100644
--- a/libhashsum_init_sha0_hasher.c
+++ b/libhashsum_init_sha0_hasher.c
@@ -58,6 +58,7 @@ int
libhashsum_init_sha0_hasher(struct libhashsum_hasher *this)
{
this->algorithm = LIBHASHSUM_SHA0;
+ this->algorithm_string = "SHA0";
this->input_block_size = 64U;
this->hash_size = sizeof(this->state.sha0.sum);
this->hash_output = NULL;