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 6DE8845C28; Thu, 31 Oct 2024 20:19:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0AC9C40265; Thu, 31 Oct 2024 20:19:26 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by mails.dpdk.org (Postfix) with ESMTP id 5B9BC400D6; Thu, 31 Oct 2024 20:19:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1730402364; x=1761938364; h=from:to:cc:subject:date:message-id; bh=lCsYr28Rsj7u4slcv0lnHdF21sdBC5s7Ai1tYRwhIqU=; b=mqS241rYK005k6DKwuERvWsfxYqZ7weXPw1zj9Qhl44OP1tKP/VEtW75 ZJOv++YbS4oeeH/VGQIG1adZxpzon/ydWnzXohCFY9rRughBQwvD9U6hX trAu7yKU0JC0wkDg8UCHsqPrDL8vCcqT2iMP+ZEKtGcOllnG/ItOHVgRf vo9NMSZCT0xYwploc0jcQkY36c/6DceZ5qvA3JNjMFSrrQYyOVVH8ng2r NDp0bNNahpzE0LX3BoqiFOfeLKqGFZbULi6r4rrOnmzwJCioZFIEl1+N5 jcGFirQp+V9KXH1OHHTdV+TbcQl+jMNG8WP92DkZkSBPLPT43bIYtvyeE A==; X-CSE-ConnectionGUID: AJaEPjiQST6W7bz1M8AamA== X-CSE-MsgGUID: JCP0Yq43QPyOHDglhkI//w== X-IronPort-AV: E=McAfee;i="6700,10204,11242"; a="30378025" X-IronPort-AV: E=Sophos;i="6.11,247,1725346800"; d="scan'208";a="30378025" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2024 12:19:23 -0700 X-CSE-ConnectionGUID: Xr3zIndJR4mInGbDOcGrKA== X-CSE-MsgGUID: 8LAMuDbIRzGN9hsidJw+fw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,247,1725346800"; d="scan'208";a="120180112" Received: from silpixa00400308.ir.intel.com ([10.237.214.154]) by orviesa001.jf.intel.com with ESMTP; 31 Oct 2024 12:19:21 -0700 From: Arkadiusz Kusztal To: dev@dpdk.org Cc: gakhil@marvell.com, brian.dooley@intel.com, Arkadiusz Kusztal , stable@dpdk.org Subject: [PATCH] crypto/qat: fix an unset length of modexp/inv Date: Thu, 31 Oct 2024 19:19:17 +0000 Message-Id: <20241031191917.20805-1-arkadiuszx.kusztal@intel.com> X-Mailer: git-send-email 2.17.1 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 commit fixes an unset length in modular algorithms in QAT asymmetric crypto PMD. Fixes: 3b78aa7b2317 ("crypto/qat: refactor asymmetric crypto functions") Cc: stable@dpdk.org Signed-off-by: Arkadiusz Kusztal --- drivers/crypto/qat/qat_asym.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/qat/qat_asym.c b/drivers/crypto/qat/qat_asym.c index 9e97582e22..7bb2f6c1e0 100644 --- a/drivers/crypto/qat/qat_asym.c +++ b/drivers/crypto/qat/qat_asym.c @@ -277,6 +277,7 @@ modexp_collect(struct rte_crypto_asym_op *asym_op, rte_memcpy(modexp_result, cookie->output_array[0] + alg_bytesize - n.length, n.length); + asym_op->modex.result.length = alg_bytesize; HEXDUMP("ModExp result", cookie->output_array[0], alg_bytesize); return RTE_CRYPTO_OP_STATUS_SUCCESS; @@ -338,6 +339,7 @@ modinv_collect(struct rte_crypto_asym_op *asym_op, - n.length), cookie->output_array[0] + alg_bytesize - n.length, n.length); + asym_op->modinv.result.length = alg_bytesize; HEXDUMP("ModInv result", cookie->output_array[0], alg_bytesize); return RTE_CRYPTO_OP_STATUS_SUCCESS; -- 2.34.1