patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Marko Kovacevic <marko.kovacevic@intel.com>
To: stable@dpdk.org
Cc: ktraynor@redhat.com, Marko Kovacevic <marko.kovacevic@intel.com>
Subject: [dpdk-stable] [PATCH] drivers/crypto: fix wrongly assignment of digest_len
Date: Wed, 19 Dec 2018 16:02:04 +0000	[thread overview]
Message-ID: <20181219160204.40379-1-marko.kovacevic@intel.com> (raw)

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

             reply	other threads:[~2018-12-19 16:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-19 16:02 Marko Kovacevic [this message]
2018-12-19 16:12 ` Kevin Traynor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181219160204.40379-1-marko.kovacevic@intel.com \
    --to=marko.kovacevic@intel.com \
    --cc=ktraynor@redhat.com \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).