From patchwork Tue Sep 27 07:30:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gowrishankar Muthukrishnan X-Patchwork-Id: 116946 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B582DA00C2; Tue, 27 Sep 2022 09:30:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 12648427F0; Tue, 27 Sep 2022 09:30:56 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 3169C427F0 for ; Tue, 27 Sep 2022 09:30:54 +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 28R4Ucsw016232; Tue, 27 Sep 2022 00:30:53 -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=CspLcgLsz33aoR/8wnOh9wFaFROAqbKLcOVTodVcFZ8=; b=IZrXgisZ3+zYuOdm4wJb4wP8VJBMQ6urh5f38leMFIDi/tgew4pQeoJiYjIMx5bj4Mrj YvLx+MPJgMQEyJbQBVorA8c4jo3Hdz9OqcWtKe3CEGy6hFJg+KiTRIRKiDNwx+OEtfw1 jx40FVzX9MBIjh5vpwHVwXJijAD7MipRuOpU4eSgrvjklWVKWabcUkSnpRsrbYD9Yyb0 iqbzqdO9o82yGKzLR5TqUMt9oSmR5bWmkU4zQYxllTlOv02jtMf+kfVrOdDOErOO8mSi padC8Lap5ECwert6zKFy5byqMT1B3NB6JjfJPT8avCrblbSPvcQoH9V0vZtY5bDpi6Jt EA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3jt1dp8x4r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 27 Sep 2022 00:30:53 -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, 27 Sep 2022 00:30:51 -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, 27 Sep 2022 00:30:51 -0700 Received: from localhost.localdomain (unknown [10.28.34.38]) by maili.marvell.com (Postfix) with ESMTP id A5A293F707B; Tue, 27 Sep 2022 00:30:48 -0700 (PDT) From: Gowrishankar Muthukrishnan To: CC: Anoob Joseph , Fan Zhang , Brian Dooley , Akhil Goyal , , Gowrishankar Muthukrishnan , Kiran Kumar K Subject: [v1 1/2] cryptodev: add enumeration in EC xform for FPM Date: Tue, 27 Sep 2022 13:00:42 +0530 Message-ID: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: I2J3Nm-zRTM_aIySTUNr1BVdx0rsTf39 X-Proofpoint-GUID: I2J3Nm-zRTM_aIySTUNr1BVdx0rsTf39 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-27_02,2022-09-22_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 Add enumeration in EC xform for FPM. Crypto driver would need this to xform point multiplication based on given type of EC curve. Signed-off-by: Kiran Kumar K Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Kai Ji --- lib/cryptodev/rte_crypto_asym.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/cryptodev/rte_crypto_asym.h b/lib/cryptodev/rte_crypto_asym.h index 8ae43d5f3d..da13a5e0c1 100644 --- a/lib/cryptodev/rte_crypto_asym.h +++ b/lib/cryptodev/rte_crypto_asym.h @@ -116,6 +116,9 @@ enum rte_crypto_asym_xform_type { /**< Elliptic Curve Diffie Hellman */ RTE_CRYPTO_ASYM_XFORM_ECPM, /**< Elliptic Curve Point Multiplication */ + + RTE_CRYPTO_ASYM_XFORM_ECFPM, + /**< Elliptic Curve Fixed Point Multiplication */ RTE_CRYPTO_ASYM_XFORM_TYPE_LIST_END /**< End of list */ };