linux_old1/drivers/crypto/inside-secure
Ofer Heifetz c4daf4cc9c crypto: inside-secure - refrain from unneeded invalidations
The check to know if an invalidation is needed (i.e. when the context
changes) is done even if the context does not exist yet. This happens
when first setting a key for ciphers and/or hmac operations.

This commits adds a check in the _setkey functions to only check if an
invalidation is needed when a context exists, as there is no need to
perform this check otherwise.

Signed-off-by: Ofer Heifetz <oferh@marvell.com>
[Antoine: commit message and added a comment and reworked one of the
checks]
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2017-12-22 20:03:30 +11:00
..
Makefile
safexcel.c crypto: inside-secure - free requests even if their handling failed 2017-12-22 19:48:00 +11:00
safexcel.h crypto: inside-secure - increase the batch size 2017-06-20 11:21:47 +08:00
safexcel_cipher.c crypto: inside-secure - refrain from unneeded invalidations 2017-12-22 20:03:30 +11:00
safexcel_hash.c crypto: inside-secure - refrain from unneeded invalidations 2017-12-22 20:03:30 +11:00
safexcel_ring.c crypto: inside-secure - use the base_end pointer in ring rollback 2017-06-20 11:21:48 +08:00