diff options
author | Stephan Mueller <smueller@chronox.de> | 2016-03-28 16:47:55 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-04-05 20:35:53 +0800 |
commit | 329d652784fb34926715faa017ef5d4426f6b3ec (patch) | |
tree | f7fba5de1afa03d6c89a7345bbda2183b89887e3 /crypto/cast5_generic.c | |
parent | 15e923647800459c8599a0ef9de04230f0a23f0d (diff) | |
download | linux-crypto-329d652784fb34926715faa017ef5d4426f6b3ec.tar.gz linux-crypto-329d652784fb34926715faa017ef5d4426f6b3ec.zip |
crypto: drbg - set HMAC key only when altered
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.
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/cast5_generic.c')
0 files changed, 0 insertions, 0 deletions