From: Ben Boeckel <mathstuf@gmail.com>
To: keyrings@vger.kernel.org
Subject: [PATCH 3/4] man/keyctl_dh_compute: clarify keyctl_dh_compute_kdf
Date: Mon, 24 Sep 2018 13:01:58 +0000 [thread overview]
Message-ID: <20180924130159.5299-4-mathstuf@gmail.com> (raw)
Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
---
man/keyctl_dh_compute.3 | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/man/keyctl_dh_compute.3 b/man/keyctl_dh_compute.3
index bb1274c..09c5d21 100644
--- a/man/keyctl_dh_compute.3
+++ b/man/keyctl_dh_compute.3
@@ -104,10 +104,10 @@ parameter is specified with
and is restricted to a maximum length by the kernel.
.P
The KDF returns the requested number of bytes specified with the
-.I genlen
-or the
.I buflen
-parameter depending on the invoked function.
+parameter into the
+.I buffer
+argument.
.P
.I buffer
and
@@ -128,7 +128,13 @@ On success
.BR keyctl_dh_compute_alloc ()
returns the amount of data in the buffer.
.P
-On error, both functions set errno to an appropriate code and return the value
+On success
+.BR keyctl_dh_compute_kdf ()
+returns the amount of data placed into the buffer when
+.I buflen
+is non-zero.
+.P
+On error, all functions set errno to an appropriate code and return the value
.BR -1 .
.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
.SH ERRORS
--
2.17.1
reply other threads:[~2018-09-24 13:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180924130159.5299-4-mathstuf@gmail.com \
--to=mathstuf@gmail.com \
--cc=keyrings@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.