From patchwork Wed May 25 15:53:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arkadiusz Kusztal X-Patchwork-Id: 111824 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 9147AA0555; Wed, 25 May 2022 19:03:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3A9BC40143; Wed, 25 May 2022 19:03:06 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id E68B4400EF for ; Wed, 25 May 2022 19:03:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653498185; x=1685034185; h=from:to:cc:subject:date:message-id; bh=WItaDUEvOdDDFGP445FDcygW6ZfEl13zZsiC5901PE4=; b=T6cgUuq3dMeS6wMMcfP/vDKEsB+ND+C/kw7L2YLuhAtVYSOOyf6a2YYh AdZZPSU7wYjf/NWbbOfP3LFhhV6eYGzJ/PlkQFgtGEME0jpA+qqDqBvQH SCgKkaYcBwrrBN4K35v+NuuIIt6rVD/JcMxk1U9lF4PTbqtZjNbj3gWmj zkKOMg2drbOco6dqj1dQEKyQGvnB1VvDR/i4TmA33+6jNNMb+AP/xJCn4 iGZSpRZXuDqpQFb69SqSJYy0muwEBDRvF8YS/D0nQ01k9lZPIsRG43Ar2 m1xOcKwt9uJZ/fF7N6t9UMvpFfuEVIi3dklM17tK15YMfDACu9OS8ygqR w==; X-IronPort-AV: E=McAfee;i="6400,9594,10358"; a="273595974" X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="273595974" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 10:01:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="664502247" Received: from silpixa00399302.ir.intel.com ([10.237.214.136]) by FMSMGA003.fm.intel.com with ESMTP; 25 May 2022 10:01:06 -0700 From: Arek Kusztal To: dev@dpdk.org Cc: gakhil@marvell.com, roy.fan.zhang@intel.com, Arek Kusztal Subject: [PATCH v2 00/14] cryptodev: rsa, dh, ecdh changes Date: Wed, 25 May 2022 16:53:10 +0100 Message-Id: <20220525155324.9288-1-arkadiuszx.kusztal@intel.com> X-Mailer: git-send-email 2.13.6 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 patchset introduces some of changes discussed on mailing list for 22.07 release in cryptodev asym. Key changes: - It fixes API for RSA (expescially signature paddings) - Adds Elliptic-Curve Diffie-Hellman - Adds Eliiptic-Curve point verification - Adds RSA missing padding fields - Adds asym op flags - Fixes many API comments (like EC curves) - Clarifies usage of NONE padding for singatures v2: - squashed commits - added capabilities - implemented sugestions from the mailing list Arek Kusztal (14): cryptodev: redefine ec group enum cryptodev: reduce number of comments in asym xform cryptodev: separate key exchange operation enum cryptodev: remove comment about using ephemeral key in dsa cryptodev: clarify usage of private key in dh cryptodev: move dh type from xform to dh op cryptodev: add elliptic curve diffie hellman cryptodev: add public key verify option cryptodev: add asym op flags cryptodev: clarify usage of rsa padding hash cryptodev: move RSA padding into separate struct cryptodev: clarify rsa verify with none padding cryptodev: add salt length and optional label cryptodev: add asym algorithms capabilities app/test-crypto-perf/main.c | 12 +- app/test-eventdev/test_perf_common.c | 2 +- app/test/test_cryptodev_asym.c | 234 ++++++++++++----- app/test/test_event_crypto_adapter.c | 16 +- drivers/common/cpt/cpt_ucode_asym.h | 4 +- drivers/crypto/cnxk/cnxk_ae.h | 8 +- drivers/crypto/octeontx/otx_cryptodev_ops.c | 4 +- drivers/crypto/openssl/rte_openssl_pmd.c | 17 +- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 155 ++++------- drivers/crypto/qat/dev/qat_asym_pmd_gen1.c | 68 ++++- drivers/crypto/qat/qat_asym.c | 12 +- lib/cryptodev/rte_crypto_asym.h | 375 ++++++++++++++++++--------- lib/cryptodev/rte_cryptodev.c | 96 ++++++- lib/cryptodev/rte_cryptodev.h | 75 +++++- lib/cryptodev/version.map | 4 + 15 files changed, 742 insertions(+), 340 deletions(-)