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 69D0841DAC; Wed, 1 Mar 2023 17:39:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6E7EA42BB1; Wed, 1 Mar 2023 17:39:29 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id A5E7D42BAC for ; Wed, 1 Mar 2023 17:39:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677688767; x=1709224767; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=gyWw3h3uZfgwmTp2J4Ce2P5O8cItetHjAmnY3Cu9u1c=; b=JUkfgMMyaC14Q5Ztm/agsNJBwL6G6ikQWPCDXwWZyGgHTVh7hOGKN3aL DHpLQzXzcreov9NkCYOjL80uIxXL/zALHJVhm8drPTwy+n7ciMekfBaNr QVCsQEwHSyf4kx5EsZiGbjuj0U9Zr9r/revnT+iT/XAILAHMGgbk9JN6T o9pc+h0rQw4pm93j5SKOh9StHby9kjACcYhuvOOjTuwLmvoUpdegVll39 1zsF+oYx5Re2tqgKzKimKJyyNNpyKWJ0kmK+MTPA8yQoa9sYfWSk+9lzQ YQPCIq1Bv95I3L7R3ArTLvS8+TVcvj3td1cEQODIgxsECxcLMAFvN4JT5 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10636"; a="362039473" X-IronPort-AV: E=Sophos;i="5.98,225,1673942400"; d="scan'208";a="362039473" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2023 08:39:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10636"; a="667922837" X-IronPort-AV: E=Sophos;i="5.98,225,1673942400"; d="scan'208";a="667922837" Received: from silpixa00400355.ir.intel.com (HELO silpixa00400355.ger.corp.intel.com) ([10.237.222.80]) by orsmga007.jf.intel.com with ESMTP; 01 Mar 2023 08:39:25 -0800 From: Ciara Power To: Akhil Goyal , Fan Zhang Cc: dev@dpdk.org, kai.ji@intel.com, pablo.de.lara.guarch@intel.com, Ciara Power Subject: [PATCH 3/5] test/crypto: fix auth op parameter for ZUC256 tests Date: Wed, 1 Mar 2023 16:39:14 +0000 Message-Id: <20230301163916.2248543-4-ciara.power@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230301163916.2248543-1-ciara.power@intel.com> References: <20230301163916.2248543-1-ciara.power@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The incorrect value was being passed to the ZUC authentication test function, indicating the opposite of the intended GENERATE/VERIFY op. This is fixed to use the auth op enum rather than a value. Fixes: 83397b9f0739 ("test/crypto: add further ZUC test cases") Signed-off-by: Ciara Power --- app/test/test_cryptodev.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 72d359dd91..9b90bae206 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -7568,13 +7568,15 @@ test_zuc256_decryption_test_case_2(void) static int test_zuc256_hash_generate_4b_tag_test_case_1(void) { - return test_zuc_authentication(&zuc256_test_case_auth_1, 0); + return test_zuc_authentication(&zuc256_test_case_auth_1, + RTE_CRYPTO_AUTH_OP_GENERATE); } static int test_zuc256_hash_generate_4b_tag_test_case_2(void) { - return test_zuc_authentication(&zuc256_test_case_auth_2, 0); + return test_zuc_authentication(&zuc256_test_case_auth_2, + RTE_CRYPTO_AUTH_OP_GENERATE); } static int @@ -7601,13 +7603,15 @@ test_zuc256_hash_generate_16b_tag_test_case_1(void) static int test_zuc256_hash_verify_4b_tag_test_case_1(void) { - return test_zuc_authentication(&zuc256_test_case_auth_1, 1); + return test_zuc_authentication(&zuc256_test_case_auth_1, + RTE_CRYPTO_AUTH_OP_VERIFY); } static int test_zuc256_hash_verify_4b_tag_test_case_2(void) { - return test_zuc_authentication(&zuc256_test_case_auth_2, 1); + return test_zuc_authentication(&zuc256_test_case_auth_2, + RTE_CRYPTO_AUTH_OP_VERIFY); } static int -- 2.25.1