[PATCH 2/3] test/crypto: set iv len to 32B for auth and cipher

Nithinsen Kaithakadan nkaithakadan at marvell.com
Wed Jun 18 14:54:08 CEST 2025


Set maximum IV length to 32 bytes to include both auth IV
and cipher IV.

Fixes: fd01a9be38d5 ("test/crypto: move IV to crypto op private data")

Signed-off-by: Nithinsen Kaithakadan <nkaithakadan at marvell.com>
---
 app/test/test_cryptodev.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/app/test/test_cryptodev.h b/app/test/test_cryptodev.h
index a80c11baf4..e243cf945a 100644
--- a/app/test/test_cryptodev.h
+++ b/app/test/test_cryptodev.h
@@ -40,7 +40,11 @@
 #define TRUNCATED_DIGEST_BYTE_LENGTH_SHA384		(24)
 #define TRUNCATED_DIGEST_BYTE_LENGTH_SHA512		(32)
 
-#define MAXIMUM_IV_LENGTH				(16)
+/*
+ * maximum IV length need to include both the
+ * auth IV length (16 bytes) and the cipher IV length (16 bytes)
+ */
+#define MAXIMUM_IV_LENGTH				(32)
 #define AES_GCM_J0_LENGTH				(16)
 
 #define IV_OFFSET			(sizeof(struct rte_crypto_op) + \
-- 
2.48.1



More information about the dev mailing list