From a265d4c4c790c442af8760345bcade8181f5d1a4 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 9 Feb 2019 21:07:38 +0100 Subject: Fix documentation about lengths (in bits, not bytes) and fix libsha2_sum_fd (lengths are in bits) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libsha2_digest.3 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libsha2_digest.3') diff --git a/libsha2_digest.3 b/libsha2_digest.3 index 2e7d31e..fd4e0ad 100644 --- a/libsha2_digest.3 +++ b/libsha2_digest.3 @@ -15,14 +15,15 @@ The .BR libsha2_digest () function feeds the first .I msglen -bytes of +.B bits +of .I message into the hashing state of the .I state parameter, and finalises the hashing. The resulting hash is stored in binary format in -.I output . +.IR output . The user must make sure that .I output is sufficiently large, which means at -- cgit v1.2.3-70-g09d2