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 90F72461E4; Mon, 10 Feb 2025 08:55:40 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4F87840150; Mon, 10 Feb 2025 08:55:32 +0100 (CET) Received: from mx0a-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 54A9940E45 for ; Fri, 7 Feb 2025 14:20:22 +0100 (CET) Received: from pps.filterd (m0431384.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 517CfE8a027639; Fri, 7 Feb 2025 05:20:21 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=pfpt0220; bh=o088O69SIGKnq3liK80FGV5 gzHXWHtX4D0i7Ni4yXxM=; b=Y5A01c3l18dMqd/qn4aclCH3bjCymwdJ7NHCLrD oeNpn+wJKhnLnOkrljcXYdFDRq3DFGxbTS0lFz5xN4qVhr32uIbi3W+z2M8vkxa8 uEH7ayPoKeBAlwos8b6NVYsOlCohoa2n6hx0mooaFd1FSGPMLs54ToLZfcqnKguI IvS8Q4vwjVVDYb4rPhoJEDvOh/wyaRJeG9UNHWYie1+w9PqFNmk3HsvcCoQK2z3q Rml093wr4PvewKG1mW5DOfswE2bQnIjLU7+MQs1AFluwZbOH/JxtGZ53y3uN8WFt lNnJ6g1QTw7nXbAObU6NOpv3wHNm+ZuNpNCXBbiE1X5hRpg== Received: from dc6wp-exch02.marvell.com ([4.21.29.225]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 44njc1g2p2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Feb 2025 05:20:21 -0800 (PST) Received: from DC6WP-EXCH02.marvell.com (10.76.176.209) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Fri, 7 Feb 2025 05:20:20 -0800 Received: from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Fri, 7 Feb 2025 05:20:20 -0800 Received: from nkaithakadan-dkr.marvell.com (unknown [10.29.45.70]) by maili.marvell.com (Postfix) with ESMTP id 54BC93F70BF; Fri, 7 Feb 2025 05:20:17 -0800 (PST) From: Nithinsen Kaithakadan To: Radu Nicolau , Akhil Goyal CC: Anoob Joseph , Tejasree Kondoj , Nithin Dabilpuram , Subject: [PATCH] examples/ipsec-secgw: fix iv len in ctr 192/256 Date: Fri, 7 Feb 2025 13:18:37 +0000 Message-ID: <20250207132016.62482-1-nkaithakadan@marvell.com> X-Mailer: git-send-email 2.48.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: lmTj62M6dmOXfQGHIwKxGd1YHd2njqqK X-Proofpoint-ORIG-GUID: lmTj62M6dmOXfQGHIwKxGd1YHd2njqqK X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-02-07_06,2025-02-07_02,2024-11-22_01 X-Mailman-Approved-At: Mon, 10 Feb 2025 08:55:29 +0100 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 This patch fixes IV length to 8 in case of AES-CTR 192/256. Fixes: 9413c3901f31 ("examples/ipsec-secgw: support additional algorithms") Signed-off-by: Nithinsen Kaithakadan --- examples/ipsec-secgw/sa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c index 425bfbf590..313919b4b5 100644 --- a/examples/ipsec-secgw/sa.c +++ b/examples/ipsec-secgw/sa.c @@ -104,14 +104,14 @@ const struct supported_cipher_algo cipher_algos[] = { { .keyword = "aes-192-ctr", .algo = RTE_CRYPTO_CIPHER_AES_CTR, - .iv_len = 16, + .iv_len = 8, .block_size = 16, .key_len = 28 }, { .keyword = "aes-256-ctr", .algo = RTE_CRYPTO_CIPHER_AES_CTR, - .iv_len = 16, + .iv_len = 8, .block_size = 16, .key_len = 36 }, -- 2.45.2