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: NConor Mcloughlin <conor.mcloughlin@intel.com> Tested-by: NSergey Portnoy <sergey.portnoy@intel.com> Signed-off-by: NShant KumarX Sonnad <shant.kumarx.sonnad@intel.com> Signed-off-by: NGiovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
Showing
想要评论请 注册 或 登录