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 B7D82A034C; Mon, 8 Aug 2022 10:06:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 63CB942B8D; Mon, 8 Aug 2022 10:06:18 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id DB67742B71 for ; Mon, 8 Aug 2022 10:06:16 +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 277MmMps011992 for ; Mon, 8 Aug 2022 01:06:16 -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=cEjdX+0djO9HQrM+/ZlaVDr50RBtJl1NqyJifL7X5jZ8sdZ63YYS4uN6HevOwYoth0Ya StqVBoRyrKna6dj3yZ7q4jItvopgzREDq1bDZsKu1+hCsRMxmUgb0O6ddsXvknNDSt+S SrmURdWdlxEu0j6bjX5QjNMmZofSDrFff13r1MZJCoPw5vpu61iq/50ZdkjWEGWX7eV0 fPG7ucj1oFM/Nzo99IjiL8YDHGnmbNj1xjSs+ZDmttNO+YYTQ60VRC1+RZIB1pCz0qWG lo00/erNJPPeh23KZtPtXADK4NFDTqCD9OCZzKCSzWAEQXFNPXMhhg/lRhbdY9zJaO4G Ww== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3hsqtmmxdy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 08 Aug 2022 01:06:16 -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; Mon, 8 Aug 2022 01:06:14 -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; Mon, 8 Aug 2022 01:06:14 -0700 Received: from BG-LT92004.corp.innovium.com (unknown [10.28.160.62]) by maili.marvell.com (Postfix) with ESMTP id 652663F7043; Mon, 8 Aug 2022 01:06:12 -0700 (PDT) From: Anoob Joseph To: Akhil Goyal , Jerin Jacob CC: Archana Muniganti , Tejasree Kondoj , Subject: [PATCH 03/18] crypto/cnxk: remove zero IV Date: Mon, 8 Aug 2022 13:35:51 +0530 Message-ID: <20220808080606.220-4-anoobj@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220808080606.220-1-anoobj@marvell.com> References: <20220808080606.220-1-anoobj@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: QyuDlkueXKaxvqTtWmj_ZmuKhDVfFBZY X-Proofpoint-ORIG-GUID: QyuDlkueXKaxvqTtWmj_ZmuKhDVfFBZY 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-08_05,2022-08-05_01,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