From 01652f3a0b840d9a3d36d8ff68a261ae991b7850 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 6 Oct 2015 15:33:37 +0200 Subject: m doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libkeccak/files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libkeccak/files.c b/src/libkeccak/files.c index 95e9889..c9d06b8 100644 --- a/src/libkeccak/files.c +++ b/src/libkeccak/files.c @@ -35,7 +35,7 @@ * @param spec Specifications for the hashing algorithm * @param suffix The data suffix, see `libkeccak_digest` * @param hashsum Output array for the hashsum, have an allocation size of - * at least `(spec->output / 8) * sizeof(char)`, may be `NULL` + * at least `((spec->output + 7) / 8) * sizeof(char)`, may be `NULL` * @return Zero on success, -1 on error */ int libkeccak_generalised_sum_fd(int fd, libkeccak_state_t* restrict state, -- cgit v1.2.3-70-g09d2