Thread (16 messages) flat view 16 messages, 2 authors, 2016-06-08

Re: [PATCH] crypto: DRBG - reduce number of setkey calls

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2016-06-02 10:45:26

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 <redacted>
Patch applied.  Thanks!
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help