diff options
| author | Dominik Przychodni <dominik.przychodni@intel.com> | 2020-08-31 11:59:59 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-17 11:02:21 +0200 |
| commit | 1a62770681d693f092f55b1de81f9bf0b03274f9 (patch) | |
| tree | 8db0d83dc5914aa3b383ee5d4e1eefd5f8bc3f99 /kernel | |
| parent | ec1ba157043e5a419d4c4028648667e918272962 (diff) | |
| download | linux-1a62770681d693f092f55b1de81f9bf0b03274f9.tar.gz linux-1a62770681d693f092f55b1de81f9bf0b03274f9.tar.bz2 linux-1a62770681d693f092f55b1de81f9bf0b03274f9.zip | |
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 'kernel')
0 files changed, 0 insertions, 0 deletions
