summaryrefslogtreecommitdiff
path: root/crypto/rng.c
diff options
context:
space:
mode:
authorStephan Mueller <smueller@chronox.de>2016-05-31 13:11:57 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2016-06-02 18:39:01 +0800
commit660a1a79e6ecaf78208843fb3a1a441573d6af1f (patch)
treeaf0c6ffce35cb8e7b0372993c6b6b2e9f70ccb73 /crypto/rng.c
parent5cec70e9bcd56bf924c6b08cad3db16fb54e1c0d (diff)
downloadlinux-crypto-660a1a79e6ecaf78208843fb3a1a441573d6af1f.tar.gz
linux-crypto-660a1a79e6ecaf78208843fb3a1a441573d6af1f.zip
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>
Diffstat (limited to 'crypto/rng.c')
0 files changed, 0 insertions, 0 deletions