From patchwork Tue Sep 19 10:42:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dooley, Brian" X-Patchwork-Id: 131622 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 2E3C942601; Tue, 19 Sep 2023 12:42:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8885D40A7A; Tue, 19 Sep 2023 12:42:27 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id B97CB4028B; Tue, 19 Sep 2023 12:42:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695120146; x=1726656146; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bIejD7ebdlsiMF8DA4Ah1F32J2cgT3d1jGyLJl9P8vs=; b=iq67JSm4m6o31uqoKw/8hkKvHNQ7c+QhvIqO+5j7FRHNqG4b0YElWeyH bgUUR06cdQL3Yu+8XvqIgDvzDAGxoSMBmN7z9OMcd+ZHFPLOGBVq2e5Y9 OodhSzMfgZ1jfB3bER2X2IvWciWFGBezlQLG4Sb/m0j9sc9mfgOgpJ1Np Tlk2QHxi7SerXnZMCDtC2LVSxgBWwbZNBY9W6lohaswmiVMqXygUzp+23 5tVa0pRH3+g66RmY4ZEAu6fXXpUY91VqGNGnrEr6XF+ePsdPVK1QwN6go udN++/qU4VLEOWBwpfKcdVACh4zxHbeDV4gz8SXqb7RiA0EktpSrtfEfO g==; X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="443992596" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="443992596" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 03:42:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="775502155" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="775502155" Received: from silpixa00400883.ir.intel.com ([10.243.22.155]) by orsmga008.jf.intel.com with ESMTP; 19 Sep 2023 03:42:23 -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 v9 2/3] test/crypto: fix IV in some vectors Date: Tue, 19 Sep 2023 10:42:16 +0000 Message-Id: <20230919104217.3104962-3-brian.dooley@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230919104217.3104962-1-brian.dooley@intel.com> References: <20230421101310.420593-1-brian.dooley@intel.com> <20230919104217.3104962-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 Signed-off-by: Brian Dooley Acked-by: Ciara Power --- 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,