Re: [PATCH] crypto: drbg - set HMAC key only when altered

2016-04-05 Thread Herbert Xu
On Mon, Mar 28, 2016 at 04:47:55PM +0200, Stephan Mueller wrote: > The HMAC implementation allows setting the HMAC key independently from > the hashing operation. Therefore, the key only needs to be set when a > new key is generated. > > This patch increases the speed of the HMAC DRBG by at least

[PATCH] crypto: drbg - set HMAC key only when altered

2016-03-28 Thread Stephan Mueller
The HMAC implementation allows setting the HMAC key independently from the hashing operation. Therefore, the key only needs to be set when a new key is generated. This patch increases the speed of the HMAC DRBG by at least 35% depending on the use case. The patch is fully CAVS tested.