summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOfer Heifetz <oferh@marvell.com>2017-12-14 17:26:47 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2017-12-22 12:03:30 +0300
commitc4daf4cc9c8dc728ff4afc043a82997072bfb2fa (patch)
tree245704889279b72b67720aa362cfab6b23239d72 /lib
parentcc75f5ce82cc52a1c152fa22ea8c172d84fb5bdf (diff)
downloadlinux-c4daf4cc9c8dc728ff4afc043a82997072bfb2fa.tar.xz
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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions