From patchwork Wed Feb 2 06:50:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arkadiusz Kusztal X-Patchwork-Id: 106766 X-Patchwork-Delegate: gakhil@marvell.com 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 C5C18A00C5; Wed, 2 Feb 2022 07:50:44 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3A615411FE; Wed, 2 Feb 2022 07:50:41 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 82820410FF for ; Wed, 2 Feb 2022 07:50:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643784639; x=1675320639; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=qHGoiA8QbRR4HYR5V0M9z9BN9pnQEkeTTZG2dvN96Yg=; b=k9L6zNhPP+wl8ANxAWV2HxkQTZneKheNFOSrsGavh4vY0y9SBz8zqUWo wkGt9vo73Gfac1IYXiLASHL0gjiACId9bT79Iv4xXGLJZ0EKJdkx5tSmF MlNl+TUe0uuxf11ozxnqF3yrEO40+q6tzETPWKT1OJsRLkfP31lsl8LmL qXcHXh5HnSrlFvqe/tFjvnxhW7pEbJ8q+P9iCaC4bBV2S1m8ST9Azc3FR EX/YmomH6SxG3AEYsxs/GoiIYrCUO7FHA/w2OKcnQ0yho8ijHNrCQ5e38 4CG1jryE2NB7Tt/hMzwp6FCqiIJga7id/A7vCNmUujE86KEY/dMvtDNdU A==; X-IronPort-AV: E=McAfee;i="6200,9189,10245"; a="235257324" X-IronPort-AV: E=Sophos;i="5.88,336,1635231600"; d="scan'208";a="235257324" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2022 22:50:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,336,1635231600"; d="scan'208";a="480007239" Received: from silpixa00400308.ir.intel.com ([10.237.214.95]) by orsmga003.jf.intel.com with ESMTP; 01 Feb 2022 22:50:37 -0800 From: Arek Kusztal To: dev@dpdk.org Cc: gakhil@marvell.com, roy.fan.zhang@intel.com, rbalu@marvell.com, Arek Kusztal Subject: [PATCH 1/4] crypto: add dsa random number k Date: Wed, 2 Feb 2022 06:50:27 +0000 Message-Id: <20220202065030.23276-2-arkadiuszx.kusztal@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220202065030.23276-1-arkadiuszx.kusztal@intel.com> References: <20220202065030.23276-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 This commit adds random number 'k' to dsa op param struct. Signed-off-by: Arek Kusztal Acked-by: Fan Zhang --- lib/cryptodev/rte_crypto_asym.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/cryptodev/rte_crypto_asym.h b/lib/cryptodev/rte_crypto_asym.h index 9c866f553f..e0def3d9ab 100644 --- a/lib/cryptodev/rte_crypto_asym.h +++ b/lib/cryptodev/rte_crypto_asym.h @@ -547,6 +547,10 @@ struct rte_crypto_dsa_op_param { /**< Signature Generation or Verification */ rte_crypto_param message; /**< input message to be signed or verified */ + rte_crypto_param k; + /**< Per-message secret number, which is an integer + * in the interval (1, q-1) + */ rte_crypto_param r; /**< dsa sign component 'r' value *