From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7C5A2A0545; Mon, 20 Jun 2022 14:27:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5468C427F3; Mon, 20 Jun 2022 14:27:03 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id E801F427EB for ; Mon, 20 Jun 2022 14:27:01 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25KA2l35011557 for ; Mon, 20 Jun 2022 05:27:01 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=qB0LLEk1+KjpRNi8wYq3uRKGgUdq7WOVr7ArmXxTUtI=; b=Obk1VuyOgDaSTBgZRHlmQDkDRMwy3qYo5EGnrBILTN/GJFWjFf+7vIimEdUEs2l3KDxI 3lh9VAW43ita43KqKig/L4cEKA+21qaoTC9IMGkvuhpuONIoI/ogTV8C9sq5vTD6o/xG vsC6j7XTJg6PC4CEw6ctI0LDQrQNPl9eXFwE4dmsEsosikgGY4RNdtfxGHao8Ylq6IT2 HZWFGffQ0h2BBuuVvpT/9tHjF6UDphROHX03VE7QMNfNQp8tugLkirxKwUrIpdJm4wom NQ+I55SQ+jtIZF9kOf0hlx5HUZjCLw0CwyGCmSVeqvXUAn/xphODprQ5hYfy7O8f1wcw Zw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3gsc2p6vpc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 20 Jun 2022 05:27:00 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 20 Jun 2022 05:26:59 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 20 Jun 2022 05:26:59 -0700 Received: from hyd1554.marvell.com (unknown [10.29.57.11]) by maili.marvell.com (Postfix) with ESMTP id E4A435B6958; Mon, 20 Jun 2022 05:26:57 -0700 (PDT) From: Tejasree Kondoj To: Akhil Goyal CC: Anoob Joseph , Ankur Dwivedi , Subject: [PATCH v2 1/3] crypto/cnxk: fix CMAC IV Date: Mon, 20 Jun 2022 17:56:52 +0530 Message-ID: <20220620122654.1014994-2-ktejasree@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220620122654.1014994-1-ktejasree@marvell.com> References: <20220620122654.1014994-1-ktejasree@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: gOM9qG7eRR65w_pPqtQkZq6oI9jSlua7 X-Proofpoint-GUID: gOM9qG7eRR65w_pPqtQkZq6oI9jSlua7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-20_05,2022-06-17_01,2022-02-23_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Fixing CMAC IV length to 16 bytes. Fixes: 759b5e653580 ("crypto/cnxk: support AES-CMAC") Signed-off-by: Tejasree Kondoj --- 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