Skip to contentSkip to conversation

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

PATCH In review Nithinsen Kaithakadan 2 participants 2 messages Feb 10, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 examples/ipsec-secgw/sa.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
examples/ipsec-secgw/sa.c +2 -2
index 425bfbf590..313919b4b5 100644
@@ -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
 	},
Signature · 1 line
2.45.2