crypto/caam_jr: fix total length in auth only s/g
authorGagandeep Singh <g.singh@nxp.com>
Mon, 8 Apr 2019 08:59:30 +0000 (08:59 +0000)
committerAkhil Goyal <akhil.goyal@nxp.com>
Thu, 18 Apr 2019 14:01:28 +0000 (16:01 +0200)
commit3386ca38bdc4c835489ed088e2ea0843e90dc5b6
tree7b4bedd6d9ced7a154e150f026b67c0a58bf6bac
parentd80dc4bb7c89321d8e03e5b7f278e30e99078bea
crypto/caam_jr: fix total length in auth only s/g

CAAM return wrong digest value in AUTH only sg test case
because digest calculated on wrong length of data

Fixes: 71dd6b9d44e7 ("crypto/caam_jr: add scatter gather")
Cc: stable@dpdk.org
Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
drivers/crypto/caam_jr/caam_jr.c