summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/atmel-sha.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2016-02-03 10:46:51 -0200
committerHerbert Xu <herbert@gondor.apana.org.au>2016-02-06 15:33:28 +0800
commitbceab44eed7f37110136860cb2992fbd6702588d (patch)
tree1d7069ba9a5e42c413d7c4fa841b7e1aa62f767c /drivers/crypto/atmel-sha.c
parent6e56201857fabf0249204704e2a15e6f61d5a05c (diff)
downloadlinux-bceab44eed7f37110136860cb2992fbd6702588d.tar.bz2
crypto: sahara - avoid needlessly saving and restoring sahara_ctx
Based on commit 434b421241f2d0 ("crypto: caam - avoid needlessly saving and restoring caam_hash_ctx") from Russell King. When exporting and importing the hash state, we will only export and import into hashes which share the same struct crypto_ahash pointer. (See hash_accept->af_alg_accept->hash_accept_parent.) This means that saving the sahara_ctx structure on export, and restoring it on import is a waste of resources. So, remove this code. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/atmel-sha.c')
0 files changed, 0 insertions, 0 deletions