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 7366541DC6; Fri, 3 Mar 2023 10:38:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6151342BDA; Fri, 3 Mar 2023 10:38:33 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 3342E42B71 for ; Fri, 3 Mar 2023 10:38:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677836312; x=1709372312; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7IIezAoGbgECEYKu7RS5jA3fPZqROcJgijdzxyb5J2g=; b=jUQ+AUxiN5E+f2cbN6tK753ocMzEo7WjHa8hpUFLKQo9XTwSk+OAaKn2 T8OrYmuKiGhZlLPXc8fuX+B4AKZE1oROanXwKeTOvrxV0sya8qMRCf5V6 ruLe9rF/ZgmtBMasLDEVUaqRchDTJlpBe5GIR6M+OEMbMFzlfrMQFYTOn UcDW4LRC5mXbEz76tpjMjB+ZWOQF+J2YsF6NJIB4nTTpcrYXdDf3AubUB Ac48cjHE/sBdOqsWdZXlqnkIrZxGLc4DLpmljORCSHpVIqroHGZrK0d4d NJMpJBzL140aJWdhwiJ1Xqvymb/kGXWHShBXTZlTHxfdbeZ4fHFUOm5+u A==; X-IronPort-AV: E=McAfee;i="6500,9779,10637"; a="362600849" X-IronPort-AV: E=Sophos;i="5.98,230,1673942400"; d="scan'208";a="362600849" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2023 01:38:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10637"; a="739444754" X-IronPort-AV: E=Sophos;i="5.98,230,1673942400"; d="scan'208";a="739444754" Received: from silpixa00400355.ir.intel.com (HELO silpixa00400355.ger.corp.intel.com) ([10.237.222.80]) by fmsmga008.fm.intel.com with ESMTP; 03 Mar 2023 01:38:29 -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 , Brian Dooley Subject: [PATCH v2 3/5] test/crypto: fix auth op parameter for ZUC256 tests Date: Fri, 3 Mar 2023 09:38:19 +0000 Message-Id: <20230303093821.2367309-4-ciara.power@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230303093821.2367309-1-ciara.power@intel.com> References: <20230301163916.2248543-1-ciara.power@intel.com> <20230303093821.2367309-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 Acked-by: Brian Dooley --- 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