aboutsummaryrefslogtreecommitdiffstats
path: root/libhashsum_init_md2_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_md2_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 '')
-rw-r--r--libhashsum_init_md2_hasher.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libhashsum_init_md2_hasher.c b/libhashsum_init_md2_hasher.c
index dd20429..6ea2063 100644
--- a/libhashsum_init_md2_hasher.c
+++ b/libhashsum_init_md2_hasher.c
@@ -134,6 +134,7 @@ int
libhashsum_init_md2_hasher(struct libhashsum_hasher *this)
{
this->algorithm = LIBHASHSUM_MD2;
+ this->algorithm_string = "MD2";
this->input_block_size = 16U;
this->hash_size = sizeof(this->state.md2.sum);
this->hash_output = NULL;