From: Tejasree Kondoj <ktejasree@marvell.com>
To: Akhil Goyal <gakhil@marvell.com>
Cc: Anoob Joseph <anoobj@marvell.com>,
Ankur Dwivedi <adwivedi@marvell.com>, <dev@dpdk.org>
Subject: [PATCH v2 1/3] crypto/cnxk: fix CMAC IV
Date: Mon, 20 Jun 2022 17:56:52 +0530 [thread overview]
Message-ID: <20220620122654.1014994-2-ktejasree@marvell.com> (raw)
In-Reply-To: <20220620122654.1014994-1-ktejasree@marvell.com>
Fixing CMAC IV length to 16 bytes.
Fixes: 759b5e653580 ("crypto/cnxk: support AES-CMAC")
Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
---
drivers/crypto/cnxk/cnxk_se.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/cnxk/cnxk_se.h b/drivers/crypto/cnxk/cnxk_se.h
index 5c61e4dfa4..ff98d9b553 100644
--- a/drivers/crypto/cnxk/cnxk_se.h
+++ b/drivers/crypto/cnxk/cnxk_se.h
@@ -82,7 +82,7 @@ pdcp_iv_copy(uint8_t *iv_d, uint8_t *iv_s, const uint8_t pdcp_alg_type,
memcpy(iv_d, iv_s, 16);
} else {
/* AES-CMAC EIA2, microcode expects 16B zeroized IV */
- for (j = 0; j < 4; j++)
+ for (j = 0; j < 16; j++)
iv_d[j] = 0;
}
}
--
2.25.1
next prev parent reply other threads:[~2022-06-20 12:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-20 12:26 [PATCH v2 0/3] support stream cipher chained operations Tejasree Kondoj
2022-06-20 12:26 ` Tejasree Kondoj [this message]
2022-06-20 12:26 ` [PATCH v2 2/3] crypto/cnxk: " Tejasree Kondoj
2022-06-20 12:26 ` [PATCH v2 3/3] crypto/cnxk: support scatter gather mode Tejasree Kondoj
2022-06-21 12:37 ` [PATCH v2 0/3] support stream cipher chained operations Akhil Goyal
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=20220620122654.1014994-2-ktejasree@marvell.com \
--to=ktejasree@marvell.com \
--cc=adwivedi@marvell.com \
--cc=anoobj@marvell.com \
--cc=dev@dpdk.org \
--cc=gakhil@marvell.com \
/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).