All of lore.kernel.org
 help / color / mirror / Atom feed
From: Herbert Xu <herbert@gondor.apana.org.au>
To: Stephan Mueller <smueller@chronox.de>
Cc: linux-crypto@vger.kernel.org
Subject: Re: [RFC] DRBG: which shall be default?
Date: Wed, 8 Jun 2016 16:00:55 +0800	[thread overview]
Message-ID: <20160608080055.GA13686@gondor.apana.org.au> (raw)
In-Reply-To: <7330387.0ZS018HYJD@positron.chronox.de>

On Wed, Jun 08, 2016 at 09:56:42AM +0200, Stephan Mueller wrote:
>
> The performance with ctr-aes-aesni on 64 bit is as follows -- I used my LRNG 
> implementation for testing for which I already have performance measurements:
> 
> - generating smaller lengths (I tested up to 128 bytes) of random numbers 
> (which is the vast majority of random numbers to be generated), the 
> performance is even worse by 10 to 15%
> 
> - generating larger lengths (tested with 4096 bytes) of random numbers, the 
> performance increases by 3%
> 
> Using ctr(aes-aesni) on 32 bit, the numbers are generally worse by 5 to 10%.

ctr(aes-aesni) is not the same thing as ctr-aes-aesni, the former
being just another way of doing what you were doing.  So did you
actually test the real optimised version which is ctr-aes-aesni?

Thanks,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

  parent reply	other threads:[~2016-06-08  8:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-31 11:11 [PATCH] crypto: DRBG - reduce number of setkey calls Stephan Mueller
2016-05-31 11:23 ` [RFC] DRBG: which shall be default? Stephan Mueller
2016-06-02  8:40   ` Herbert Xu
2016-06-02  9:31     ` Stephan Mueller
2016-06-02  9:42       ` Herbert Xu
2016-06-02 12:06         ` Stephan Mueller
2016-06-08  2:41           ` Herbert Xu
2016-06-08  7:56             ` Stephan Mueller
2016-06-08  8:00               ` Stephan Mueller
2016-06-08  8:00               ` Herbert Xu [this message]
2016-06-08  8:58                 ` Stephan Mueller
2016-06-08  9:03                   ` Herbert Xu
2016-06-08  9:07                     ` Stephan Mueller
2016-06-08  9:15                       ` Herbert Xu
2016-06-08  9:32                         ` Stephan Mueller
2016-06-02 10:45 ` [PATCH] crypto: DRBG - reduce number of setkey calls 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=20160608080055.GA13686@gondor.apana.org.au \
    --to=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=smueller@chronox.de \
    /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.