From patchwork Thu Feb 28 16:35:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arkadiusz Kusztal X-Patchwork-Id: 50660 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 72C22326C; Thu, 28 Feb 2019 17:37:17 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 742B73256 for ; Thu, 28 Feb 2019 17:37:15 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Feb 2019 08:37:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,423,1544515200"; d="scan'208";a="142425931" Received: from akusztax-mobl.ger.corp.intel.com ([10.103.104.106]) by orsmga001.jf.intel.com with ESMTP; 28 Feb 2019 08:37:12 -0800 From: Arek Kusztal To: dev@dpdk.org Cc: akhil.goyal@nxp.com, fiona.trahe@intel.com, Arek Kusztal Date: Thu, 28 Feb 2019 17:35:19 +0100 Message-Id: <20190228163523.6096-1-arkadiuszx.kusztal@intel.com> X-Mailer: git-send-email 2.19.1.windows.1 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 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" 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 This patchset depends on following patches: - [v2,1/3] cryptodev: add result field to mod exp and inverse operations (http://patchwork.dpdk.org/patch/50256/) Notes: meson build will be added in v2 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 doc/guides/cryptodevs/qat.rst | 10 + drivers/common/qat/Makefile | 6 +- 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 | 6 + drivers/crypto/qat/qat_asym.c | 336 +++++ drivers/crypto/qat/qat_asym.h | 105 ++ drivers/crypto/qat/qat_asym_capabilities.h | 42 + drivers/crypto/qat/qat_asym_pmd.c | 310 ++++ drivers/crypto/qat/qat_asym_pmd.h | 46 + drivers/crypto/qat/qat_sym_pmd.c | 1 - drivers/crypto/qat/qat_sym_pmd.h | 3 +- 14 files changed, 2887 insertions(+), 6 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