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 2AD3CA00C2; Tue, 9 Aug 2022 12:54:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E4CAF42BC8; Tue, 9 Aug 2022 12:54:10 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id DDC5942BB4 for ; Tue, 9 Aug 2022 12:54:09 +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 2791T66D017193 for ; Tue, 9 Aug 2022 03:54:09 -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=pAKCv13jG+RVF+gHIWW5q0DCH42DvAMXpP1xMC5zYZU=; b=Sijm9Ofo+swV2ynnoFOdrzN0MLs6Pu8gmf/vxlGkXIa3eNLwZnO/hcO21dZT/JY/DRoO t8s1MQwZUMTemiMyrVeDMOGZeQWVqdtzRwJUN2iMio5vkWza/SWurTPkndafHtXQ6jna IfJ/b9SS/terQsCT+ND1UTsrR83X5wKTuLq4a2Q1U7sw68BDVGNrhVAmyA3hkpPp6YOt rDEJbgZRs2ul1+hjyxa1y9vO6Frncbm2TJazb0+EllIHP2nAhq16IIgg3xbg2VPgdRNE JUaS3U8D+fvl9ARwyE89jgXhIOnoQgk1mMoOhjoZCY5aajvsv+y4t6ix3SlE9cN9Yiin yQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3hudy6spgs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 09 Aug 2022 03:54:09 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 9 Aug 2022 03:54:07 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Tue, 9 Aug 2022 03:54:07 -0700 Received: from BG-LT92004.corp.innovium.com (unknown [10.193.69.70]) by maili.marvell.com (Postfix) with ESMTP id 3CBFE3F7048; Tue, 9 Aug 2022 03:54:04 -0700 (PDT) From: Anoob Joseph To: Akhil Goyal , Jerin Jacob CC: Archana Muniganti , Tejasree Kondoj , Subject: [PATCH v2 03/18] crypto/cnxk: remove zero IV Date: Tue, 9 Aug 2022 16:23:41 +0530 Message-ID: <20220809105356.561-4-anoobj@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220809105356.561-1-anoobj@marvell.com> References: <20220808080606.220-1-anoobj@marvell.com> <20220809105356.561-1-anoobj@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: C6MgcdHMbh1uxJ_N_gLqkP6PavFse9X2 X-Proofpoint-ORIG-GUID: C6MgcdHMbh1uxJ_N_gLqkP6PavFse9X2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-09_03,2022-08-09_02,2022-06-22_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 Zeroising AES-CMAC IV would be done in microcode. Extra clearing in DPDK is not required. Signed-off-by: Anoob Joseph Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cnxk_se.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_se.h b/drivers/crypto/cnxk/cnxk_se.h index a75003f2c6..5574dbfa04 100644 --- a/drivers/crypto/cnxk/cnxk_se.h +++ b/drivers/crypto/cnxk/cnxk_se.h @@ -91,10 +91,6 @@ pdcp_iv_copy(uint8_t *iv_d, uint8_t *iv_s, const uint8_t pdcp_alg_type, memcpy(iv_d + 6, iv_s + 8, 17); } else memcpy(iv_d, iv_s, 16); - } else { - /* AES-CMAC EIA2, microcode expects 16B zeroized IV */ - for (j = 0; j < 16; j++) - iv_d[j] = 0; } } -- 2.25.1