commit | ed494d4fa234443a005489afb6b9583415ad89ff | [log] [tgz] |
---|---|---|
author | Stephan Mueller <smueller@chronox.de> | Tue May 31 13:11:57 2016 +0200 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Thu Jun 02 18:39:01 2016 +0800 |
tree | f638837277d65abd82370e7749b3aecac569df99 | |
parent | 5318c53d5b4bbf097ccba2e74831d67e4d63b1a1 [diff] |
crypto: drbg - reduce number of setkey calls 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 <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>