From: Miloslav Trmac <mitr@redhat.com>
To: Herbert Xu <herbert@gondor.hengli.com.au>
Cc: Linux Crypto Mailing List <linux-crypto@vger.kernel.org>,
netdev@vger.kernel.org
Subject: Re: RFC: Crypto API User-interface
Date: Tue, 7 Sep 2010 10:52:03 -0400 (EDT) [thread overview]
Message-ID: <695962299.1087031283871123333.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com> (raw)
In-Reply-To: <834983542.1086561283871074929.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com>
----- "Herbert Xu" <herbert@gondor.hengli.com.au> wrote:
> On Tue, Sep 07, 2010 at 10:34:25AM -0400, Miloslav Trmac wrote:
> >
> > > > > /* These may also be set through sendmsg(2) cmsgs. */
> > > > > op = ALG_AEAD_OP_ENCRYPT;
> > > > > setsockopt(opfd, SOL_ALG, ALG_AEAD_OP, op, sizeof(op));
> > > > > setsockopt(opfd, SOL_ALG, ALG_AEAD_SET_IV, iv, ivlen);
> > > > So that is 8 syscalls to initialize a single AEAD operation.
> > >
> > > If this interface is fast enough for TCP, it ought to be fast
> > > enough for crypto.
> > Crypto has much smaller granularity than TCP. A single TLS
> handshake involves something on the order of 20 separate crypto
> operations in addition to setting up the four transforms used
> throughout the life of the session.
> >
> > A single SHA-256 password verification is more than 5000 hash
> operations by default.
>
> If you're processing a small amount of data the last thing you want
> is to go through the kernel if you care about performance.
>
> Now on the other hand if you had to go through the kernel for
> certification reasons then why are you talking about performance?
Because in the real world people want both certification, features _and_ performance. If all they cared about is certification they could just as well buy a pencil.
Mirek
next parent reply other threads:[~2010-09-07 14:52 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <834983542.1086561283871074929.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com>
2010-09-07 14:52 ` Miloslav Trmac [this message]
2010-09-07 14:55 ` RFC: Crypto API User-interface Christoph Hellwig
[not found] <1847066281.1081601283869883727.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com>
2010-09-07 14:34 ` Miloslav Trmac
2010-09-07 14:41 ` Herbert Xu
2010-09-07 14:51 ` Christoph Hellwig
2010-09-07 14:54 ` Miloslav Trmac
[not found] <1590523029.1055831283858598965.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com>
2010-09-07 11:27 ` Miloslav Trmac
2010-09-07 14:07 ` Herbert Xu
2010-09-07 8:42 Herbert Xu
2010-09-07 9:18 ` Tomas Mraz
2010-09-07 14:06 ` Christoph Hellwig
2010-09-07 14:11 ` Herbert Xu
2010-09-07 14:24 ` Christoph Hellwig
2010-09-07 14:39 ` Herbert Xu
2010-09-07 14:49 ` Nikos Mavrogiannopoulos
2010-09-07 14:57 ` Nikos Mavrogiannopoulos
2010-09-07 14:59 ` Christoph Hellwig
2010-10-19 13:44 ` Herbert Xu
2010-10-20 10:24 ` Nikos Mavrogiannopoulos
2010-11-04 17:34 ` 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=695962299.1087031283871123333.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com \
--to=mitr@redhat.com \
--cc=herbert@gondor.hengli.com.au \
--cc=linux-crypto@vger.kernel.org \
--cc=netdev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).