From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id B1418A05D3 for ; Wed, 27 Mar 2019 11:24:52 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D53AB5B2A; Wed, 27 Mar 2019 11:24:51 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 1BDCB5B1E for ; Wed, 27 Mar 2019 11:24:49 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Mar 2019 03:24:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,276,1549958400"; d="scan'208";a="155624371" Received: from akusztax-mobl.ger.corp.intel.com ([10.104.116.172]) by fmsmga002.fm.intel.com with ESMTP; 27 Mar 2019 03:24:47 -0700 From: Arek Kusztal To: dev@dpdk.org Cc: akhil.goyal@nxp.com, fiona.trahe@intel.com, Arek Kusztal Date: Wed, 27 Mar 2019 11:23:08 +0100 Message-Id: <20190327102312.10456-1-arkadiuszx.kusztal@intel.com> X-Mailer: git-send-email 2.19.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 0/4] Add PMD for asymmetric cryptography operations using Intel QuickAssist Technology devices X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Content-Type: text/plain; charset="UTF-8" Message-ID: <20190327102308.jwzIWSIZtVwLjjCFxE6eG5Jc1aKr2UGrhXg4J49u7KE@z> This patchset adds Poll Mode Driver to use asymmetric cryptography functions using Intel QuickAssist Techology devices. Following functions are available with this patchset: * Modular Exponentiation * Modular Inverse This patch depends on a QAT PF driver for device initialization. See the file docs/guides/cryptodevs/qat.rst for configuration details. Limitations: * Maximum parameter size: 4096 bits - For both modular exponentiaion and modular multiplicative inverse v3: - fixed some checkpatch issues v2: - added Meson build - fixed segfault on cookie - fixed mod inverse problem Arek Kusztal (4): common/qat: add headers for asymmetric crypto crypto/qat: add asymmetric cryptography PMD crypto/qat: add modular exponentiation to qat asym pmd crypto/qat: add modular multiplicative inverse to qat asym pmd config/common_base | 1 + doc/guides/cryptodevs/qat.rst | 10 + drivers/common/qat/Makefile | 8 + drivers/common/qat/qat_adf/icp_qat_fw_mmp_ids.h | 1538 ++++++++++++++++++++ drivers/common/qat/qat_adf/icp_qat_fw_pke.h | 426 ++++++ .../qat/qat_adf/qat_pke_functionality_arrays.h | 52 + drivers/common/qat/qat_device.h | 12 +- drivers/common/qat/qat_qp.c | 8 + drivers/crypto/qat/meson.build | 5 +- drivers/crypto/qat/qat_asym.c | 414 ++++++ drivers/crypto/qat/qat_asym.h | 106 ++ drivers/crypto/qat/qat_asym_capabilities.h | 42 + drivers/crypto/qat/qat_asym_pmd.c | 314 ++++ drivers/crypto/qat/qat_asym_pmd.h | 46 + drivers/crypto/qat/qat_sym_pmd.c | 1 - drivers/crypto/qat/qat_sym_pmd.h | 3 +- mk/rte.app.mk | 1 + 17 files changed, 2982 insertions(+), 5 deletions(-) create mode 100644 drivers/common/qat/qat_adf/icp_qat_fw_mmp_ids.h create mode 100644 drivers/common/qat/qat_adf/icp_qat_fw_pke.h create mode 100644 drivers/common/qat/qat_adf/qat_pke_functionality_arrays.h create mode 100644 drivers/crypto/qat/qat_asym.c create mode 100644 drivers/crypto/qat/qat_asym.h create mode 100644 drivers/crypto/qat/qat_asym_capabilities.h create mode 100644 drivers/crypto/qat/qat_asym_pmd.c create mode 100644 drivers/crypto/qat/qat_asym_pmd.h -- 2.1.0