From patchwork Thu Dec 7 13:02:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anoob Joseph X-Patchwork-Id: 134924 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 8334D43699; Thu, 7 Dec 2023 14:04:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 806E642F53; Thu, 7 Dec 2023 14:03:00 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id B6ABA42F53 for ; Thu, 7 Dec 2023 14:02:59 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B76M5Q1017036; Thu, 7 Dec 2023 05:02:59 -0800 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=XZ2uqnRpve9jWBiTvpbEEiaFiLbPB3JpKkbXFhdRCBE=; b=StFIErLAFC8LKQ45smJk0PNDf4kXm+eImKQ2ttqYHeq9VtiH8YiYdolxpgEvfn1eRIdE jdZq3y6ROSeFQthseYyVnx+Vs4z4XM2YZbJZzFs6gmUSF1H7OP/kXRS8rbDzxpWfNB+Z zsd2MHVx1FfcEDuhS8ec04JjT22lU82/pReiM815W5oeXvOdHuP83SN6LZPQikasqcW1 llIrbYq6f4/JbPQoO0ofjKCNqP4wF39g/l54mUSmFVa4MO5eMhB+e8JF6whQTAfK4H27 3q1M/64eDAwrmD118lgkAA9ITkshmzKwD2EP/cmzGjCyr1dTKKMovcGJKGJi1TSYWTVM zQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3uu8qe98nf-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 07 Dec 2023 05:02:58 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 7 Dec 2023 05:02:56 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Thu, 7 Dec 2023 05:02:56 -0800 Received: from BG-LT92004.corp.innovium.com (unknown [10.28.163.189]) by maili.marvell.com (Postfix) with ESMTP id 8A4EE3F70AD; Thu, 7 Dec 2023 05:02:53 -0800 (PST) From: Anoob Joseph To: Akhil Goyal , Jerin Jacob CC: Vidya Sagar Velumuri , Harry van Haaren , Hemant Agrawal , Konstantin Ananyev , Subject: [PATCH 12/14] test/security: add more algos to combined tests Date: Thu, 7 Dec 2023 18:32:14 +0530 Message-ID: <20231207130216.140-13-anoobj@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231207130216.140-1-anoobj@marvell.com> References: <20231207130216.140-1-anoobj@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: VBKc1158XNFjTzNF-a1dJGp9mMJgqrDq X-Proofpoint-ORIG-GUID: VBKc1158XNFjTzNF-a1dJGp9mMJgqrDq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-07_10,2023-12-07_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 From: Vidya Sagar Velumuri Add following algos to combined mode cases. These are intended primarily for TLS record combined mode tests. - AES256-CBC - SHA256-HMAC - SHA1-HMAC [20B] Signed-off-by: Anoob Joseph Signed-off-by: Vidya Sagar Velumuri --- app/test/test_security_proto.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app/test/test_security_proto.h b/app/test/test_security_proto.h index 6797e8b8c2..efa023b99d 100644 --- a/app/test/test_security_proto.h +++ b/app/test/test_security_proto.h @@ -70,6 +70,12 @@ static const struct crypto_param cipher_list[] = { .key_length = 16, .iv_length = 16, }, + { + .type = RTE_CRYPTO_SYM_XFORM_CIPHER, + .alg.cipher = RTE_CRYPTO_CIPHER_AES_CBC, + .key_length = 32, + .iv_length = 16, + }, { .type = RTE_CRYPTO_SYM_XFORM_CIPHER, .alg.cipher = RTE_CRYPTO_CIPHER_AES_CTR, @@ -107,12 +113,24 @@ static const struct crypto_param auth_list[] = { .key_length = 20, .digest_length = 12, }, + { + .type = RTE_CRYPTO_SYM_XFORM_AUTH, + .alg.auth = RTE_CRYPTO_AUTH_SHA1_HMAC, + .key_length = 20, + .digest_length = 20, + }, { .type = RTE_CRYPTO_SYM_XFORM_AUTH, .alg.auth = RTE_CRYPTO_AUTH_SHA256_HMAC, .key_length = 32, .digest_length = 16, }, + { + .type = RTE_CRYPTO_SYM_XFORM_AUTH, + .alg.auth = RTE_CRYPTO_AUTH_SHA256_HMAC, + .key_length = 32, + .digest_length = 32, + }, { .type = RTE_CRYPTO_SYM_XFORM_AUTH, .alg.auth = RTE_CRYPTO_AUTH_SHA384_HMAC,