From: Nikos Mavrogiannopoulos <nmav@gnutls.org>
To: Jamie Iles <jamie@jamieiles.com>
Cc: linux-crypto@vger.kernel.org
Subject: Re: Hardware acceleration indication in af_alg
Date: Wed, 02 Nov 2011 03:11:06 +0100 [thread overview]
Message-ID: <4EB0A6BA.6090301@gnutls.org> (raw)
In-Reply-To: <20111101125940.GA5072@totoro>
On 11/01/2011 01:59 PM, Jamie Iles wrote:
> Hi Nikos,
>
> On Tue, Nov 01, 2011 at 01:43:26PM +0100, Nikos Mavrogiannopoulos wrote:
[...]
>> I suppose that no answer means there is no way. In that case would you
>> consider this or a similar patch to indicate whether a driver provides
>> an algorithm not available to userspace via other means (e.g.
>> instruction set)? This would allow users of the kernel interfaces to
>> avoid using software implementations or implementations that are
>> available to userspace anyway.
> [...]
>> diff --git a/include/linux/crypto.h b/include/linux/crypto.h
>> index de9adec..3e14cee 100644
>> --- a/include/linux/crypto.h
>> +++ b/include/linux/crypto.h
>> @@ -51,6 +51,11 @@
>> #define CRYPTO_ALG_DYING 0x00000040
>> #define CRYPTO_ALG_ASYNC 0x00000080
>>
>> +/* Set this bit if the algorithm provided is hardware accelerated but
>> + * not available to userspace via instruction set or so.
>> + */
>> +#define CRYPTO_ALG_KERN_ONLY 0x00000100
> Would it be a bit clearer if this was CRYPTO_ALG_IS_UNPRIVILIGED and was
> set the other way round (so instruction set based ones that users can
> use)? I had to do a double take with KERN_ONLY.
Could also be, although I think both names are not so intuitive :) Note
btw that the flag value in the patch is not correct (it overlaps with
another one).
regards,
Nikos
next prev parent reply other threads:[~2011-11-02 2:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-18 13:13 Hardware acceleration indication in af_alg Matthias-Christian Ott
2011-10-21 13:23 ` Herbert Xu
2011-10-21 14:15 ` Matthias-Christian Ott
2011-10-21 14:34 ` Matthias-Christian Ott
2011-10-28 16:24 ` Nikos Mavrogiannopoulos
2011-11-01 12:43 ` Nikos Mavrogiannopoulos
2011-11-01 12:59 ` Jamie Iles
2011-11-02 2:11 ` Nikos Mavrogiannopoulos [this message]
2011-11-02 22:51 ` Herbert Xu
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=4EB0A6BA.6090301@gnutls.org \
--to=nmav@gnutls.org \
--cc=jamie@jamieiles.com \
--cc=linux-crypto@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.