aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-07-28 09:16:02 +0200
committerMattias Andrée <maandree@kth.se>2019-07-28 09:16:02 +0200
commitcce6503f842a109ce28937e0feb5767647856aa2 (patch)
treef8d8e7031c8bd7f4e66386778a9b56d8e77aebaa
parentImplement SHA-0 and remove .chunk_size (diff)
downloadlibsha1-cce6503f842a109ce28937e0feb5767647856aa2.tar.gz
libsha1-cce6503f842a109ce28937e0feb5767647856aa2.tar.bz2
libsha1-cce6503f842a109ce28937e0feb5767647856aa2.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.c b/init.c
index 556f6a8..7d63b1b 100644
--- a/init.c
+++ b/init.c
@@ -28,7 +28,8 @@ libsha1_init(struct libsha1_state *restrict state, enum libsha1_algorithm algori
switch (algorithm) {
case LIBSHA1_0:
case LIBSHA1_1:
- memcpy(state->h, H, sizeof(H)); break;
+ memcpy(state->h, H, sizeof(H));
+ break;
default:
errno = EINVAL;
return -1;