keyctl_dh_compute.3: clarify keyctl_dh_compute_kdf
PATCH v2 3/7 keyctl_dh_compute.3: clarify keyctl_dh_compute_kdf
Signed-off-by Ben Boeckel <[email protected]>
--- man/keyctl_dh_compute.3 | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)
man/keyctl_dh_compute.3 +10 -4
@@ -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
Signature · 1 line
2.19.0.221.g150f307afc