* [dpdk-stable] [PATCH] drivers/crypto: fix wrongly assignment of digest_len
@ 2018-12-19 16:02 Marko Kovacevic
2018-12-19 16:12 ` Kevin Traynor
0 siblings, 1 reply; 2+ messages in thread
From: Marko Kovacevic @ 2018-12-19 16:02 UTC (permalink / raw)
To: stable; +Cc: ktraynor, Marko Kovacevic
Fixes wrongly assignment of digest_len,
To assign session's auth digiest length by auth xform,
instead of cipher form. This caused a wrong truncated
mac size of AES-CMAC.
Fixes: 6491dbbecebb ("crypto/aesni_mb: support AES CMAC")
Cc: marko.kovacevic@intel.com
Signed-off-by: Marko Kovacevic <marko.kovacevic@intel.com>
---
drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c
index 93dc7a4..5af6521 100644
--- a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c
+++ b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c
@@ -403,7 +403,7 @@ aesni_mb_set_session_parameters(const struct aesni_mb_op_fns *mb_ops,
sess->chain_order = CIPHER_HASH;
auth_xform = xform->next;
cipher_xform = xform;
- sess->auth.digest_len = xform->auth.digest_length;
+ sess->auth.digest_len = auth_xform->auth.digest_length;
break;
case AESNI_MB_OP_HASH_ONLY:
sess->chain_order = HASH_CIPHER;
--
2.9.5
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-12-19 16:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-19 16:02 [dpdk-stable] [PATCH] drivers/crypto: fix wrongly assignment of digest_len Marko Kovacevic
2018-12-19 16:12 ` Kevin Traynor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).