From patchwork Tue Sep 5 15:12:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dooley, Brian" X-Patchwork-Id: 131174 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 7B46A42503; Tue, 5 Sep 2023 17:13:11 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 40AE640E72; Tue, 5 Sep 2023 17:13:08 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 8FA3040279 for ; Tue, 5 Sep 2023 17:13:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693926786; x=1725462786; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6CkeWLVz1WQ/1TwYe1pOYpnkUlHNcWNVHNWbKxCQF+Q=; b=RrGNkOdgZS3lMxXb1TnOj1Nsq36dieC9ozd9LU+TN8VepEivgIHpshxo cECs+ad0xHORN1VT7eDBuFUm0yDVnMApo2WL37lv+5pbjarkXrz094mHa /NPSsJk14eWOU2KiqWAfyecU7xTdxgkqVPxjFFAVymmL9DrbdZNNwhCON sNphzo6ArCHO28fRiLhf4Ei7CVmTv2QYO5IXvnCqeg+qBQHlZWQxqu511 /0FNKq/jafv6279UhMCAeVJsp2pC8T6RnXjRhubS938fWUCUik0Njw6NT LOM1J0QaM2S0TBxnnK4Vo22nbB6YePHgsOow9PzveGOd74OI11luh300E w==; X-IronPort-AV: E=McAfee;i="6600,9927,10824"; a="367040627" X-IronPort-AV: E=Sophos;i="6.02,229,1688454000"; d="scan'208";a="367040627" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2023 08:13:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10824"; a="690961566" X-IronPort-AV: E=Sophos;i="6.02,229,1688454000"; d="scan'208";a="690961566" Received: from silpixa00400883.ir.intel.com ([10.243.22.155]) by orsmga003.jf.intel.com with ESMTP; 05 Sep 2023 08:13:02 -0700 From: Brian Dooley To: Akhil Goyal , Fan Zhang Cc: dev@dpdk.org, Brian Dooley , adamx.dybkowski@intel.com Subject: [PATCH v4 2/2] test/crypto: fix IV in some vectors Date: Tue, 5 Sep 2023 15:12:19 +0000 Message-Id: <20230905151219.1548547-3-brian.dooley@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230905151219.1548547-1-brian.dooley@intel.com> References: <20230825084135.3430358-1-brian.dooley@intel.com> <20230905151219.1548547-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 Signed-off-by: Brian Dooley --- 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,