patches for DPDK stable branches
 help / color / mirror / Atom feed
From: "De Lara Guarch, Pablo" <pablo.de.lara.guarch@intel.com>
To: marko.kovacevic@intel.com
Cc: "De Lara Guarch, Pablo" <pablo.de.lara.guarch@intel.com>,
	stable@dpdk.org, DeLaraGuarch
Subject: [dpdk-stable] [PATCH 3/5] crypto/aesni_mb: fix truncated digest size for CMAC
Date: Wed,  4 Jul 2018 07:19:03 +0100	[thread overview]
Message-ID: <20180704061905.17932-3-pablo.de.lara.guarch@intel.com> (raw)
In-Reply-To: <20180704061905.17932-1-pablo.de.lara.guarch@intel.com>

The truncated digest size for AES-CMAC is 12 and not 16,
as the Multi-buffer library can output both 12 and 16 bytes.

Fixes: 6491dbbecebb ("crypto/aesni_mb: support AES CMAC")
Cc: stable@dpdk.org

Change-Id: I4dc7cfd4a503d7f2cfec98dc029e30c24d25c760
Signed-off-by: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>
---
 drivers/crypto/aesni_mb/rte_aesni_mb_pmd_private.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_private.h b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_private.h
index 426b25242..d290ee655 100644
--- a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_private.h
+++ b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_private.h
@@ -55,7 +55,7 @@ static const unsigned auth_truncated_digest_byte_lengths[] = {
 		[SHA_384]	= 24,
 		[SHA_512]	= 32,
 		[AES_XCBC]	= 12,
-		[AES_CMAC]	= 16,
+		[AES_CMAC]	= 12,
 		[AES_CCM]	= 8,
 		[NULL_HASH]	= 0
 };
-- 
2.14.4

       reply	other threads:[~2018-07-04 14:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20180704061905.17932-1-pablo.de.lara.guarch@intel.com>
2018-07-04  6:19 ` De Lara Guarch, Pablo [this message]
2018-07-04 14:43   ` De Lara Guarch, Pablo
     [not found] <20180814003848.11095-1-pablo.de.lara.guarch@intel.com>
2018-08-14  0:38 ` Pablo de Lara

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=20180704061905.17932-3-pablo.de.lara.guarch@intel.com \
    --to=pablo.de.lara.guarch@intel.com \
    --cc=marko.kovacevic@intel.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).