[PATCH 1/2] test/crypto: Add NULL OOP SGL test cases

Ji, Kai kai.ji at intel.com
Wed Oct 7 11:51:34 CEST 2026


Acked-by: Kai Ji <kai.ji at intel.com>


________________________________
From: Radu Nicolau <radu.nicolau at intel.com>
Sent: Tuesday, October 06, 2026 11:54
To: dev at dpdk.org <dev at dpdk.org>
Cc: Nicolau, Radu <radu.nicolau at intel.com>; Akhil Goyal <gakhil at marvell.com>; Fan Zhang <fanzhang.oss at gmail.com>
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 <radu.nicolau at intel.com>
---
 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20261007/f0d3c697/attachment.htm>


More information about the dev mailing list