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 9991542B8C; Wed, 24 May 2023 14:52:04 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8BE9A4067E; Wed, 24 May 2023 14:52:04 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 7430F40156; Wed, 24 May 2023 14:52:03 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34OCLRoV024256; Wed, 24 May 2023 05:52:02 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=z2AtAVLUAr/dZZT4dPuJEuBPda8FGgiYUepRLeKKX7s=; b=S9mNqUhVbic4gUz10BXHjxCU0N/dy/H2K7WPQiDcLC/KwnrMKvmwgNET7g1dGjN52GLC zaAiy9c96qLTBWVZ78QFiNIGz/ULXWLkRZITvKTNHtpOlIqotO26AhMWUEwnd1IK++pY 2e/QjT8AB7OYfPBLXZj1F9X6Y6fNqNy/ksBSLetXeKrVoWb3YuQpcCcJiodHZJPxAklZ RvyZdUstYbyvp/LRnLawjPyJhP3l2wANxNOXViUZZHV7JUBCqYaAazpbdgxO8kC3sCwr UJi5b/6GwYo8sYT70pUH8tTG6cS4WHHDZGt5FadJkiaMbEJXmfRyEFHCRzRZckBsIgfI sA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3qsh90gad0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 24 May 2023 05:52:02 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 24 May 2023 05:52:00 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Wed, 24 May 2023 05:52:00 -0700 Received: from hyd1554.marvell.com (unknown [10.29.57.11]) by maili.marvell.com (Postfix) with ESMTP id 37B383F70AA; Wed, 24 May 2023 05:51:56 -0700 (PDT) From: Tejasree Kondoj To: Akhil Goyal , Fan Zhang CC: Anoob Joseph , Ciara Power , Jerin Jacob , Aakash Sasidharan , Gowrishankar Muthukrishnan , Vidya Sagar Velumuri , , Subject: [PATCH v2] test/crypto: fix IPsec AES CCM test vector Date: Wed, 24 May 2023 18:21:56 +0530 Message-ID: <20230524125156.1905364-1-ktejasree@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230512125933.1131522-1-ktejasree@marvell.com> References: <20230512125933.1131522-1-ktejasree@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: Bl1Kr9nqG9CpXRLXsvm11Kxq9igHSUGt X-Proofpoint-ORIG-GUID: Bl1Kr9nqG9CpXRLXsvm11Kxq9igHSUGt X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-24_08,2023-05-24_01,2023-05-22_02 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 Set IPsec AES-CCM test vector IV length to 11 instead of 12 as it includes only 3B salt and 8B per packet IV. Fixes: d314299950de ("test/crypto: add AES-CCM vectors") Cc: stable@dpdk.org Signed-off-by: Tejasree Kondoj --- app/test/test_cryptodev_security_ipsec_test_vectors.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test/test_cryptodev_security_ipsec_test_vectors.h b/app/test/test_cryptodev_security_ipsec_test_vectors.h index 2686bbeb62..6e60e32b9d 100644 --- a/app/test/test_cryptodev_security_ipsec_test_vectors.h +++ b/app/test/test_cryptodev_security_ipsec_test_vectors.h @@ -417,7 +417,8 @@ struct ipsec_test_data pkt_aes_256_ccm = { .op = RTE_CRYPTO_AEAD_OP_ENCRYPT, .algo = RTE_CRYPTO_AEAD_AES_CCM, .key.length = 32, - .iv.length = 12, + /* IV includes 3B salt and 8B per packet IV */ + .iv.length = 11, .iv.offset = IV_OFFSET, .digest_length = 16, .aad_length = 12, -- 2.25.1