]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: ccree - fix AEAD decrypt auth fail
authorGilad Ben-Yossef <gilad@benyossef.com>
Thu, 16 Jan 2020 10:14:38 +0000 (12:14 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 22 Jan 2020 08:21:09 +0000 (16:21 +0800)
commitbcc5319a41997ac3e508a1a7fa10d29790ceb4e9
tree88939dded18259bcc15c533663620b04c7dd3dc6
parent46cd63f549872c50d465c7e95f84ed097364c51f
crypto: ccree - fix AEAD decrypt auth fail

On AEAD decryption authentication failure we are suppose to
zero out the output plaintext buffer. However, we've missed
skipping the optional associated data that may prefix the
ciphertext. This commit fixes this issue.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Fixes: 655b3c4dfa96 ("crypto: ccree - use std api sg_zero_buffer")
Cc: stable@vger.kernel.org
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccree/cc_aead.c