From mboxrd@z Thu Jan 1 00:00:00 1970 From: Herbert Xu Subject: Re: [PATCH] crypto: DRBG - reduce number of setkey calls Date: Thu, 2 Jun 2016 18:45:21 +0800 Message-ID: <20160602104521.GA17150@gondor.apana.org.au> References: <1664837.3VbqQRUZed@positron.chronox.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-crypto@vger.kernel.org To: Stephan Mueller Return-path: Received: from helcar.hengli.com.au ([209.40.204.226]:45190 "EHLO helcar.hengli.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751317AbcFBKp0 (ORCPT ); Thu, 2 Jun 2016 06:45:26 -0400 Content-Disposition: inline In-Reply-To: <1664837.3VbqQRUZed@positron.chronox.de> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Tue, May 31, 2016 at 01:11:57PM +0200, Stephan Mueller wrote: > The CTR DRBG code always set the key for each sym cipher invocation even > though the key has not been changed. > > The patch ensures that the setkey is only invoked when a new key is > generated by the DRBG. > > With this patch, the CTR DRBG performance increases by more than 150%. > > Signed-off-by: Stephan Mueller Patch applied. Thanks! -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt