From patchwork Fri May 26 09:12:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gowrishankar Muthukrishnan X-Patchwork-Id: 127554 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 4596B42BA9; Fri, 26 May 2023 11:12:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 36374427F2; Fri, 26 May 2023 11:12:14 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 5410A427F2 for ; Fri, 26 May 2023 11:12:12 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34Q1qNto031852; Fri, 26 May 2023 02:12:11 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=YQPxmSTdDcOf9wh7/xkdIjN5tW8gF8noLKhsw+zyyW0=; b=WIH1wJyEPPIokcsz1FphcCZBaZi1QFY51AEW3G0w+/jbgwV3vcf4UDXHErh2plsdK57Y mP0PlPwFNjwewwednIR98P1WugUclpiW52ZLDIZcUr3/558IV9wt2x0ZJv12xFQW4nXM uaR8J1c9s01QKs6+CwiknvMdfTY7KwF3qfsMcjbzYQ2+0l8ksbdhRZNDheSQqodu6J7Z 9EaKZPrT5UBc4EInXrCXttQNa2vl3KgG2SZkdrEVyHLoR4xVg2LioW/2aS3XAxjbPn2W VLRleRPEokHbBc+ZoimOVDrWnvf95XblX1UcI59eRLLi9nSCnp/NwuO+3Fxd7mLe6tdK Mw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3qtg6t24mp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 26 May 2023 02:12: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.48; Fri, 26 May 2023 02:12: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.48 via Frontend Transport; Fri, 26 May 2023 02:12:09 -0700 Received: from BG-LT91401.marvell.com (unknown [10.193.69.246]) by maili.marvell.com (Postfix) with ESMTP id B11063F704D; Fri, 26 May 2023 02:12:07 -0700 (PDT) From: Gowrishankar Muthukrishnan To: CC: , Akhil Goyal , Fan Zhang , Gowrishankar Muthukrishnan Subject: [PATCH v2 0/3] SM2 crypto algorithm support Date: Fri, 26 May 2023 14:42:01 +0530 Message-ID: X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: YfuNl7A9cn1w3ntVRQmvLUQKpw_HP-pH X-Proofpoint-GUID: YfuNl7A9cn1w3ntVRQmvLUQKpw_HP-pH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-26_01,2023-05-25_03,2023-05-22_02 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 This patch series adds SM2 crypto algorithm support, along with tests verified using Openssl. v2: - addressed suggestions in v1. Gowrishankar Muthukrishnan (3): cryptodev: add SM2 asymmetric crypto algorithm test/crypto: add asymmetric SM2 test cases crypto/openssl: add SM2 asymmetric crypto support app/test/test_cryptodev_asym.c | 504 +++++++++++++++++++ app/test/test_cryptodev_sm2_test_vectors.h | 120 +++++ doc/guides/cryptodevs/features/default.ini | 1 + doc/guides/cryptodevs/features/openssl.ini | 1 + doc/guides/cryptodevs/openssl.rst | 1 + doc/guides/rel_notes/release_23_07.rst | 9 + drivers/crypto/openssl/openssl_pmd_private.h | 7 + drivers/crypto/openssl/rte_openssl_pmd.c | 245 +++++++++ drivers/crypto/openssl/rte_openssl_pmd_ops.c | 101 ++++ lib/cryptodev/rte_crypto_asym.h | 77 +++ lib/cryptodev/rte_cryptodev.c | 1 + 11 files changed, 1067 insertions(+) create mode 100644 app/test/test_cryptodev_sm2_test_vectors.h