All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/4] man/keyctl_dh_compute: clarify keyctl_dh_compute_kdf
@ 2018-09-24 13:01 Ben Boeckel
  0 siblings, 0 replies; only message in thread
From: Ben Boeckel @ 2018-09-24 13:01 UTC (permalink / raw)
  To: keyrings

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-24 13:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-24 13:01 [PATCH 3/4] man/keyctl_dh_compute: clarify keyctl_dh_compute_kdf Ben Boeckel

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.