diff options
author | Mattias Andrée <maandree@kth.se> | 2019-07-28 09:16:02 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2019-07-28 09:16:02 +0200 |
commit | cce6503f842a109ce28937e0feb5767647856aa2 (patch) | |
tree | f8d8e7031c8bd7f4e66386778a9b56d8e77aebaa /init.c | |
parent | Implement SHA-0 and remove .chunk_size (diff) | |
download | libsha1-cce6503f842a109ce28937e0feb5767647856aa2.tar.gz libsha1-cce6503f842a109ce28937e0feb5767647856aa2.tar.bz2 libsha1-cce6503f842a109ce28937e0feb5767647856aa2.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | init.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |