linux/drivers/crypto/qat
Shant KumarX Sonnad c044b62c36 crypto: qat - add check for negative offset in alg precompute function
The offset is calculated based on type of hash algorithum.
If the algorithum is invalid the offset can have negative value.
Hence added negative offset check and return -EFAULT.

Reviewed-by: Conor Mcloughlin <conor.mcloughlin@intel.com>
Tested-by: Sergey Portnoy <sergey.portnoy@intel.com>
Signed-off-by: Shant KumarX Sonnad <shant.kumarx.sonnad@intel.com>
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2019-05-23 14:01:02 +08:00
..
qat_c3xxx crypto: prefix header search paths with $(srctree)/ 2019-02-01 14:42:05 +08:00
qat_c3xxxvf crypto: prefix header search paths with $(srctree)/ 2019-02-01 14:42:05 +08:00
qat_c62x crypto: prefix header search paths with $(srctree)/ 2019-02-01 14:42:05 +08:00
qat_c62xvf crypto: prefix header search paths with $(srctree)/ 2019-02-01 14:42:05 +08:00
qat_common crypto: qat - add check for negative offset in alg precompute function 2019-05-23 14:01:02 +08:00
qat_dh895xcc crypto: prefix header search paths with $(srctree)/ 2019-02-01 14:42:05 +08:00
qat_dh895xccvf crypto: prefix header search paths with $(srctree)/ 2019-02-01 14:42:05 +08:00
Kconfig crypto: qat - Add DH support 2016-07-11 18:03:10 +08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00