Message ID | 20240905145612.1732-1-gmuthukrishn@marvell.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> 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 94E7E4590E; Thu, 5 Sep 2024 16:56:49 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 68408427E7; Thu, 5 Sep 2024 16:56:49 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 6EE264025C for <dev@dpdk.org>; Thu, 5 Sep 2024 16:56:47 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 485AWPT7018434; Thu, 5 Sep 2024 07:56:28 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=pfpt0220; bh=JTr5ADG3kVjv7Kbhyti5GXI EhgJC//0uInb2B1Jt13s=; b=YDaMEZgHowsfJj5QtuRg78Cif2oDzQ3wuaPu4PS 5nKpniAJl+o3Z/JPLcWLMPztcas520i8Rm99hXNKr9/kQvO4AJ9bYjjlfyPROwXx 963mZDX98v7+1HDBG22+qPbz1KtBB9sYHRgjeyBsWOMCNNPQ7AfoBRuixIVJXNuI XIx8hS+hgC161xi88ZhAzhGjvuXSTUAw78tTWerJRMKbhaIiZnx4b8Ip4oE2rlk7 kekDKI+bMcy55pCW7Ojf9pH0GQQiGuuARXSMFf9xv9F9wn8W68JzCUZURmHaUfFJ DD7CT/BYzPbR1rhBGzNcQ7Id5SURam7oXvIKUsx4k1kRhDg== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 41faywh12g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Sep 2024 07:56:28 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 5 Sep 2024 07:56:27 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Thu, 5 Sep 2024 07:56:27 -0700 Received: from BG-LT91401.marvell.com (BG-LT91401.marvell.com [10.28.168.34]) by maili.marvell.com (Postfix) with ESMTP id 003CF5B6976; Thu, 5 Sep 2024 07:56:17 -0700 (PDT) From: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> To: <dev@dpdk.org> CC: Anoob Joseph <anoobj@marvell.com>, Akhil Goyal <gakhil@marvell.com>, <bruce.richardson@intel.com>, <ciara.power@intel.com>, <jerinj@marvell.com>, <fanzhang.oss@gmail.com>, <arkadiuszx.kusztal@intel.com>, <kai.ji@intel.com>, <jack.bond-preston@foss.arm.com>, <david.marchand@redhat.com>, <hemant.agrawal@nxp.com>, <pablo.de.lara.guarch@intel.com>, <fiona.trahe@intel.com>, <declan.doherty@intel.com>, <matan@nvidia.com>, <ruifeng.wang@arm.com>, <abhinandan.gujjar@intel.com>, <maxime.coquelin@redhat.com>, <chenbox@nvidia.com>, <sunilprakashrao.uttarwar@amd.com>, <andrew.boyer@amd.com>, <ajit.khaparde@broadcom.com>, <raveendra.padasalagi@broadcom.com>, <vikas.gupta@broadcom.com>, <zhangfei.gao@linaro.org>, <g.singh@nxp.com>, <jianjay.zhou@huawei.com>, <lee.daly@intel.com>, Brian Dooley <brian.dooley@intel.com>, Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Subject: [PATCH 0/6] vhost: add asymmetric crypto support Date: Thu, 5 Sep 2024 20:26:04 +0530 Message-ID: <20240905145612.1732-1-gmuthukrishn@marvell.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: lCFDIs7t45NcAhUbkNY5m5TafvbvjbGP X-Proofpoint-GUID: lCFDIs7t45NcAhUbkNY5m5TafvbvjbGP X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-05_10,2024-09-04_01,2024-09-02_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
vhost: add asymmetric crypto support
|
|
Message
Gowrishankar Muthukrishnan
Sept. 5, 2024, 2:56 p.m. UTC
This series of patches add asymmetric crypto support in vhost library and virtio PMD, specifically for RSA. To verify functionality in QEMU, you would need: https://github.com/qemu/qemu/commit/5c33f9783ace0b5e077060b220978d94fecb3e81 There is VirtIO specification change proposed for RSA support, and this series apply it at required places. https://lists.oasis-open.org/archives/virtio-comment/202305/msg00341.html In case, qemu crashes, check disabling VHOST_USER_PROTOCOL_F_CONFIG in virtio pmd, when the device starts. This issue was seen with older qemu. Gowrishankar Muthukrishnan (6): cryptodev: move RSA padding information into xform cryptodev: fix RSA xform for ASN.1 syntax vhost: add asymmetric RSA support crypto/virtio: add asymmetric RSA support examples/vhost_crypto: add asymmetric support app/test: add asymmetric tests for virtio pmd app/test/test_cryptodev_asym.c | 46 +- app/test/test_cryptodev_rsa_test_vectors.h | 28 + drivers/common/cpt/cpt_ucode_asym.h | 4 +- drivers/crypto/cnxk/cnxk_ae.h | 13 +- drivers/crypto/octeontx/otx_cryptodev_ops.c | 4 +- drivers/crypto/openssl/openssl_pmd_private.h | 1 + drivers/crypto/openssl/rte_openssl_pmd.c | 4 +- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 1 + drivers/crypto/qat/qat_asym.c | 17 +- .../virtio/virtio_crypto_capabilities.h | 19 + drivers/crypto/virtio/virtio_cryptodev.c | 388 ++++++++++-- drivers/crypto/virtio/virtio_rxtx.c | 233 +++++++- examples/fips_validation/main.c | 52 +- examples/vhost_crypto/main.c | 50 +- lib/cryptodev/cryptodev_pmd.h | 6 + lib/cryptodev/rte_crypto_asym.h | 8 +- lib/vhost/rte_vhost_crypto.h | 14 +- lib/vhost/vhost.c | 11 +- lib/vhost/vhost.h | 1 + lib/vhost/vhost_crypto.c | 550 ++++++++++++++++-- lib/vhost/vhost_user.c | 4 + lib/vhost/vhost_user.h | 34 +- lib/vhost/virtio_crypto.h | 87 ++- 23 files changed, 1378 insertions(+), 197 deletions(-)