Commit 876ca38
crypto: qat - check cipher length for aead AES-CBC-HMAC-SHA
commit 45cb665 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: d370cec ("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>1 parent a745dda commit 876ca38
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
828 | 828 | | |
829 | 829 | | |
830 | 830 | | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
831 | 836 | | |
832 | 837 | | |
833 | 838 | | |
| |||
842 | 847 | | |
843 | 848 | | |
844 | 849 | | |
845 | | - | |
| 850 | + | |
846 | 851 | | |
847 | 852 | | |
848 | 853 | | |
| |||
871 | 876 | | |
872 | 877 | | |
873 | 878 | | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
874 | 882 | | |
875 | 883 | | |
876 | 884 | | |
| |||
0 commit comments