examples/ipsec-secgw: fix iv len in ctr 192/256

Message ID 20250207134545.63820-1-nkaithakadan@marvell.com (mailing list archive)
State Accepted
Delegated to: akhil goyal
Headers
Series examples/ipsec-secgw: fix iv len in ctr 192/256 |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/github-robot: build success github build: passed
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-marvell-Functional success Functional Testing PASS
ci/Intel-compilation success Compilation OK
ci/iol-abi-testing success Testing PASS
ci/intel-Testing success Testing PASS
ci/intel-Functional success Functional PASS
ci/iol-compile-amd64-testing success Testing PASS
ci/iol-unit-amd64-testing success Testing PASS
ci/iol-compile-arm64-testing success Testing PASS
ci/iol-unit-arm64-testing success Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-sample-apps-testing success Testing PASS
ci/loongarch-compilation success Compilation OK RETEST #2
ci/loongarch-unit-testing success Unit Testing PASS RETEST #2

Commit Message

Nithinsen Kaithakadan Feb. 7, 2025, 1:45 p.m. UTC
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 <nkaithakadan@marvell.com>
---
 examples/ipsec-secgw/sa.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Comments

Anoob Joseph Feb. 10, 2025, 8:07 a.m. UTC | #1
> Subject: [PATCH] examples/ipsec-secgw: fix iv len in ctr 192/256
> 
> 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 <nkaithakadan@marvell.com>

Acked-by: Anoob Joseph <anoobj@marvell.com>
  
Nithinsen Kaithakadan Feb. 11, 2025, 12:21 p.m. UTC | #2
Recheck-request: loongarch-unit-testing
  
Akhil Goyal March 2, 2025, 8:27 p.m. UTC | #3
> -----Original Message-----
> From: Nithinsen Kaithakadan <nkaithakadan@marvell.com>
> Sent: Friday, February 7, 2025 7:16 PM
> To: Radu Nicolau <radu.nicolau@intel.com>; Akhil Goyal <gakhil@marvell.com>
> Cc: Anoob Joseph <anoobj@marvell.com>; Tejasree Kondoj
> <ktejasree@marvell.com>; Nithin Kumar Dabilpuram
> <ndabilpuram@marvell.com>; dev@dpdk.org
> Subject: [PATCH] examples/ipsec-secgw: fix iv len in ctr 192/256
> 
> 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 <nkaithakadan@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>

Updated .mailmap
Applied to dpdk-next-crypto
  

Patch

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
 	},