public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: "Michael Kerrisk (man-pages)" <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Mat Martineau
	<mathew.j.martineau-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	Eugene Syromyatnikov
	<evgsyr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	linux-man <linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	David Howells <dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	keyrings-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] keyctl.2: updates regarding command usage, return values and error codes
Date: Mon, 7 Nov 2016 01:42:15 -0700	[thread overview]
Message-ID: <1138f3c8-ac08-66dc-4b1b-d3a7e04da740@gmail.com> (raw)
In-Reply-To: <alpine.OSX.2.20.1611041452550.33261-zaFMaa3cLiblwac2zBavaUf8pHl9u49HQQ4Iyu8u01E@public.gmane.org>

Hello Mat,

On 11/04/2016 04:20 PM, Mat Martineau wrote:
> 
> Hi Michael,
> 
> On Thu, 3 Nov 2016, Michael Kerrisk (man-pages) wrote:
> 
>> Hello Mat,
>>
>> On 26 September 2016 at 20:03, Mat Martineau
>> <mathew.j.martineau-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> wrote:
>>>
>>> Michael and Eugene -
>>>
>>> On Mon, 26 Sep 2016, Michael Kerrisk (man-pages) wrote:
>>>
>>>> [CC extended:
>>>> keyrings-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>>> Mat Martineau, as he added KEYCTL_DH_COMPUTE]
>>>>
>>>>
>>>> Hello Eugene,
>>>>
>>>> On 09/26/2016 04:24 AM, Eugene Syromyatnikov wrote:
>>>>>
>>>>> Hello.
>>>>>
>>>>> I've drafted some updates to the keyctl.2 man page while preparing test
>>>>> for strace syscall decoder. It is focused mostly on description of
>>>>> argument
>>>>> format used in various commands and return values/error codes.
>>>>> Information is based on Documentation/security/keys.txt,
>>>>> include/uapi/linux/keyctl.h, and source code and comments in
>>>>> security/keys/ (mostly comments from security/keys/keyctl.c).
>>>>> Hope you find it useful.
>>>
>>>
>>> There's additional reference material from keyctl.1 and keyctl.3 in
>>> https://git.kernel.org/cgit/linux/kernel/git/dhowells/keyutils.git/ .
>>> The 'next' branch has updates for KEYCTL_DH_COMPUTE
>>
>> Thanks.
>>
>> One thing that the man page and the commit message for the DH compute
>> feature lack is a rationale for why this operation was added.
>>
>> So, why was it added? It'd be good to document that.
> 
> You can find some context here:
> 
> http://www.spinics.net/lists/keyrings/msg00654.html
> 
> Diffie-Hellman computations can be performed in userspace, but require a 
> multiple-precision integer library. Using the kernel gives access to the 
> kernel MPI implementation, and allows access to secure or acceleration 
> hardware.
> 
> The keyctl() system call was a good fit due to the DH algorithm's use 
> for deriving shared keys, and allows the type of the key to determine 
> which DH implementation (software or hardware) is appropriate.

Thanks. I've added much of this text you wrote to the keyctl(2) page.

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2016-11-07  8:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-26  2:24 [PATCH] keyctl.2: updates regarding command usage, return values and error codes Eugene Syromyatnikov
2016-09-26  8:08 ` Michael Kerrisk (man-pages)
     [not found]   ` <b293076f-797d-76df-3b76-27d67b3f128a-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-09-26 18:03     ` Mat Martineau
     [not found]       ` <alpine.OSX.2.20.1609261024180.6377-zaFMaa3cLiZe6KzckbbZvYT4S9po1h25@public.gmane.org>
2016-10-14 11:18         ` Michael Kerrisk (man-pages)
2016-11-03 13:36         ` Michael Kerrisk (man-pages)
     [not found]           ` <CAKgNAkhFRwfMCkZOPfxJu7SHCcYsZvd4W4E=dTvf6_RL3XJK-w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-11-04 22:20             ` Mat Martineau
     [not found]               ` <alpine.OSX.2.20.1611041452550.33261-zaFMaa3cLiblwac2zBavaUf8pHl9u49HQQ4Iyu8u01E@public.gmane.org>
2016-11-07  8:42                 ` Michael Kerrisk (man-pages) [this message]
2016-10-27  9:30 ` Michael Kerrisk (man-pages)
     [not found]   ` <746d51ba-e459-4af9-0664-7f9a44528b0a-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-10-27 15:57     ` Eugene Syromyatnikov

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=1138f3c8-ac08-66dc-4b1b-d3a7e04da740@gmail.com \
    --to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=evgsyr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=keyrings-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mathew.j.martineau-VuQAYsv1563Yd54FQh9/CA@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox