From patchwork Thu Jun 23 14:31:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Power, Ciara" X-Patchwork-Id: 113349 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 AE63EA0093; Thu, 23 Jun 2022 16:31:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9440A4067B; Thu, 23 Jun 2022 16:31:52 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 1DF4440146; Thu, 23 Jun 2022 16:31:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655994711; x=1687530711; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=xGDuNgKnQa6m+seXB1AUxZe6d106elQIKQvdqN/PD6A=; b=cHhwD4jG8MTkXtWYroOSYJqO92cbT0reKJrJkHmXSlBhNd5gVwIzjcq1 NWvLqaVbSWA6MQ/p2DJhDXlqMKGc1bwztEt+O+AEnQZ5LWscG6NAdUZ2I tYjS5TKxActvmN6BEuW2KOD/TzaS33k3qEgVK9JXnBQXi8UV8FaOlW84K B2W99bzKi5iXrXpO7c5njIfQZiywtRFRx/WEcMaacfzbn07gvTqHgFntO VULfLU/9N3pQbC5RLoNMWX99Q81nTmRZmMifVGN3ESb+LzSp2pXfWxXdx dTOSNr55wlPlXYC1FPbRNJQXyy97kl8T/gL/ksuUtSadfgX/inrJroXgR Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="344722853" X-IronPort-AV: E=Sophos;i="5.92,216,1650956400"; d="scan'208";a="344722853" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 07:31:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,216,1650956400"; d="scan'208";a="588640207" Received: from silpixa00400355.ir.intel.com (HELO silpixa00400355.ger.corp.intel.com) ([10.237.222.49]) by orsmga002.jf.intel.com with ESMTP; 23 Jun 2022 07:31:48 -0700 From: Ciara Power To: Akhil Goyal , Fan Zhang Cc: dev@dpdk.org, kai.ji@intel.com, pablo.de.lara.guarch@intel.com, Ciara Power , stable@dpdk.org Subject: [PATCH] test/crypto: fix authentication IV for zuc SGL Date: Thu, 23 Jun 2022 14:31:42 +0000 Message-Id: <20220623143142.1258343-1-ciara.power@intel.com> X-Mailer: git-send-email 2.25.1 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 The wireless operation for ZUC SGL tests was being passed NULL instead of a pointer to the test data authentication IV, and IV length 0. This is now corrected to use the IV from the test data. Fixes: 11c5485bb276 ("test/crypto: add scatter-gather tests for IP and OOP") Cc: stable@dpdk.org Signed-off-by: Ciara Power Acked-by: Pablo de Lara --- app/test/test_cryptodev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 1cac76a64a..d08f786324 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -6563,7 +6563,7 @@ test_zuc_auth_cipher_sgl(const struct wireless_test_data *tdata, retval = create_wireless_algo_auth_cipher_operation( tdata->digest.data, tdata->digest.len, tdata->cipher_iv.data, tdata->cipher_iv.len, - NULL, 0, + tdata->auth_iv.data, tdata->auth_iv.len, (tdata->digest.offset_bytes == 0 ? (verify ? ciphertext_pad_len : plaintext_pad_len) : tdata->digest.offset_bytes),