summaryrefslogtreecommitdiff
path: root/net/tipc
diff options
context:
space:
mode:
authorDominik Przychodni <dominik.przychodni@intel.com>2020-08-31 11:59:59 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-17 11:03:31 +0200
commitdf439d2680b8573244dbcc8bd6f935e058f9a29a (patch)
treeeae31f8cf68b4ad9b787a342793ff4ae3f4884e0 /net/tipc
parent71ad780260089a19b8563096d64fd7588ccb0a0d (diff)
crypto: qat - check cipher length for aead AES-CBC-HMAC-SHA
commit 45cb6653b0c355fc1445a8069ba78a4ce8720511 upstream. Return -EINVAL for authenc(hmac(sha1),cbc(aes)), authenc(hmac(sha256),cbc(aes)) and authenc(hmac(sha512),cbc(aes)) if the cipher length is not multiple of the AES block. This is to prevent an undefined device behaviour. Fixes: d370cec32194 ("crypto: qat - Intel(R) QAT crypto interface") Cc: <stable@vger.kernel.org> Signed-off-by: Dominik Przychodni <dominik.przychodni@intel.com> [giovanni.cabiddu@intel.com: reworded commit message] Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions