From patchwork Tue Oct 22 14:04:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arkadiusz Kusztal X-Patchwork-Id: 61654 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 0B8871BEA8; Tue, 22 Oct 2019 16:06:21 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 87D0F1BEA3 for ; Tue, 22 Oct 2019 16:06:19 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Oct 2019 07:06:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,327,1566889200"; d="scan'208";a="209681142" Received: from akusztax-mobl.ger.corp.intel.com ([10.103.104.118]) by fmsmga001.fm.intel.com with ESMTP; 22 Oct 2019 07:06:16 -0700 From: Arek Kusztal To: dev@dpdk.org Cc: akhil.goyal@nxp.com, fiona.trahe@intel.com, Arek Kusztal Date: Tue, 22 Oct 2019 16:04:24 +0200 Message-Id: <20191022140429.9008-1-arkadiuszx.kusztal@intel.com> X-Mailer: git-send-email 2.19.1.windows.1 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v4 0/5] Add session-less, RSA, RSA-CRT to QAT 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 session-less option, RSA algorithm, RSA-CRT algorithm to Intel QuickAssist Technology PMD. It also adds session-less test cases for those algorithms. Test case for RSA signature with no padding will be sent in a later patch. [1]crypto/qat: add sessionless implementation to asym pmd - this patch adds sessionless option to QAT, already implemented algorithms MOD EXP and MOD INV can be used with sessionless [2]crypto/qat: add rsa implementation to asym pmd - this patch adds option to use RSA with exponent private key pair (n,d) [3]crypto/qat: add rsa crt implementation to asym pmd - this patch adds CRT option to RSA, to improve performance of decryption and creating of signature v4: - fixed compilation issue Acked-by: Fiona Trahe Arek Kusztal (5): crypto/qat: add sessionless implementation to asym pmd crypto/qat: add rsa implementation to asym pmd crypto/qat: add rsa crt implementation to asym pmd test/crypto: add sessionless to asymmetric mod exp test/crypto: add rsa tests to qat and openssl with no padding app/test/test_cryptodev_asym.c | 207 +++++-- app/test/test_cryptodev_rsa_test_vectors.h | 226 ++++++++ doc/guides/cryptodevs/features/qat.ini | 4 + doc/guides/cryptodevs/qat.rst | 1 + doc/guides/rel_notes/release_19_11.rst | 8 + .../qat/qat_adf/qat_pke_functionality_arrays.h | 27 + drivers/crypto/qat/qat_asym.c | 634 ++++++++++++++++----- drivers/crypto/qat/qat_asym.h | 29 +- drivers/crypto/qat/qat_asym_capabilities.h | 21 + drivers/crypto/qat/qat_asym_pmd.c | 5 +- 10 files changed, 972 insertions(+), 190 deletions(-)