From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 48C43A0503; Fri, 20 May 2022 09:03:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F184342BAE; Fri, 20 May 2022 09:03:04 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id CC04B4280B for ; Fri, 20 May 2022 09:03:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653030183; x=1684566183; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=LTPB1iwHYc0wKXhTv0lmVtKIvPASupH7n0CppvOKJGs=; b=Ahu4G5JeRhKNIiWOemmLi22w59UcvwtSLdABfORFWqF7PeTDtHE/iEkQ mhNF/HCUYEK6BcCkpqghkk15B7Yc9a6F6rrXBJu2Tv9sSjmlMhF21/0hb +IgHag98Zgenf/B8syhKfS28qOWgJFydHYIgRB8Z0E6p2QhFqAtl81/MU OI0ccTao9sjrRU+mXRIULvLeNT4LOnNnpEFWMgm+2+AIFhMajPC5CFY9n c30N8a8JZqwQPpWWAFjEhmhjkc0Q5fyVOP9PlGMHGdy+IIdy9raIk1jsc e1mi2ad4iftcOBJx6KXdIlR8KskYkdzMlW9/Pw5QXDI5KMTUXZGytG4AD g==; X-IronPort-AV: E=McAfee;i="6400,9594,10352"; a="333140311" X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="333140311" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2022 00:03:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="599058198" Received: from silpixa00399302.ir.intel.com ([10.237.214.136]) by orsmga008.jf.intel.com with ESMTP; 20 May 2022 00:03:01 -0700 From: Arek Kusztal To: dev@dpdk.org Cc: gakhil@marvell.com, anoobj@marvell.com, roy.fan.zhang@intel.com, Arek Kusztal Subject: [PATCH 12/40] crypto/openssl: remove asym crypto next xform Date: Fri, 20 May 2022 06:54:17 +0100 Message-Id: <20220520055445.40063-13-arkadiuszx.kusztal@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20220520055445.40063-1-arkadiuszx.kusztal@intel.com> References: <20220520055445.40063-1-arkadiuszx.kusztal@intel.com> 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 - removed asymnetric crypto xform next field. This commit reflects asymmetric crypto API changes Signed-off-by: Arek Kusztal --- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/drivers/crypto/openssl/rte_openssl_pmd_ops.c b/drivers/crypto/openssl/rte_openssl_pmd_ops.c index c975ef640a..a1be96bf1d 100644 --- a/drivers/crypto/openssl/rte_openssl_pmd_ops.c +++ b/drivers/crypto/openssl/rte_openssl_pmd_ops.c @@ -808,13 +808,6 @@ static int openssl_set_asym_session_parameters( { int ret = 0; - if ((xform->xform_type != RTE_CRYPTO_ASYM_XFORM_DH) && - (xform->next != NULL)) { - OPENSSL_LOG(ERR, "chained xfrms are not supported on %s", - rte_crypto_asym_xform_strings[xform->xform_type]); - return -1; - } - switch (xform->xform_type) { case RTE_CRYPTO_ASYM_XFORM_RSA: { @@ -1007,25 +1000,6 @@ static int openssl_set_asym_session_parameters( * public and private key generate */ asym_session->u.dh.key_op = (1 << xform->dh.type); - - if (xform->dh.type == - RTE_CRYPTO_ASYM_KE_PRIVATE_KEY_GENERATE) { - /* check if next is pubkey */ - if ((xform->next != NULL) && - (xform->next->xform_type == - RTE_CRYPTO_ASYM_XFORM_DH) && - (xform->next->dh.type == - RTE_CRYPTO_ASYM_KE_PUBLIC_KEY_GENERATE) - ) { - /* - * setup op as pub/priv key - * pair generationi - */ - asym_session->u.dh.key_op |= - (1 << - RTE_CRYPTO_ASYM_KE_PUBLIC_KEY_GENERATE); - } - } asym_session->u.dh.dh_key = dh; asym_session->xfrm_type = RTE_CRYPTO_ASYM_XFORM_DH; break; -- 2.13.6