aboutsummaryrefslogtreecommitdiffstats
path: root/libhashsum_init_sha1_hasher.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-08-23 23:40:36 +0200
committerMattias Andrée <maandree@kth.se>2024-08-23 23:40:36 +0200
commit4dc7dcef3136b49ff6cb34f28508965433863be8 (patch)
tree2909c34a9351f3567bccec4741ecd53b98327d31 /libhashsum_init_sha1_hasher.c
parentFixes + add SHA0 and SHA1 using libsha1 (diff)
downloadlibhashsum-4dc7dcef3136b49ff6cb34f28508965433863be8.tar.gz
libhashsum-4dc7dcef3136b49ff6cb34f28508965433863be8.tar.bz2
libhashsum-4dc7dcef3136b49ff6cb34f28508965433863be8.tar.xz
Fixes + add SHA2 support via libsha2
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libhashsum_init_sha1_hasher.c')
-rw-r--r--libhashsum_init_sha1_hasher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhashsum_init_sha1_hasher.c b/libhashsum_init_sha1_hasher.c
index 6058b73..25c7496 100644
--- a/libhashsum_init_sha1_hasher.c
+++ b/libhashsum_init_sha1_hasher.c
@@ -60,7 +60,7 @@ libhashsum_init_sha1_hasher(struct libhashsum_hasher *this)
this->input_block_size = 64U;
this->hash_size = sizeof(this->state.sha1.sum);
this->hash_output = NULL;
- this->supports_non_whole_bytes = 0;
+ this->supports_non_whole_bytes = 1;
this->process = &process;
this->finalise_const = &finalise_const;
this->finalise = &finalise;