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 EA246A0093; Fri, 17 Jun 2022 09:36:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5BECD4280B; Fri, 17 Jun 2022 09:36:14 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 85C04410E7 for ; Fri, 17 Jun 2022 09:36:12 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25H3kwv8022796 for ; Fri, 17 Jun 2022 00:36:11 -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=8mNG1nz1GAmwOlYklG0+v9ORC8jjjpD41YjUaWOGssA=; b=JX3mXaOlfSP0OtFtVaxZqvCfb+Hf8tnPkE4xI66qafWfuIUPurpbt8Z4mEgCGZERWEqK qRn6FZvRMVweaoDetGkYVRTzprbY1yo+xX1Rj8hskXxFmxCnJ/Kc4WTZU5iRHzVt2MQt Y9u1amCiBIOsdEMHHnXBj7lcop+fCY3dzMVol1GntLPBVp7L7WnBuQlxdVDpsK5hPJPV w0pji8VTZ1yEPLrtKwgHjEY5vHO3JLKXBcZnwH7gY50Hinn39EL6jRiH+dDAT+a5G/rn 9pQTO29WMxDxTip5X28aAQlRl8Y+8Brc9b/bjVANWOm9MhZYQULJV4POxLDRkjLX8RGl xg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3grj05rrqs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 17 Jun 2022 00:36:11 -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; Fri, 17 Jun 2022 00:36:09 -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; Fri, 17 Jun 2022 00:36:09 -0700 Received: from hyd1554.marvell.com (unknown [10.29.57.11]) by maili.marvell.com (Postfix) with ESMTP id 4E3D13F7057; Fri, 17 Jun 2022 00:36:08 -0700 (PDT) From: Tejasree Kondoj To: Akhil Goyal CC: Anoob Joseph , Ankur Dwivedi , Subject: [PATCH 1/4] crypto/cnxk: fix CMAC IV Date: Fri, 17 Jun 2022 13:06:01 +0530 Message-ID: <20220617073604.889403-2-ktejasree@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220617073604.889403-1-ktejasree@marvell.com> References: <20220617073604.889403-1-ktejasree@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: zEZpQHHnE2p82O42O6WTa2hp_NjHKbxL X-Proofpoint-ORIG-GUID: zEZpQHHnE2p82O42O6WTa2hp_NjHKbxL 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-17_06,2022-06-16_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 8ed3a8b2ef..cca44f1d3e 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