crypto/qat: fix cipher descriptor for ZUC and SNOW
authorArek Kusztal <arkadiuszx.kusztal@intel.com>
Wed, 29 Apr 2020 14:51:34 +0000 (16:51 +0200)
committerAkhil Goyal <akhil.goyal@nxp.com>
Mon, 11 May 2020 11:17:43 +0000 (13:17 +0200)
commitfae347cb345a844442c18e1384b832912e07daa0
tree29766694b92ef38158477c56b747bd5a55d6589a
parent16f25ee0bf45a3e1b5c4ba4b7e548e321c7db60d
crypto/qat: fix cipher descriptor for ZUC and SNOW

Offset of cd pointer is too big by state1size + state2size, so few extra
unnecessary bytes will be copied into cd. Snow offset was improved as well.

Fixes: d9b7d5bbc845 ("crypto/qat: add ZUC EEA3/EIA3 capability")
Cc: stable@dpdk.org
Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/crypto/qat/qat_sym_session.c