Module Name: src
Committed By: christos
Date: Fri Jul 1 22:56:06 UTC 2016
Modified Files:
src/lib/libc/hash: hmac.3
Log Message:
Improve wording.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/hash/hmac.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/hash/hmac.3
diff -u src/lib/libc/hash/hmac.3:1.1 src/lib/libc/hash/hmac.3:1.2
--- src/lib/libc/hash/hmac.3:1.1 Fri Jul 1 18:41:39 2016
+++ src/lib/libc/hash/hmac.3 Fri Jul 1 18:56:06 2016
@@ -1,4 +1,4 @@
-.\" $NetBSD: hmac.3,v 1.1 2016/07/01 22:41:39 christos Exp $
+.\" $NetBSD: hmac.3,v 1.2 2016/07/01 22:56:06 christos Exp $
.\"
.Dd July 1, 2016
.Dt HMAC 3
@@ -29,13 +29,15 @@ sha256, sha384, sha512.
.Sh RETURN VALUES
The
.Fn hmac
-return
+returns
.Dv -1
if the
.Fa hname
-is not found
-and the length of the digest string which is dependend on the hashing
-function.
+is not found.
+Otherwise the actual length of the digest string is returned (which could
+be bigger or smaller than
+.Fa dlen ) .
+This length depends on the hashing function selected.
.Sh SEE ALSO
.Xr md2 3 ,
.Xr md4 3 ,