diff options
author | David Gstir <david@sigma-star.at> | 2015-11-15 17:14:41 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-11-16 14:39:23 +0100 |
commit | cb8affb55c7e64816f3effcd9b2fc3268c016fac (patch) | |
tree | a4db924f12ad7421f71ca0ca10a374b4eb814267 /drivers/crypto/atmel-sha-regs.h | |
parent | Linux 4.4-rc1 (diff) | |
download | linux-cb8affb55c7e64816f3effcd9b2fc3268c016fac.tar.xz linux-cb8affb55c7e64816f3effcd9b2fc3268c016fac.zip |
crypto: nx - Fix timing leak in GCM and CCM decryption
Using non-constant time memcmp() makes the verification of the authentication
tag in the decrypt path vulnerable to timing attacks. Fix this by using
crypto_memneq() instead.
Cc: stable@vger.kernel.org
Signed-off-by: David Gstir <david@sigma-star.at>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/atmel-sha-regs.h')
0 files changed, 0 insertions, 0 deletions