Acked-by: Kai Ji <[email protected]>

________________________________
From: Radu Nicolau <[email protected]>
Sent: Tuesday, October 06, 2026 11:54
To: [email protected] <[email protected]>
Cc: Nicolau, Radu <[email protected]>; Akhil Goyal <[email protected]>; 
Fan Zhang <[email protected]>
Subject: [PATCH 1/2] test/crypto: Add NULL OOP SGL test cases

Extend the blockchiper test suite with
NULL cipher and NULL auth OOP SGL test cases.

Signed-off-by: Radu Nicolau <[email protected]>
---
 app/test/test_cryptodev_aes_test_vectors.h | 55 ++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git a/app/test/test_cryptodev_aes_test_vectors.h 
b/app/test/test_cryptodev_aes_test_vectors.h
index 505e603b7e..60a270a3ce 100644
--- a/app/test/test_cryptodev_aes_test_vectors.h
+++ b/app/test/test_cryptodev_aes_test_vectors.h
@@ -4598,6 +4598,24 @@ static const struct blockcipher_test_case 
aes_chain_test_cases[] = {
                 .op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
                 .feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
         },
+       {
+               .test_descr = "NULL-CIPHER-NULL-AUTH encrypt & gen x8byte - OOP 
SGL",
+               .test_data = &null_test_data_chain_x8_multiple,
+               .op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
+               .feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP |
+                               BLOCKCIPHER_TEST_FEATURE_SG,
+               .sgl_flag = RTE_CRYPTODEV_FF_OOP_SGL_IN_SGL_OUT,
+               .sgl_segs = 3,
+       },
+       {
+               .test_descr = "NULL-AUTH-NULL-CIPHER verify & decrypt x8byte - 
OOP SGL",
+               .test_data = &null_test_data_chain_x8_multiple,
+               .op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
+               .feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP |
+                               BLOCKCIPHER_TEST_FEATURE_SG,
+               .sgl_flag = RTE_CRYPTODEV_FF_OOP_SGL_IN_SGL_OUT,
+               .sgl_segs = 3,
+       },
         {
                 .test_descr = "NULL-CIPHER-NULL-AUTH encrypt & gen x4byte",
                 .test_data = &null_test_data_chain_x4_multiple,
@@ -4620,6 +4638,24 @@ static const struct blockcipher_test_case 
aes_chain_test_cases[] = {
                 .op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
                 .feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
         },
+       {
+               .test_descr = "NULL-CIPHER-NULL-AUTH encrypt & gen x4byte - OOP 
SGL",
+               .test_data = &null_test_data_chain_x4_multiple,
+               .op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
+               .feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP |
+                               BLOCKCIPHER_TEST_FEATURE_SG,
+               .sgl_flag = RTE_CRYPTODEV_FF_OOP_SGL_IN_SGL_OUT,
+               .sgl_segs = 3,
+       },
+       {
+               .test_descr = "NULL-AUTH-NULL-CIPHER verify & decrypt x4byte - 
OOP SGL",
+               .test_data = &null_test_data_chain_x4_multiple,
+               .op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
+               .feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP |
+                               BLOCKCIPHER_TEST_FEATURE_SG,
+               .sgl_flag = RTE_CRYPTODEV_FF_OOP_SGL_IN_SGL_OUT,
+               .sgl_segs = 3,
+       },
         {
                 .test_descr = "NULL-CIPHER-NULL-AUTH encrypt & gen x1byte",
                 .test_data = &null_test_data_chain_x1_multiple,
@@ -4642,6 +4678,25 @@ static const struct blockcipher_test_case 
aes_chain_test_cases[] = {
                 .op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
                 .feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
         },
+       {
+               .test_descr = "NULL-CIPHER-NULL-AUTH encrypt & gen x1byte - OOP 
SGL",
+               .test_data = &null_test_data_chain_x1_multiple,
+               .op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
+               .feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP |
+                               BLOCKCIPHER_TEST_FEATURE_SG,
+               .sgl_flag = RTE_CRYPTODEV_FF_OOP_SGL_IN_SGL_OUT,
+               .sgl_segs = 3,
+       },
+       {
+               .test_descr = "NULL-AUTH-NULL-CIPHER verify & decrypt x1byte - 
OOP SGL",
+               .test_data = &null_test_data_chain_x1_multiple,
+               .op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
+               .feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP |
+                               BLOCKCIPHER_TEST_FEATURE_SG,
+               .sgl_flag = RTE_CRYPTODEV_FF_OOP_SGL_IN_SGL_OUT,
+               .sgl_segs = 3,
+
+       },
 };

 static const struct blockcipher_test_case aes_cipheronly_test_cases[] = {
--
2.52.0

Reply via email to