crypto: axis - use a constant time tag compare
authorLars Persson <lars.persson@axis.com>
Wed, 23 Jan 2019 11:59:45 +0000 (12:59 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Feb 2019 06:42:04 +0000 (14:42 +0800)
commit5997a245c77b754fb8ef807043066fcfde64858c
treec0a9aeafd7531ab46c1adfe25d84a83b3d49055d
parent48ef0908b81cc6b92ec8b157bb78ce2c4eddd7c7
crypto: axis - use a constant time tag compare

Avoid plain memcmp() on the AEAD tag value as this could leak
information through a timing side channel.

Signed-off-by: Lars Persson <larper@axis.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/axis/artpec6_crypto.c