aboutsummaryrefslogtreecommitdiffstats
path: root/sum_fd.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-02-09 20:02:16 +0100
committerMattias Andrée <maandree@kth.se>2019-02-09 20:02:16 +0100
commit9475c19921162986119ee69eba8bfa2a9832d551 (patch)
tree285c9cbd0a824d2bfb480431b33099e2a80e35bf /sum_fd.c
parentAdd HMAC to TODO (diff)
downloadlibsha2-9475c19921162986119ee69eba8bfa2a9832d551.tar.gz
libsha2-9475c19921162986119ee69eba8bfa2a9832d551.tar.bz2
libsha2-9475c19921162986119ee69eba8bfa2a9832d551.tar.xz
Minor changes, add man pages, rename libsha2_state_initialise to libsha2_init
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--sum_fd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sum_fd.c b/sum_fd.c
index 381a634..35d4121 100644
--- a/sum_fd.c
+++ b/sum_fd.c
@@ -20,7 +20,7 @@ libsha2_sum_fd(int fd, enum libsha2_algorithm algorithm, char *restrict hashsum)
size_t blksize = 4096;
char *restrict chunk;
- if (libsha2_state_initialise(&state, algorithm) < 0)
+ if (libsha2_init(&state, algorithm) < 0)
return -1;
if (fstat(fd, &attr) == 0 && attr.st_blksize > 0)