From patchwork Thu Sep 14 15:22:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dooley, Brian" X-Patchwork-Id: 131431 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 17EF942598; Thu, 14 Sep 2023 17:22:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CF1A4402EC; Thu, 14 Sep 2023 17:22:43 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 5657D402EC; Thu, 14 Sep 2023 17:22:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694704960; x=1726240960; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7RBwVKFYqkd180SH75cXWBekM76iRCPx/QhEsLShLIk=; b=XZQjQ3z5qbfFKXspU/Z1ACbT3oiUzeucc4QFP+u9740YDuz6SEQVwEMG W9vbnpIJKYVEloco1d71kliqLCppkimnzGzgBu1AVhAE8kpuEKS6dSnOK P4dp9WlsBqEH28P8DWZwj2uAR7n0U3CI+MDPm5yDd10sYhKd6XqH9SHYu n90jdElWwc10FmdjirDU0Ftv6HWrUuKaQ3XdukZk///TVUt1PIeWE6Ygu AOlyuj1kpvaRMrdhVeCLwamV56SboOADfh2GxQLMDSMDOCNXcZqydw8TP atxqoPCKKzQF6EIieo2XCMDcsgd/rfgwBBITdMhdCo6Xn1igZZ1QE+qGX A==; X-IronPort-AV: E=McAfee;i="6600,9927,10833"; a="465354083" X-IronPort-AV: E=Sophos;i="6.02,146,1688454000"; d="scan'208";a="465354083" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2023 08:22:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10833"; a="859754369" X-IronPort-AV: E=Sophos;i="6.02,146,1688454000"; d="scan'208";a="859754369" Received: from silpixa00400883.ir.intel.com ([10.243.22.155]) by fmsmga002.fm.intel.com with ESMTP; 14 Sep 2023 08:22:38 -0700 From: Brian Dooley To: Akhil Goyal , Fan Zhang Cc: dev@dpdk.org, Brian Dooley , adamx.dybkowski@intel.com, stable@dpdk.org, Ciara Power Subject: [PATCH v8 2/3] test/crypto: fix IV in some vectors Date: Thu, 14 Sep 2023 15:22:28 +0000 Message-Id: <20230914152229.2650901-3-brian.dooley@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230914152229.2650901-1-brian.dooley@intel.com> References: <20230907161258.2288031-1-brian.dooley@intel.com> <20230914152229.2650901-1-brian.dooley@intel.com> MIME-Version: 1.0 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 SNOW3G and ZUC algorithms require non-zero length IVs. Fixes: c6c267a00a92 ("test/crypto: add mixed encypted-digest") Cc: adamx.dybkowski@intel.com Cc: stable@dpdk.org Acked-by: Ciara Power Signed-off-by: Brian Dooley --- v8: Add cc stable --- app/test/test_cryptodev_mixed_test_vectors.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/test/test_cryptodev_mixed_test_vectors.h b/app/test/test_cryptodev_mixed_test_vectors.h index 161e2d905f..9c4313185e 100644 --- a/app/test/test_cryptodev_mixed_test_vectors.h +++ b/app/test/test_cryptodev_mixed_test_vectors.h @@ -478,8 +478,10 @@ struct mixed_cipher_auth_test_data auth_aes_cmac_cipher_snow_test_case_1 = { }, .cipher_iv = { .data = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, - .len = 0, + .len = 16, }, .cipher = { .len_bits = 516 << 3, @@ -917,8 +919,10 @@ struct mixed_cipher_auth_test_data auth_aes_cmac_cipher_zuc_test_case_1 = { }, .cipher_iv = { .data = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, - .len = 0, + .len = 16, }, .cipher = { .len_bits = 516 << 3,