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

2016-06-02 Thread Herbert Xu
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,

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

2016-05-31 Thread Stephan Mueller
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