git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d80dc4b
)
crypto/caam_jr: fix total length in auth only s/g
author
Gagandeep Singh
<g.singh@nxp.com>
Mon, 8 Apr 2019 08:59:30 +0000
(08:59 +0000)
committer
Akhil Goyal
<akhil.goyal@nxp.com>
Thu, 18 Apr 2019 14:01:28 +0000
(16:01 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/crypto/caam_jr/caam_jr.c
b/drivers/crypto/caam_jr/caam_jr.c
index
da9e982
..
5028bd2
100644
(file)
--- a/
drivers/crypto/caam_jr/caam_jr.c
+++ b/
drivers/crypto/caam_jr/caam_jr.c
@@
-799,7
+799,7
@@
build_auth_only_sg(struct rte_crypto_op *op, struct caam_jr_session *ses)
sg->len = cpu_to_caam32(ses->digest_length);
length += ses->digest_length;
} else {
-
length
-= ses->digest_length;
+
sg->len
-= ses->digest_length;
}
/* last element*/