Skip to contentSkip to conversation

support PDCP-SDAP for dpaa2_sec

PATCH Superseded [email protected] 3 participants 32 messages Sep 3, 2020 – Oct 14, 2020 Crypto API

lore
Share & tools
lore
#0 lore raw

cover support PDCP-SDAP for dpaa2_sec

From: Akhil Goyal <[email protected]>

The SDAP is a protocol in the LTE stack on top of PDCP. It is dedicated to QoS.

The difficulty of implementing this protocol is because the PDCP change behavior regarding encryption and authentication of the SDU it receives. In effect PDCP shall not encrypt the SDAP SDU but must authenticate it (when encryption and authentication is enabled).

A new field is added in the PDCP xform to specify SDAP is enabled. The overall size of the xform is not changed, as hfn_ovrd is just a flag and does not need uint32. Hence, it is converted to uint8_t and a 16 bit reserved field is added for future.

The corresponding test cases and test vectors are added in the test application.

Akhil Goyal (3):
security: modify PDCP xform to support SDAP
crypto/dpaa2_sec: enable PDCP-SDAP sessions
crypto/dpaa_sec: enable PDCP-SDAP sessions

Franck LENORMAND (4):
common/dpaax/caamflib: Support PDCP-SDAP test/crypto: Add test vectors for PDCP-SDAP test/crypto: Modify test_pdcp_proto to take parameters test/crypto: Add PDCP-SDAP cases

 app/test/test_cryptodev.c                     |  278 +-
 ...ryptodev_security_pdcp_sdap_test_vectors.h | 3619 +++++++++++++++++
 doc/guides/prog_guide/rte_security.rst        |   19 +-
 drivers/common/dpaax/caamflib/desc/pdcp.h     |    8 +
 drivers/common/dpaax/caamflib/desc/sdap.h     | 1063 +++++
 drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c   |   30 +-
 drivers/crypto/dpaa_sec/dpaa_sec.c            |   63 +-
 drivers/crypto/dpaa_sec/dpaa_sec.h            |    3 +-
 lib/librte_security/rte_security.h            |   12 +-
 9 files changed, 4990 insertions(+), 105 deletions(-)
 create mode 100644 app/test/test_cryptodev_security_pdcp_sdap_test_vectors.h
 create mode 100644 drivers/common/dpaax/caamflib/desc/sdap.h
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/7 common/dpaax/caamflib: Support PDCP-SDAP

From: Franck LENORMAND <[email protected]>

The SDAP is a protocol in the LTE stack on top of PDCP. It is dedicated to QoS.

The difficulty of implementing this protocol is because the PDCP change behavior regarding encryption and authentication of the SDU it receives. In effect PDCP shall not encrypt the SDAP SDU but must authenticate it (when encryption and authentication is enabled).

The current version of SEC does not support the SDAP and the change of behavior of PDCP prevent the use of the PDCP protocol command available.

The way to do it is to reuse the PDCP implementation but to not use the PDCP protocol and to have descriptors which performs the PDCP protocol.

It is configured by:

It is implemented done doing small changes of code:

        #ifdef SDAP_SUPPORT
                length += SDAP_BYTE_SIZE;
                offset -= SDAP_BYTE_SIZE;
        #endif
after having computed the size of the SN to read from the
input data, then
        #ifdef SDAP_SUPPORT
                MATHI(p, MATH0, LSHIFT, 8, MATH1, 8, 0);
                MATHB(p, MATH1, AND, sn_mask, MATH1, 8, IFB | IMMED2);
        #else
                MATHB(p, MATH0, AND, sn_mask, MATH1, 8, IFB | IMMED2);
        #endif

It will keep the SN and the SDAP header in MATH0, then shift it to remove the SDAP header and store the result in MATH1.

---
 drivers/common/dpaax/caamflib/desc/pdcp.h |    8 +
 drivers/common/dpaax/caamflib/desc/sdap.h | 1063 +++++++++++++++++++++
 2 files changed, 1071 insertions(+)
 create mode 100644 drivers/common/dpaax/caamflib/desc/sdap.h
drivers/common/dpaax/caamflib/desc/pdcp.h +8 -0
index 95d1416c2..f084cf1de 100644
@@ -43,6 +43,14 @@
 #define PDCP_C_PLANE_SN_MASK		0x1F000000
 #define PDCP_C_PLANE_SN_MASK_BE		0x0000001F
 
+/**
+ * PDCP_7BIT_SN_MASK - This mask is used in the PDCP descriptors for
+ *                              extracting the sequence number (SN) from the
+ *                              PDCP User Plane header.
+ */
+#define PDCP_7BIT_SN_MASK		0x7F000000
+#define PDCP_7BIT_SN_MASK_BE		0x0000007F
+
 /**
  * PDCP_12BIT_SN_MASK - This mask is used in the PDCP descriptors for
  *                              extracting the sequence number (SN) from the
drivers/common/dpaax/caamflib/desc/sdap.h new file +1063 -0

1,063 lines not on this page · raw message

Signature · 1 line
2.17.1
#2 lore raw

PATCH 2/7 security: modify PDCP xform to support SDAP

In reply to [email protected]

From: Akhil Goyal <[email protected]>

The SDAP is a protocol in the LTE stack on top of PDCP for QOS. A particular PDCP session may or may not have SDAP enabled. But if it is enabled, SDAP header should be authenticated but not encrypted if both confidentiality and integrity is enabled. Hence, the driver should be intimated from the xform so that it skip the SDAP header while encryption.

A new field is added in the PDCP xform to specify SDAP is enabled. The overall size of the xform is not changed, as hfn_ovrd is just a flag and does not need uint32. Hence, it is converted to uint8_t and a 16 bit reserved field is added for future.

---
 doc/guides/prog_guide/rte_security.rst | 19 ++++++++++++++++++-
 lib/librte_security/rte_security.h     | 12 ++++++++++--
 2 files changed, 28 insertions(+), 3 deletions(-)
doc/guides/prog_guide/rte_security.rst +18 -1
index 127da2e4f..ab535d1cd 100644
@@ -1,5 +1,5 @@
 ..  SPDX-License-Identifier: BSD-3-Clause
-    Copyright 2017 NXP
+    Copyright 2017,2020 NXP
 
 
 
@@ -693,6 +693,23 @@ PDCP related configuration parameters are defined in ``rte_security_pdcp_xform``
         uint32_t hfn;
         /** HFN Threshold for key renegotiation */
         uint32_t hfn_threshold;
+        /** HFN can be given as a per packet value also.
+         * As we do not have IV in case of PDCP, and HFN is
+         * used to generate IV. IV field can be used to get the
+         * per packet HFN while enq/deq.
+         * If hfn_ovrd field is set, user is expected to set the
+         * per packet HFN in place of IV. PMDs will extract the HFN
+         * and perform operations accordingly.
+         */
+         uint8_t hfn_ovrd;
+         /** In case of 5G NR, a new protocol(SDAP) header may be set
+          * inside PDCP payload which should be authenticated but not
+          * encrypted. Hence, driver should be notified if SDAP is
+          * enabled or not, so that SDAP header is not encrypted.
+          */
+         uint8_t sdap_enabled;
+         /** Reserved for future */
+         uint16_t reserved;
     };
 
 DOCSIS related configuration parameters are defined in ``rte_security_docsis_xform``
lib/librte_security/rte_security.h +10 -2
index 16839e539..48b377b20 100644
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright 2017,2019 NXP
+ * Copyright 2017,2019-2020 NXP
  * Copyright(c) 2017-2020 Intel Corporation.
  */
 
@@ -290,7 +290,15 @@ struct rte_security_pdcp_xform {
 	 * per packet HFN in place of IV. PMDs will extract the HFN
 	 * and perform operations accordingly.
 	 */
-	uint32_t hfn_ovrd;
+	uint8_t hfn_ovrd;
+	/** In case of 5G NR, a new protocol(SDAP) header may be set
+	 * inside PDCP payload which should be authenticated but not
+	 * encrypted. Hence, driver should be notified if SDAP is
+	 * enabled or not, so that SDAP header is not encrypted.
+	 */
+	uint8_t sdap_enabled;
+	/** Reserved for future */
+	uint16_t reserved;
 };
 
 /** DOCSIS direction */
Signature · 1 line
2.17.1
#3 lore raw

Re: [dpdk-dev] [PATCH 2/7] security: modify PDCP xform to support SDAP

Hi Akhil

Quoted 2 lines

-----Original Message-----
From: [email protected] <[email protected]>

<snip>

Quoted 6 lines
doc/guides/prog_guide/rte_security.rst +0 -0
index 127da2e4f..ab535d1cd 100644
@@ -1,5 +1,5 @@

<snip>

Quoted 13 lines
doc/guides/prog_guide/rte_security.rst +0 -0
@@ -693,6 +693,23 @@ PDCP related configuration parameters are defined

in ``rte_security_pdcp_xform``

         uint32_t hfn;
         /** HFN Threshold for key renegotiation */
         uint32_t hfn_threshold;
doc/guides/prog_guide/rte_security.rst +8 -0
+        /** HFN can be given as a per packet value also.
+         * As we do not have IV in case of PDCP, and HFN is
+         * used to generate IV. IV field can be used to get the
+         * per packet HFN while enq/deq.
+         * If hfn_ovrd field is set, user is expected to set the
+         * per packet HFN in place of IV. PMDs will extract the HFN
+         * and perform operations accordingly.
+         */

doc/guides/prog_guide/rte_security.rst PDCP related configuration parameters are defined in ``rte_security_pdcp_xform`` · line 713

Quoted 10 lines
doc/guides/prog_guide/rte_security.rst +9 -0
+         uint8_t hfn_ovrd;
+         /** In case of 5G NR, a new protocol(SDAP) header may be set
+          * inside PDCP payload which should be authenticated but not
+          * encrypted. Hence, driver should be notified if SDAP is
+          * enabled or not, so that SDAP header is not encrypted.
+          */
+         uint8_t sdap_enabled;
+         /** Reserved for future */
+         uint16_t reserved;
     };

[DC] Should we consider removing the API code out of the security documentation?
It's a direct copy of the API code itself, and just means 2 files need to be updated for every API change. And as with 'hfn_ovrd', sometimes it's forgotten.
From maintainability point of view, it might be better just remove it.

Quoted 15 lines

DOCSIS related configuration parameters are defined in
``rte_security_docsis_xform`` diff --git a/lib/librte_security/rte_security.h b/lib/librte_security/rte_security.h
index 16839e539..48b377b20 100644

lib/librte_security/rte_security.h +1 -1
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright 2017,2019 NXP
+ * Copyright 2017,2019-2020 NXP
  * Copyright(c) 2017-2020 Intel Corporation.
  */
 

lib/librte_security/rte_security.h struct rte_security_pdcp_xform { · line 294

Quoted 6 lines
lib/librte_security/rte_security.h +2 -1
@@ -290,7 +290,15 @@ struct rte_security_pdcp_xform {
 	 * per packet HFN in place of IV. PMDs will extract the HFN
 	 * and perform operations accordingly.
 	 */
-	uint32_t hfn_ovrd;
+	uint8_t hfn_ovrd;
+	/** In case of 5G NR, a new protocol(SDAP) header may be set

[DC] Very minor thing... add space between 'protocol' and '(SDAP)' in the comment block.

And same comment for the documentation if you choose to keep the API code blocks there too.

Quoted 12 lines
lib/librte_security/rte_security.h +7 -1
+	 * inside PDCP payload which should be authenticated but not
+	 * encrypted. Hence, driver should be notified if SDAP is
+	 * enabled or not, so that SDAP header is not encrypted.
+	 */
+	uint8_t sdap_enabled;
+	/** Reserved for future */
+	uint16_t reserved;
 };
 
 /** DOCSIS direction */
--

2.17.1

#4 lore raw

Re: [dpdk-dev] [PATCH 2/7] security: modify PDCP xform to support SDAP

Hi David,

Quoted 25 lines

Hi Akhil

Quoted 22 lines
(quoted diff) +0 -0
@@ -693,6 +693,23 @@ PDCP related configuration parameters are defined

in ``rte_security_pdcp_xform``

         uint32_t hfn;
         /** HFN Threshold for key renegotiation */
         uint32_t hfn_threshold;
doc/guides/prog_guide/rte_security.rst +17 -0
+        /** HFN can be given as a per packet value also.
+         * As we do not have IV in case of PDCP, and HFN is
+         * used to generate IV. IV field can be used to get the
+         * per packet HFN while enq/deq.
+         * If hfn_ovrd field is set, user is expected to set the
+         * per packet HFN in place of IV. PMDs will extract the HFN
+         * and perform operations accordingly.
+         */
+         uint8_t hfn_ovrd;
+         /** In case of 5G NR, a new protocol(SDAP) header may be set
+          * inside PDCP payload which should be authenticated but not
+          * encrypted. Hence, driver should be notified if SDAP is
+          * enabled or not, so that SDAP header is not encrypted.
+          */
+         uint8_t sdap_enabled;
+         /** Reserved for future */
+         uint16_t reserved;
Quoted 8 lines
Quoted 1 line
     };

[DC] Should we consider removing the API code out of the security documentation?
It's a direct copy of the API code itself, and just means 2 files need to be updated for every API change.
And as with 'hfn_ovrd', sometimes it's forgotten.
From maintainability point of view, it might be better just remove it.

Yes we can remove it. I will remove it in a separate patch.

Quoted 15 lines
Quoted 15 lines

DOCSIS related configuration parameters are defined in
``rte_security_docsis_xform`` diff --git a/lib/librte_security/rte_security.h b/lib/librte_security/rte_security.h
index 16839e539..48b377b20 100644

lib/librte_security/rte_security.h +1 -1
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright 2017,2019 NXP
+ * Copyright 2017,2019-2020 NXP
  * Copyright(c) 2017-2020 Intel Corporation.
  */
 
Quoted 10 lines

lib/librte_security/rte_security.h struct rte_security_pdcp_xform { · line 294

Quoted 7 lines
lib/librte_security/rte_security.h +2 -1
@@ -290,7 +290,15 @@ struct rte_security_pdcp_xform {
 	 * per packet HFN in place of IV. PMDs will extract the HFN
 	 * and perform operations accordingly.
 	 */
-	uint32_t hfn_ovrd;
+	uint8_t hfn_ovrd;
+	/** In case of 5G NR, a new protocol(SDAP) header may be set

[DC] Very minor thing... add space between 'protocol' and '(SDAP)' in the comment block.

Sure. Will add it.

Quoted 1 line

Adding Techboard for request for approval of the change in the xform structure to Add sdap support.

Quoted 15 lines

And same comment for the documentation if you choose to keep the API code blocks there too.

Quoted 12 lines
lib/librte_security/rte_security.h +7 -1
+	 * inside PDCP payload which should be authenticated but not
+	 * encrypted. Hence, driver should be notified if SDAP is
+	 * enabled or not, so that SDAP header is not encrypted.
+	 */
+	uint8_t sdap_enabled;
+	/** Reserved for future */
+	uint16_t reserved;
 };
 
 /** DOCSIS direction */
--

2.17.1

#5 lore raw

PATCH 3/7 crypto/dpaa2_sec: enable PDCP-SDAP sessions

In reply to [email protected]

From: Akhil Goyal <[email protected]>

Based on the new field in PDCP xform, a decision is made to create a PDCP session with or without SDAP enabled.

---
 drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 30 ++++++++++++++++++---
 1 file changed, 26 insertions(+), 4 deletions(-)
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +26 -4
index 109e61ae1..6aa2a36f3 100644
@@ -36,6 +36,7 @@
 /* RTA header files */
 #include <desc/ipsec.h>
 #include <desc/pdcp.h>
+#include <desc/sdap.h>
 #include <desc/algo.h>
 
 /* Minimum job descriptor consists of a oneword job descriptor HEADER and
@@ -3186,8 +3187,9 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev,
 					&cipherdata, &authdata,
 					0);
 	} else {
-		if (session->dir == DIR_ENC)
-			bufsize = cnstr_shdsc_pdcp_u_plane_encap(
+		if (session->dir == DIR_ENC) {
+			if (pdcp_xform->sdap_enabled)
+				bufsize = cnstr_shdsc_pdcp_sdap_u_plane_encap(
 					priv->flc_desc[0].desc, 1, swap,
 					session->pdcp.sn_size,
 					pdcp_xform->hfn,
@@ -3195,8 +3197,18 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev,
 					pdcp_xform->pkt_dir,
 					pdcp_xform->hfn_threshold,
 					&cipherdata, p_authdata, 0);
-		else if (session->dir == DIR_DEC)
-			bufsize = cnstr_shdsc_pdcp_u_plane_decap(
+			else
+				bufsize = cnstr_shdsc_pdcp_u_plane_encap(
+					priv->flc_desc[0].desc, 1, swap,
+					session->pdcp.sn_size,
+					pdcp_xform->hfn,
+					pdcp_xform->bearer,
+					pdcp_xform->pkt_dir,
+					pdcp_xform->hfn_threshold,
+					&cipherdata, p_authdata, 0);
+		} else if (session->dir == DIR_DEC) {
+			if (pdcp_xform->sdap_enabled)
+				bufsize = cnstr_shdsc_pdcp_sdap_u_plane_decap(
 					priv->flc_desc[0].desc, 1, swap,
 					session->pdcp.sn_size,
 					pdcp_xform->hfn,
@@ -3204,6 +3216,16 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev,
 					pdcp_xform->pkt_dir,
 					pdcp_xform->hfn_threshold,
 					&cipherdata, p_authdata, 0);
+			else
+				bufsize = cnstr_shdsc_pdcp_u_plane_decap(
+					priv->flc_desc[0].desc, 1, swap,
+					session->pdcp.sn_size,
+					pdcp_xform->hfn,
+					pdcp_xform->bearer,
+					pdcp_xform->pkt_dir,
+					pdcp_xform->hfn_threshold,
+					&cipherdata, p_authdata, 0);
+		}
 	}
 
 	if (bufsize < 0) {
Signature · 1 line
2.17.1
#6 lore raw

PATCH 4/7 crypto/dpaa_sec: enable PDCP-SDAP sessions

In reply to [email protected]

From: Akhil Goyal <[email protected]>

Based on the new field in PDCP xform, a decision is made to create a PDCP session with or without SDAP enabled.

---
 drivers/crypto/dpaa_sec/dpaa_sec.c | 63 +++++++++++++++++++++---------
 drivers/crypto/dpaa_sec/dpaa_sec.h |  3 +-
 2 files changed, 47 insertions(+), 19 deletions(-)
drivers/crypto/dpaa_sec/dpaa_sec.c +45 -18
index c4339336d..192dba064 100644
@@ -36,6 +36,7 @@
 #include <desc/algo.h>
 #include <desc/ipsec.h>
 #include <desc/pdcp.h>
+#include <desc/sdap.h>
 
 #include <rte_dpaa_bus.h>
 #include <dpaa_sec.h>
@@ -293,24 +294,49 @@ dpaa_sec_prep_pdcp_cdb(dpaa_sec_session *ses)
 					&cipherdata, &authdata,
 					0);
 	} else {
-		if (ses->dir == DIR_ENC)
-			shared_desc_len = cnstr_shdsc_pdcp_u_plane_encap(
-					cdb->sh_desc, 1, swap,
-					ses->pdcp.sn_size,
-					ses->pdcp.hfn,
-					ses->pdcp.bearer,
-					ses->pdcp.pkt_dir,
-					ses->pdcp.hfn_threshold,
-					&cipherdata, p_authdata, 0);
-		else if (ses->dir == DIR_DEC)
-			shared_desc_len = cnstr_shdsc_pdcp_u_plane_decap(
-					cdb->sh_desc, 1, swap,
-					ses->pdcp.sn_size,
-					ses->pdcp.hfn,
-					ses->pdcp.bearer,
-					ses->pdcp.pkt_dir,
-					ses->pdcp.hfn_threshold,
-					&cipherdata, p_authdata, 0);
+		if (ses->dir == DIR_ENC) {
+			if (ses->pdcp.sdap_enabled)
+				shared_desc_len =
+					cnstr_shdsc_pdcp_sdap_u_plane_encap(
+						cdb->sh_desc, 1, swap,
+						ses->pdcp.sn_size,
+						ses->pdcp.hfn,
+						ses->pdcp.bearer,
+						ses->pdcp.pkt_dir,
+						ses->pdcp.hfn_threshold,
+						&cipherdata, p_authdata, 0);
+			else
+				shared_desc_len =
+					cnstr_shdsc_pdcp_u_plane_encap(
+						cdb->sh_desc, 1, swap,
+						ses->pdcp.sn_size,
+						ses->pdcp.hfn,
+						ses->pdcp.bearer,
+						ses->pdcp.pkt_dir,
+						ses->pdcp.hfn_threshold,
+						&cipherdata, p_authdata, 0);
+		} else if (ses->dir == DIR_DEC) {
+			if (ses->pdcp.sdap_enabled)
+				shared_desc_len =
+					cnstr_shdsc_pdcp_sdap_u_plane_decap(
+						cdb->sh_desc, 1, swap,
+						ses->pdcp.sn_size,
+						ses->pdcp.hfn,
+						ses->pdcp.bearer,
+						ses->pdcp.pkt_dir,
+						ses->pdcp.hfn_threshold,
+						&cipherdata, p_authdata, 0);
+			else
+				shared_desc_len =
+					cnstr_shdsc_pdcp_u_plane_decap(
+						cdb->sh_desc, 1, swap,
+						ses->pdcp.sn_size,
+						ses->pdcp.hfn,
+						ses->pdcp.bearer,
+						ses->pdcp.pkt_dir,
+						ses->pdcp.hfn_threshold,
+						&cipherdata, p_authdata, 0);
+		}
 	}
 	return shared_desc_len;
 }
@@ -2950,6 +2976,7 @@ dpaa_sec_set_pdcp_session(struct rte_cryptodev *dev,
 	session->pdcp.hfn_threshold = pdcp_xform->hfn_threshold;
 	session->pdcp.hfn_ovd = pdcp_xform->hfn_ovrd;
 	session->pdcp.hfn_ovd_offset = cipher_xform->iv.offset;
+	session->pdcp.sdap_enabled = pdcp_xform->sdap_enabled;
 
 	rte_spinlock_lock(&dev_priv->lock);
 	for (i = 0; i < MAX_DPAA_CORES; i++) {
drivers/crypto/dpaa_sec/dpaa_sec.h +2 -1
index 2cd50cc8d..ddba52982 100644
@@ -109,7 +109,8 @@ struct sec_pdcp_ctxt {
 	int8_t pkt_dir;/*!< PDCP Frame Direction 0:UL 1:DL*/
 	int8_t hfn_ovd;/*!< Overwrite HFN per packet*/
 	uint8_t sn_size;	/*!< Sequence number size, 5/7/12/15/18 */
-	uint32_t hfn_ovd_offset;/*!< offset from rte_crypto_op at which
+	uint8_t sdap_enabled;	/*!< SDAP header is enabled */
+	uint16_t hfn_ovd_offset;/*!< offset from rte_crypto_op at which
 				 * per packet hfn is stored
 				 */
 	uint32_t hfn;	/*!< Hyper Frame Number */
Signature · 1 line
2.17.1
#7 lore raw

PATCH 5/7 test/crypto: Add test vectors for PDCP-SDAP

In reply to [email protected]

From: Franck LENORMAND <[email protected]>

The test vectors are structured in a more readable way compared to test vector for PDCP. This structure allows to have all the information about a test vector at the same place.

---
 ...ryptodev_security_pdcp_sdap_test_vectors.h | 3619 +++++++++++++++++
 1 file changed, 3619 insertions(+)
 create mode 100644 app/test/test_cryptodev_security_pdcp_sdap_test_vectors.h
app/test/test_cryptodev_security_pdcp_sdap_test_vectors.h new file +3619 -0
new file mode 100644
index 000000000..f43f693ed
@@ -0,0 +1,3619 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ *
+ * Copyright 2020 NXP
+ */
+
+#ifndef SECURITY_PDCP_SDAP_TEST_VECTOR_H_
+#define SECURITY_PDCP_SDAP_TEST_VECTOR_H_
+
+#include <rte_security.h>
+
+struct pdcp_sdap_test {
+	uint32_t test_idx;
+	struct pdcp_sdap_test_param {
+		uint8_t type;
+		enum rte_security_pdcp_domain domain;
+		enum rte_crypto_cipher_algorithm cipher_alg;
+		uint8_t cipher_key_len;
+		enum rte_crypto_auth_algorithm auth_alg;
+		uint8_t auth_key_len;
+		const char *name;
+	} param;
+	const uint8_t *cipher_key;
+	const uint8_t *auth_key;
+	const uint8_t *data_in;
+	uint32_t in_len;
+	const uint8_t *data_out;
+	uint8_t sn_size;
+	uint32_t hfn;
+	uint32_t hfn_threshold;
+	uint8_t bearer;
+	uint8_t packet_direction;
+};
+
+static const struct pdcp_sdap_test list_pdcp_sdap_tests[] = {
+	/**************************** 7bit ************************************/
+
+	/************************ null + null ****************************/
+
+	{
+		.test_idx = 1,
+		.param = {.name = "PDCP-SDAP Uplane: 7b SN, NULL_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					 0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					 0x42, 0x14, 0x07, 0xe8 },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 2,
+		.param = {.name = "PDCP-SDAP Uplane: 7b SN, NULL_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					 0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					 0x42, 0x14, 0x07, 0xe8 },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/************************ aes-ctr + null ****************************/
+
+	{
+		.test_idx = 3,
+		.param = {.name = "PDCP-SDAP Uplane: 7b SN, AES-CTR_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0x3e, 0x79, 0xa9, 0xc0,
+					 0xec, 0xdd, 0x9e, 0x8f, 0x91, 0x3f,
+					 0xa1, 0x6e, 0x59, 0xed },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/************************ aes-ctr + null ****************************/
+
+	{
+		.test_idx = 4,
+		.param = {.name =
+				"PDCP-SDAP Uplane: 7b SN, AES-CTR_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0x31, 0x55, 0x0b, 0x16,
+					 0xb2, 0xe9, 0x3b, 0x87, 0x36, 0xd9,
+					 0x17, 0xad, 0x90, 0x3f },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 5,
+		.param = {.name = "PDCP-SDAP Uplane: 7b SN, SNOW-f8_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0xb1, 0x17, 0xbe, 0xb1,
+					 0x60, 0xbb, 0xd6, 0x3f, 0x36, 0x96,
+					 0x96, 0xcd, 0x2d, 0xa7 },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 6,
+		.param = {.name =
+				"PDCP-SDAP Uplane: 7b SN, SNOW-f8_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0xd3, 0x89, 0x03, 0x1e,
+					 0x7d, 0x29, 0xfc, 0x77, 0x94, 0x3c,
+					 0x99, 0x72, 0x3c, 0xe8 },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/**************************** zuc + null ****************************/
+
+	{
+		.test_idx = 7,
+		.param = {.name = "PDCP-SDAP Uplane: 7b SN, ZUC_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0xfa, 0xad, 0x58, 0x43,
+					 0x6f, 0xd9, 0x8f, 0xaa, 0x06, 0x3e,
+					 0xdc, 0x52, 0x42, 0x26 },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** zuc + null ****************************/
+
+	{
+		.test_idx = 8,
+		.param = {.name = "PDCP-SDAP Uplane: 7b SN, ZUC_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0xd8, 0x0a, 0x12, 0xe9,
+					 0x7f, 0xab, 0x63, 0x57, 0x99, 0xf2,
+					 0x39, 0x18, 0x32, 0xdc },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/***************************** 12bit **********************************/
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 9,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 10,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/************************ null + aes-cmac ****************************/
+
+	{
+		.test_idx = 11,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd, 0x3f, 0x71, 0x26, 0x2e },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/************************ null + aes-cmac ****************************/
+
+	{
+		.test_idx = 12,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd, 0x92, 0xae, 0xfe, 0xf8 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** null + snow ****************************/
+
+	{
+		.test_idx = 13,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and SNOW-f9_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd, 0x74, 0xb8, 0x27, 0x96 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + snow ****************************/
+
+	{
+		.test_idx = 14,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and SNOW-f9_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd, 0x3d, 0x8b, 0x0d, 0xa8 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** null + zuc ****************************/
+
+	{
+		.test_idx = 15,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and ZUC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd, 0x54, 0xef, 0x25, 0xc3 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + zuc ****************************/
+
+	{
+		.test_idx = 16,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and ZUC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd, 0xf7, 0x16, 0xd4, 0x94 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + null *************************/
+
+	{
+		.test_idx = 17,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x69, 0xf2, 0x5d, 0xd7,
+				     0xf5, 0xc1, 0xf7, 0x1e, 0x47, 0x5d, 0xce,
+				     0xbe, 0x48, 0xb5, 0x0b, 0x6a, 0x73, 0x9a,
+				     0x5a, 0xa3, 0x06, 0x47, 0x40, 0x96, 0xcf,
+				     0x86, 0x98, 0x3d, 0x6f, 0xcf, 0x17, 0x41,
+				     0xa5, 0x13, 0xa5, 0x35, 0x9a, 0xa6, 0x24,
+				     0xc9, 0x7f, 0x11, 0x79, 0x24, 0x44, 0xe8,
+				     0x39, 0x11, 0x03, 0x0a, 0x9d, 0x4f, 0xe2,
+				     0x95, 0x9f, 0x47, 0x73, 0x37, 0x83, 0x8c,
+				     0x23, 0xfa, 0x16, 0x06, 0x86, 0x33, 0x3f },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/************************* aes-ctr + null ****************************/
+
+	{
+		.test_idx = 18,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x22, 0x2a, 0x8f, 0x86,
+				     0x25, 0x92, 0xcd, 0xa9, 0xa1, 0xa0, 0xf5,
+				     0x86, 0x0d, 0xe8, 0xe4, 0xef, 0xe0, 0x78,
+				     0x45, 0x7c, 0x0c, 0x41, 0x5c, 0x8f, 0x07,
+				     0x6f, 0xec, 0x2f, 0x99, 0x8b, 0xfd, 0x9c,
+				     0x4a, 0x6a, 0xe4, 0x5d, 0xd3, 0x3c, 0x40,
+				     0x35, 0xff, 0x7a, 0x42, 0xac, 0x94, 0x21,
+				     0x60, 0x1c, 0x13, 0xcc, 0x7e, 0x6b, 0x2f,
+				     0x6f, 0x91, 0x89, 0xc6, 0xd4, 0xe6, 0x17,
+				     0xae, 0xde, 0xfb, 0x02, 0xcc, 0xa7, 0x33 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/********************* aes-ctr + aes-cmac ****************************/
+
+	{
+		.test_idx = 19,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x69, 0xf2, 0x5d, 0xd7,
+				     0xf5, 0xc1, 0xf7, 0x1e, 0x47, 0x5d, 0xce,
+				     0xbe, 0x48, 0xb5, 0x0b, 0x6a, 0x73, 0x9a,
+				     0x5a, 0xa3, 0x06, 0x47, 0x40, 0x96, 0xcf,
+				     0x86, 0x98, 0x3d, 0x6f, 0xcf, 0x17, 0x41,
+				     0xa5, 0x13, 0xa5, 0x35, 0x9a, 0xa6, 0x24,
+				     0xc9, 0x7f, 0x11, 0x79, 0x24, 0x44, 0xe8,
+				     0x39, 0x11, 0x03, 0x0a, 0x9d, 0x4f, 0xe2,
+				     0x95, 0x9f, 0x47, 0x73, 0x37, 0x83, 0x8c,
+				     0x23, 0xfa, 0x16, 0x39, 0xf7, 0x15, 0x11 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/********************* aes-ctr + aes-cmac ****************************/
+
+	{
+		.test_idx = 20,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x22, 0x2a, 0x8f, 0x86,
+				     0x25, 0x92, 0xcd, 0xa9, 0xa1, 0xa0, 0xf5,
+				     0x86, 0x0d, 0xe8, 0xe4, 0xef, 0xe0, 0x78,
+				     0x45, 0x7c, 0x0c, 0x41, 0x5c, 0x8f, 0x07,
+				     0x6f, 0xec, 0x2f, 0x99, 0x8b, 0xfd, 0x9c,
+				     0x4a, 0x6a, 0xe4, 0x5d, 0xd3, 0x3c, 0x40,
+				     0x35, 0xff, 0x7a, 0x42, 0xac, 0x94, 0x21,
+				     0x60, 0x1c, 0x13, 0xcc, 0x7e, 0x6b, 0x2f,
+				     0x6f, 0x91, 0x89, 0xc6, 0xd4, 0xe6, 0x17,
+				     0xae, 0xde, 0xfb, 0x90, 0x62, 0x59, 0xcb },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/************************* aes-ctr + snow ****************************/
+
+	{
+		.test_idx = 21,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and SNOW-f9_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x69, 0xf2, 0x5d, 0xd7,
+				     0xf5, 0xc1, 0xf7, 0x1e, 0x47, 0x5d, 0xce,
+				     0xbe, 0x48, 0xb5, 0x0b, 0x6a, 0x73, 0x9a,
+				     0x5a, 0xa3, 0x06, 0x47, 0x40, 0x96, 0xcf,
+				     0x86, 0x98, 0x3d, 0x6f, 0xcf, 0x17, 0x41,
+				     0xa5, 0x13, 0xa5, 0x35, 0x9a, 0xa6, 0x24,
+				     0xc9, 0x7f, 0x11, 0x79, 0x24, 0x44, 0xe8,
+				     0x39, 0x11, 0x03, 0x0a, 0x9d, 0x4f, 0xe2,
+				     0x95, 0x9f, 0x47, 0x73, 0x37, 0x83, 0x8c,
+				     0x23, 0xfa, 0x16, 0x72, 0x3e, 0x14, 0xa9 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/************************* aes-ctr + snow ****************************/
+
+	{
+		.test_idx = 22,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and SNOW-f9_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x22, 0x2a, 0x8f, 0x86,
+				     0x25, 0x92, 0xcd, 0xa9, 0xa1, 0xa0, 0xf5,
+				     0x86, 0x0d, 0xe8, 0xe4, 0xef, 0xe0, 0x78,
+				     0x45, 0x7c, 0x0c, 0x41, 0x5c, 0x8f, 0x07,
+				     0x6f, 0xec, 0x2f, 0x99, 0x8b, 0xfd, 0x9c,
+				     0x4a, 0x6a, 0xe4, 0x5d, 0xd3, 0x3c, 0x40,
+				     0x35, 0xff, 0x7a, 0x42, 0xac, 0x94, 0x21,
+				     0x60, 0x1c, 0x13, 0xcc, 0x7e, 0x6b, 0x2f,
+				     0x6f, 0x91, 0x89, 0xc6, 0xd4, 0xe6, 0x17,
+				     0xae, 0xde, 0xfb, 0x3f, 0x47, 0xaa, 0x9b },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + zuc **************************/
+
+	{
+		.test_idx = 23,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and ZUC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){
+				0x50, 0x01, 0x86, 0x69, 0xf2, 0x5d, 0xd7, 0xf5,
+				0xc1, 0xf7, 0x1e, 0x47, 0x5d, 0xce, 0xbe, 0x48,
+				0xb5, 0x0b, 0x6a, 0x73, 0x9a, 0x5a, 0xa3, 0x06,
+				0x47, 0x40, 0x96, 0xcf, 0x86, 0x98, 0x3d, 0x6f,
+				0xcf, 0x17, 0x41, 0xa5, 0x13, 0xa5, 0x35, 0x9a,
+				0xa6, 0x24, 0xc9, 0x7f, 0x11, 0x79, 0x24, 0x44,
+				0xe8, 0x39, 0x11, 0x03, 0x0a, 0x9d, 0x4f, 0xe2,
+				0x95, 0x9f, 0x47, 0x73, 0x37, 0x83, 0x8c, 0x23,
+				0xfa, 0x16, 0x52, 0x69, 0x16, 0xfc,
+			},
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** aes-ctr + zuc **************************/
+
+	{
+		.test_idx = 24,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and ZUC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x22, 0x2a, 0x8f, 0x86,
+				     0x25, 0x92, 0xcd, 0xa9, 0xa1, 0xa0, 0xf5,
+				     0x86, 0x0d, 0xe8, 0xe4, 0xef, 0xe0, 0x78,
+				     0x45, 0x7c, 0x0c, 0x41, 0x5c, 0x8f, 0x07,
+				     0x6f, 0xec, 0x2f, 0x99, 0x8b, 0xfd, 0x9c,
+				     0x4a, 0x6a, 0xe4, 0x5d, 0xd3, 0x3c, 0x40,
+				     0x35, 0xff, 0x7a, 0x42, 0xac, 0x94, 0x21,
+				     0x60, 0x1c, 0x13, 0xcc, 0x7e, 0x6b, 0x2f,
+				     0x6f, 0x91, 0x89, 0xc6, 0xd4, 0xe6, 0x17,
+				     0xae, 0xde, 0xfb, 0xf5, 0xda, 0x73, 0xa7 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 25,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xe8, 0x8c, 0x96, 0x38,
+				     0x6e, 0xe4, 0x1f, 0xb9, 0x85, 0x61, 0x2e,
+				     0x64, 0x31, 0x22, 0x97, 0x5b, 0xf6, 0x40,
+				     0x08, 0x65, 0xc3, 0xfa, 0x72, 0xd2, 0x22,
+				     0x37, 0x8e, 0x4d, 0xc1, 0xac, 0x7c, 0x7d,
+				     0x03, 0xf1, 0x50, 0x9f, 0x97, 0x67, 0x4e,
+				     0x23, 0x80, 0xcc, 0x5f, 0xfd, 0x74, 0xb1,
+				     0xfb, 0xe1, 0xea, 0x6f, 0xf9, 0x9d, 0xf3,
+				     0x90, 0x02, 0x6e, 0xf1, 0xf8, 0x95, 0x97,
+				     0xbd, 0xba, 0x08, 0x06, 0x12, 0x07, 0xac },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 26,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xd2, 0xc0, 0x3a, 0x41,
+				     0xbc, 0x0b, 0x95, 0xa4, 0x57, 0x3e, 0x36,
+				     0x10, 0xb2, 0xff, 0x48, 0x1f, 0x10, 0xa8,
+				     0x06, 0x42, 0xc5, 0xa2, 0x33, 0xed, 0x2e,
+				     0x37, 0x23, 0x04, 0x06, 0x84, 0xb9, 0x4c,
+				     0x1b, 0x17, 0xf3, 0x16, 0xc4, 0xd1, 0xa8,
+				     0x35, 0xd2, 0x31, 0x1a, 0xb8, 0x33, 0xc7,
+				     0x9c, 0xa4, 0xa4, 0x9b, 0x20, 0xc6, 0x47,
+				     0xdd, 0xe5, 0xa3, 0x4b, 0x9e, 0x66, 0xde,
+				     0xc9, 0x0a, 0x64, 0x1c, 0xd7, 0x20, 0x52 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + aes-cmac ************************/
+
+	{
+		.test_idx = 27,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xe8, 0x8c, 0x96, 0x38,
+				     0x6e, 0xe4, 0x1f, 0xb9, 0x85, 0x61, 0x2e,
+				     0x64, 0x31, 0x22, 0x97, 0x5b, 0xf6, 0x40,
+				     0x08, 0x65, 0xc3, 0xfa, 0x72, 0xd2, 0x22,
+				     0x37, 0x8e, 0x4d, 0xc1, 0xac, 0x7c, 0x7d,
+				     0x03, 0xf1, 0x50, 0x9f, 0x97, 0x67, 0x4e,
+				     0x23, 0x80, 0xcc, 0x5f, 0xfd, 0x74, 0xb1,
+				     0xfb, 0xe1, 0xea, 0x6f, 0xf9, 0x9d, 0xf3,
+				     0x90, 0x02, 0x6e, 0xf1, 0xf8, 0x95, 0x97,
+				     0xbd, 0xba, 0x08, 0x39, 0x63, 0x21, 0x82 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + aes-cmac ************************/
+
+	{
+		.test_idx = 28,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xd2, 0xc0, 0x3a, 0x41,
+				     0xbc, 0x0b, 0x95, 0xa4, 0x57, 0x3e, 0x36,
+				     0x10, 0xb2, 0xff, 0x48, 0x1f, 0x10, 0xa8,
+				     0x06, 0x42, 0xc5, 0xa2, 0x33, 0xed, 0x2e,
+				     0x37, 0x23, 0x04, 0x06, 0x84, 0xb9, 0x4c,
+				     0x1b, 0x17, 0xf3, 0x16, 0xc4, 0xd1, 0xa8,
+				     0x35, 0xd2, 0x31, 0x1a, 0xb8, 0x33, 0xc7,
+				     0x9c, 0xa4, 0xa4, 0x9b, 0x20, 0xc6, 0x47,
+				     0xdd, 0xe5, 0xa3, 0x4b, 0x9e, 0x66, 0xde,
+				     0xc9, 0x0a, 0x64, 0x8e, 0x79, 0xde, 0xaa },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + snow ****************************/
+
+	{
+		.test_idx = 29,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and SNOW-f9_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xe8, 0x8c, 0x96, 0x38,
+				     0x6e, 0xe4, 0x1f, 0xb9, 0x85, 0x61, 0x2e,
+				     0x64, 0x31, 0x22, 0x97, 0x5b, 0xf6, 0x40,
+				     0x08, 0x65, 0xc3, 0xfa, 0x72, 0xd2, 0x22,
+				     0x37, 0x8e, 0x4d, 0xc1, 0xac, 0x7c, 0x7d,
+				     0x03, 0xf1, 0x50, 0x9f, 0x97, 0x67, 0x4e,
+				     0x23, 0x80, 0xcc, 0x5f, 0xfd, 0x74, 0xb1,
+				     0xfb, 0xe1, 0xea, 0x6f, 0xf9, 0x9d, 0xf3,
+				     0x90, 0x02, 0x6e, 0xf1, 0xf8, 0x95, 0x97,
+				     0xbd, 0xba, 0x08, 0x72, 0xaa, 0x20, 0x3a },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + snow ****************************/
+
+	{
+		.test_idx = 30,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and SNOW-f9_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xd2, 0xc0, 0x3a, 0x41,
+				     0xbc, 0x0b, 0x95, 0xa4, 0x57, 0x3e, 0x36,
+				     0x10, 0xb2, 0xff, 0x48, 0x1f, 0x10, 0xa8,
+				     0x06, 0x42, 0xc5, 0xa2, 0x33, 0xed, 0x2e,
+				     0x37, 0x23, 0x04, 0x06, 0x84, 0xb9, 0x4c,
+				     0x1b, 0x17, 0xf3, 0x16, 0xc4, 0xd1, 0xa8,
+				     0x35, 0xd2, 0x31, 0x1a, 0xb8, 0x33, 0xc7,
+				     0x9c, 0xa4, 0xa4, 0x9b, 0x20, 0xc6, 0x47,
+				     0xdd, 0xe5, 0xa3, 0x4b, 0x9e, 0x66, 0xde,
+				     0xc9, 0x0a, 0x64, 0x21, 0x5c, 0x2d, 0xfa },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + zuc ****************************/
+
+	{
+		.test_idx = 31,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and ZUC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xe8, 0x8c, 0x96, 0x38,
+				     0x6e, 0xe4, 0x1f, 0xb9, 0x85, 0x61, 0x2e,
+				     0x64, 0x31, 0x22, 0x97, 0x5b, 0xf6, 0x40,
+				     0x08, 0x65, 0xc3, 0xfa, 0x72, 0xd2, 0x22,
+				     0x37, 0x8e, 0x4d, 0xc1, 0xac, 0x7c, 0x7d,
+				     0x03, 0xf1, 0x50, 0x9f, 0x97, 0x67, 0x4e,
+				     0x23, 0x80, 0xcc, 0x5f, 0xfd, 0x74, 0xb1,
+				     0xfb, 0xe1, 0xea, 0x6f, 0xf9, 0x9d, 0xf3,
+				     0x90, 0x02, 0x6e, 0xf1, 0xf8, 0x95, 0x97,
+				     0xbd, 0xba, 0x08, 0x52, 0xfd, 0x22, 0x6f },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + zuc ****************************/
+
+	{
+		.test_idx = 32,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and ZUC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xd2, 0xc0, 0x3a, 0x41,
+				     0xbc, 0x0b, 0x95, 0xa4, 0x57, 0x3e, 0x36,
+				     0x10, 0xb2, 0xff, 0x48, 0x1f, 0x10, 0xa8,
+				     0x06, 0x42, 0xc5, 0xa2, 0x33, 0xed, 0x2e,
+				     0x37, 0x23, 0x04, 0x06, 0x84, 0xb9, 0x4c,
+				     0x1b, 0x17, 0xf3, 0x16, 0xc4, 0xd1, 0xa8,
+				     0x35, 0xd2, 0x31, 0x1a, 0xb8, 0x33, 0xc7,
+				     0x9c, 0xa4, 0xa4, 0x9b, 0x20, 0xc6, 0x47,
+				     0xdd, 0xe5, 0xa3, 0x4b, 0x9e, 0x66, 0xde,
+				     0xc9, 0x0a, 0x64, 0xeb, 0xc1, 0xf4, 0xc6 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** zuc + null ****************************/
+
+	{
+		.test_idx = 33,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x79, 0xdb, 0x02, 0x27,
+				     0xa0, 0x85, 0x82, 0x87, 0x6b, 0x35, 0x2b,
+				     0xe1, 0x96, 0x5b, 0xfd, 0x67, 0xe1, 0x67,
+				     0x69, 0x17, 0x5b, 0x0a, 0x8f, 0xb8, 0x37,
+				     0xeb, 0xb8, 0x3f, 0x13, 0x7b, 0x88, 0x40,
+				     0x29, 0x67, 0x21, 0xf9, 0xc0, 0xaf, 0xca,
+				     0xda, 0x94, 0x61, 0x8e, 0x2d, 0x7a, 0x5d,
+				     0x64, 0x0f, 0x4a, 0xc7, 0x7c, 0x9d, 0x56,
+				     0x5a, 0x2a, 0xcb, 0xff, 0x79, 0x07, 0xa5,
+				     0xaf, 0x96, 0x5c, 0x89, 0x1d, 0xcd, 0x3a },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** zuc + null ****************************/
+
+	{
+		.test_idx = 34,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x2c, 0x0f, 0xc1, 0x08,
+				     0x2e, 0xa7, 0x97, 0xd2, 0x6c, 0x17, 0x8f,
+				     0x22, 0x1f, 0x99, 0x1b, 0x48, 0x04, 0x29,
+				     0x54, 0x3f, 0x07, 0x01, 0xda, 0x19, 0x59,
+				     0x74, 0x17, 0x45, 0x46, 0x7e, 0x6c, 0x0b,
+				     0xc5, 0x6e, 0x90, 0xa7, 0x1e, 0x8d, 0x01,
+				     0x04, 0xf4, 0xfe, 0xe6, 0xf7, 0x53, 0x51,
+				     0x70, 0x10, 0x56, 0x83, 0x59, 0xb5, 0x64,
+				     0x0b, 0xa6, 0x2e, 0xa5, 0x03, 0x62, 0x13,
+				     0x91, 0xaf, 0x24, 0x20, 0x2c, 0x05, 0xdf },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** zuc + aes-cmac *************************/
+
+	{
+		.test_idx = 35,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x79, 0xdb, 0x02, 0x27,
+				     0xa0, 0x85, 0x82, 0x87, 0x6b, 0x35, 0x2b,
+				     0xe1, 0x96, 0x5b, 0xfd, 0x67, 0xe1, 0x67,
+				     0x69, 0x17, 0x5b, 0x0a, 0x8f, 0xb8, 0x37,
+				     0xeb, 0xb8, 0x3f, 0x13, 0x7b, 0x88, 0x40,
+				     0x29, 0x67, 0x21, 0xf9, 0xc0, 0xaf, 0xca,
+				     0xda, 0x94, 0x61, 0x8e, 0x2d, 0x7a, 0x5d,
+				     0x64, 0x0f, 0x4a, 0xc7, 0x7c, 0x9d, 0x56,
+				     0x5a, 0x2a, 0xcb, 0xff, 0x79, 0x07, 0xa5,
+				     0xaf, 0x96, 0x5c, 0xb6, 0x6c, 0xeb, 0x14 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** zuc + aes-cmac *************************/
+
+	{
+		.test_idx = 36,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x2c, 0x0f, 0xc1, 0x08,
+				     0x2e, 0xa7, 0x97, 0xd2, 0x6c, 0x17, 0x8f,
+				     0x22, 0x1f, 0x99, 0x1b, 0x48, 0x04, 0x29,
+				     0x54, 0x3f, 0x07, 0x01, 0xda, 0x19, 0x59,
+				     0x74, 0x17, 0x45, 0x46, 0x7e, 0x6c, 0x0b,
+				     0xc5, 0x6e, 0x90, 0xa7, 0x1e, 0x8d, 0x01,
+				     0x04, 0xf4, 0xfe, 0xe6, 0xf7, 0x53, 0x51,
+				     0x70, 0x10, 0x56, 0x83, 0x59, 0xb5, 0x64,
+				     0x0b, 0xa6, 0x2e, 0xa5, 0x03, 0x62, 0x13,
+				     0x91, 0xaf, 0x24, 0xb2, 0x82, 0xfb, 0x27 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** zuc + snow ****************************/
+
+	{
+		.test_idx = 37,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and SNOW-f9_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x79, 0xdb, 0x02, 0x27,
+				     0xa0, 0x85, 0x82, 0x87, 0x6b, 0x35, 0x2b,
+				     0xe1, 0x96, 0x5b, 0xfd, 0x67, 0xe1, 0x67,
+				     0x69, 0x17, 0x5b, 0x0a, 0x8f, 0xb8, 0x37,
+				     0xeb, 0xb8, 0x3f, 0x13, 0x7b, 0x88, 0x40,
+				     0x29, 0x67, 0x21, 0xf9, 0xc0, 0xaf, 0xca,
+				     0xda, 0x94, 0x61, 0x8e, 0x2d, 0x7a, 0x5d,
+				     0x64, 0x0f, 0x4a, 0xc7, 0x7c, 0x9d, 0x56,
+				     0x5a, 0x2a, 0xcb, 0xff, 0x79, 0x07, 0xa5,
+				     0xaf, 0x96, 0x5c, 0xfd, 0xa5, 0xea, 0xac },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** zuc + snow ****************************/
+
+	{
+		.test_idx = 38,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and SNOW-f9_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x2c, 0x0f, 0xc1, 0x08,
+				     0x2e, 0xa7, 0x97, 0xd2, 0x6c, 0x17, 0x8f,
+				     0x22, 0x1f, 0x99, 0x1b, 0x48, 0x04, 0x29,
+				     0x54, 0x3f, 0x07, 0x01, 0xda, 0x19, 0x59,
+				     0x74, 0x17, 0x45, 0x46, 0x7e, 0x6c, 0x0b,
+				     0xc5, 0x6e, 0x90, 0xa7, 0x1e, 0x8d, 0x01,
+				     0x04, 0xf4, 0xfe, 0xe6, 0xf7, 0x53, 0x51,
+				     0x70, 0x10, 0x56, 0x83, 0x59, 0xb5, 0x64,
+				     0x0b, 0xa6, 0x2e, 0xa5, 0x03, 0x62, 0x13,
+				     0x91, 0xaf, 0x24, 0x1d, 0xa7, 0x08, 0x77 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** zuc + zuc ****************************/
+
+	{
+		.test_idx = 39,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and ZUC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x79, 0xdb, 0x02, 0x27,
+				     0xa0, 0x85, 0x82, 0x87, 0x6b, 0x35, 0x2b,
+				     0xe1, 0x96, 0x5b, 0xfd, 0x67, 0xe1, 0x67,
+				     0x69, 0x17, 0x5b, 0x0a, 0x8f, 0xb8, 0x37,
+				     0xeb, 0xb8, 0x3f, 0x13, 0x7b, 0x88, 0x40,
+				     0x29, 0x67, 0x21, 0xf9, 0xc0, 0xaf, 0xca,
+				     0xda, 0x94, 0x61, 0x8e, 0x2d, 0x7a, 0x5d,
+				     0x64, 0x0f, 0x4a, 0xc7, 0x7c, 0x9d, 0x56,
+				     0x5a, 0x2a, 0xcb, 0xff, 0x79, 0x07, 0xa5,
+				     0xaf, 0x96, 0x5c, 0xdd, 0xf2, 0xe8, 0xf9 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** zuc + zuc ****************************/
+
+	{
+		.test_idx = 40,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and ZUC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x2c, 0x0f, 0xc1, 0x08,
+				     0x2e, 0xa7, 0x97, 0xd2, 0x6c, 0x17, 0x8f,
+				     0x22, 0x1f, 0x99, 0x1b, 0x48, 0x04, 0x29,
+				     0x54, 0x3f, 0x07, 0x01, 0xda, 0x19, 0x59,
+				     0x74, 0x17, 0x45, 0x46, 0x7e, 0x6c, 0x0b,
+				     0xc5, 0x6e, 0x90, 0xa7, 0x1e, 0x8d, 0x01,
+				     0x04, 0xf4, 0xfe, 0xe6, 0xf7, 0x53, 0x51,
+				     0x70, 0x10, 0x56, 0x83, 0x59, 0xb5, 0x64,
+				     0x0b, 0xa6, 0x2e, 0xa5, 0x03, 0x62, 0x13,
+				     0x91, 0xaf, 0x24, 0xd7, 0x3a, 0xd1, 0x4b },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/***************************** 15bit **********************************/
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 41,
+		.param = {.name = "PDCP-SDAP Uplane: 15b SN, NULL_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					 0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					 0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 42,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 15b SN, NULL_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					 0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					 0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + null *************************/
+
+	{
+		.test_idx = 43,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 15b SN, AES-CTR_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x90, 0xf6, 0xf8,
+					 0xf2, 0x2b, 0xb2, 0x40, 0x40, 0x9c,
+					 0xd6, 0x31, 0x66, 0x62, 0xcc },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** aes-ctr + null *************************/
+
+	{
+		.test_idx = 44,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 15b SN, AES-CTR_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0xf6, 0x2a, 0x78,
+					 0x25, 0x3c, 0xf3, 0x23, 0x56, 0x1e,
+					 0x0e, 0xea, 0x2a, 0x75, 0x4c },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 45,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 15b SN, SNOW-f8_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x8f, 0xaa, 0x5e,
+					 0xee, 0x10, 0xdf, 0x4d, 0xdc, 0x2e,
+					 0x64, 0x23, 0x36, 0x3f, 0x75 },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 46,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 15b SN, SNOW-f8_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x3a, 0x88, 0xa8,
+					 0x69, 0xb5, 0xd0, 0x97, 0x3c, 0xfb,
+					 0xe1, 0x29, 0x49, 0xd9, 0x80 },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/**************************** zuc + null ****************************/
+
+	{
+		.test_idx = 47,
+		.param = {.name = "PDCP-SDAP Uplane: 15b SN, ZUC_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x30, 0xd2, 0xe1,
+					 0xef, 0x7a, 0xd6, 0x63, 0xb1, 0xc4,
+					 0x92, 0x83, 0x28, 0xbe, 0x39 },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** zuc + null ****************************/
+
+	{
+		.test_idx = 48,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 15b SN, ZUC_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x92, 0xc2, 0x45,
+					 0xb4, 0x75, 0x24, 0x76, 0x26, 0xaa,
+					 0xe1, 0xf4, 0x45, 0xce, 0xfd },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/***************************** 18bit **********************************/
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 49,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xF8, 0x00, 0x00, 0xF8, 0xDB, 0x2D, 0x3F,
+				     0x23, 0x82, 0x53, 0xFD, 0x37, 0xDE, 0x88,
+				     0x63, 0x08, 0x4F, 0xD3, 0x71, 0xFB, 0xEB,
+				     0x35, 0xF3, 0x64, 0xD3, 0x5E, 0xAF, 0x3F,
+				     0x57, 0xC2, 0xE2, 0x91, 0x91, 0xA3, 0x9C,
+				     0xE6, 0x30, 0x69, 0x70, 0x33, 0x8A, 0x15,
+				     0xD0, 0x36, 0x47, 0x0E, 0x8F, 0xEE, 0x2C,
+				     0x96, 0x0C, 0xD7, 0x7D, 0x70, 0x1B, 0x01,
+				     0x7F, 0x96, 0x46, 0x53, 0xB0, 0xA4, 0x7A,
+				     0xF9, 0xDD, 0xCC, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xF8, 0x00, 0x00, 0xF8, 0xDB, 0x2D, 0x3F,
+				     0x23, 0x82, 0x53, 0xFD, 0x37, 0xDE, 0x88,
+				     0x63, 0x08, 0x4F, 0xD3, 0x71, 0xFB, 0xEB,
+				     0x35, 0xF3, 0x64, 0xD3, 0x5E, 0xAF, 0x3F,
+				     0x57, 0xC2, 0xE2, 0x91, 0x91, 0xA3, 0x9C,
+				     0xE6, 0x30, 0x69, 0x70, 0x33, 0x8A, 0x15,
+				     0xD0, 0x36, 0x47, 0x0E, 0x8F, 0xEE, 0x2C,
+				     0x96, 0x0C, 0xD7, 0x7D, 0x70, 0x1B, 0x01,
+				     0x7F, 0x96, 0x46, 0x53, 0xB0, 0xA4, 0x7A,
+				     0xF9, 0xDD, 0xCC, 0x69 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 50,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** null + aes-cmac ************************/
+
+	{
+		.test_idx = 51,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69, 0x70, 0x3e, 0x09,
+				     0xc7 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + aes-cmac ************************/
+
+	{
+		.test_idx = 52,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69, 0x55, 0x89, 0xe3,
+				     0x52 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** null + snow ****************************/
+
+	{
+		.test_idx = 53,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and SNOW-f9_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69, 0x00, 0x45, 0x13,
+				     0x4c },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + snow ****************************/
+
+	{
+		.test_idx = 54,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and SNOW-f9_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69, 0x73, 0x53, 0x85,
+				     0x5c },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** null + zuc ****************************/
+
+	{
+		.test_idx = 55,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and ZUC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69, 0x00, 0x8b, 0x37,
+				     0x29 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + zuc ****************************/
+
+	{
+		.test_idx = 56,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and ZUC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69, 0xa5, 0xd4, 0xca,
+				     0xc5 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + null ************************/
+
+	{
+		.test_idx = 57,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x78, 0xee, 0x01,
+				     0x4c, 0x79, 0xc7, 0x14, 0x79, 0x2c, 0x1b,
+				     0x8a, 0xd0, 0x17, 0xb4, 0xb4, 0xfe, 0xa7,
+				     0x17, 0x9a, 0x93, 0x5d, 0xad, 0x27, 0x8a,
+				     0x56, 0xd7, 0x36, 0xec, 0x8d, 0x74, 0xff,
+				     0x7c, 0x93, 0x4d, 0x89, 0x00, 0x30, 0x40,
+				     0x37, 0xfb, 0x98, 0x1b, 0x06, 0x1a, 0x76,
+				     0xf8, 0x07, 0x72, 0xe9, 0xa2, 0x89, 0x47,
+				     0x95, 0x8f, 0x8f, 0x4e, 0x45, 0x55, 0xd6,
+				     0x0e, 0xf4, 0xe7, 0xe8, 0x08, 0xe3, 0xc8,
+				     0x55 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** aes-ctr + null *************************/
+
+	{
+		.test_idx = 58,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xbf, 0x21, 0xc9,
+				     0x7d, 0x02, 0x8d, 0xf7, 0xf7, 0x80, 0x50,
+				     0x60, 0x32, 0x09, 0xb8, 0x69, 0x48, 0xab,
+				     0x58, 0xf0, 0xd9, 0x63, 0x63, 0x36, 0x01,
+				     0x3f, 0x95, 0xc3, 0xfa, 0xe1, 0xc7, 0x95,
+				     0x1f, 0x66, 0x1a, 0xd6, 0x8e, 0xec, 0x0e,
+				     0x4c, 0x00, 0xd0, 0x0e, 0x31, 0x1c, 0x87,
+				     0xee, 0x1c, 0xc3, 0x81, 0xb4, 0xb6, 0x09,
+				     0xb5, 0x3c, 0x85, 0xb9, 0xcc, 0x2d, 0x2e,
+				     0x9c, 0x85, 0x0b, 0xf7, 0xe4, 0x09, 0xd3,
+				     0xf7 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + aes-cmac *********************/
+
+	{
+		.test_idx = 59,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x78, 0xee, 0x01,
+				     0x4c, 0x79, 0xc7, 0x14, 0x79, 0x2c, 0x1b,
+				     0x8a, 0xd0, 0x17, 0xb4, 0xb4, 0xfe, 0xa7,
+				     0x17, 0x9a, 0x93, 0x5d, 0xad, 0x27, 0x8a,
+				     0x56, 0xd7, 0x36, 0xec, 0x8d, 0x74, 0xff,
+				     0x7c, 0x93, 0x4d, 0x89, 0x00, 0x30, 0x40,
+				     0x37, 0xfb, 0x98, 0x1b, 0x06, 0x1a, 0x76,
+				     0xf8, 0x07, 0x72, 0xe9, 0xa2, 0x89, 0x47,
+				     0x95, 0x8f, 0x8f, 0x4e, 0x45, 0x55, 0xd6,
+				     0x0e, 0xf4, 0xe7, 0xe8, 0x78, 0xdd, 0xc1,
+				     0x92 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** aes-ctr + aes-cmac *********************/
+
+	{
+		.test_idx = 60,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xbf, 0x21, 0xc9,
+				     0x7d, 0x02, 0x8d, 0xf7, 0xf7, 0x80, 0x50,
+				     0x60, 0x32, 0x09, 0xb8, 0x69, 0x48, 0xab,
+				     0x58, 0xf0, 0xd9, 0x63, 0x63, 0x36, 0x01,
+				     0x3f, 0x95, 0xc3, 0xfa, 0xe1, 0xc7, 0x95,
+				     0x1f, 0x66, 0x1a, 0xd6, 0x8e, 0xec, 0x0e,
+				     0x4c, 0x00, 0xd0, 0x0e, 0x31, 0x1c, 0x87,
+				     0xee, 0x1c, 0xc3, 0x81, 0xb4, 0xb6, 0x09,
+				     0xb5, 0x3c, 0x85, 0xb9, 0xcc, 0x2d, 0x2e,
+				     0x9c, 0x85, 0x0b, 0xf7, 0xb1, 0x80, 0x30,
+				     0xa5 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + snow ************************/
+
+	{
+		.test_idx = 61,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and SNOW-f9_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x78, 0xee, 0x01,
+				     0x4c, 0x79, 0xc7, 0x14, 0x79, 0x2c, 0x1b,
+				     0x8a, 0xd0, 0x17, 0xb4, 0xb4, 0xfe, 0xa7,
+				     0x17, 0x9a, 0x93, 0x5d, 0xad, 0x27, 0x8a,
+				     0x56, 0xd7, 0x36, 0xec, 0x8d, 0x74, 0xff,
+				     0x7c, 0x93, 0x4d, 0x89, 0x00, 0x30, 0x40,
+				     0x37, 0xfb, 0x98, 0x1b, 0x06, 0x1a, 0x76,
+				     0xf8, 0x07, 0x72, 0xe9, 0xa2, 0x89, 0x47,
+				     0x95, 0x8f, 0x8f, 0x4e, 0x45, 0x55, 0xd6,
+				     0x0e, 0xf4, 0xe7, 0xe8, 0x08, 0xa6, 0xdb,
+				     0x19 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** aes-ctr + snow ************************/
+
+	{
+		.test_idx = 62,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and SNOW-f9_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xbf, 0x21, 0xc9,
+				     0x7d, 0x02, 0x8d, 0xf7, 0xf7, 0x80, 0x50,
+				     0x60, 0x32, 0x09, 0xb8, 0x69, 0x48, 0xab,
+				     0x58, 0xf0, 0xd9, 0x63, 0x63, 0x36, 0x01,
+				     0x3f, 0x95, 0xc3, 0xfa, 0xe1, 0xc7, 0x95,
+				     0x1f, 0x66, 0x1a, 0xd6, 0x8e, 0xec, 0x0e,
+				     0x4c, 0x00, 0xd0, 0x0e, 0x31, 0x1c, 0x87,
+				     0xee, 0x1c, 0xc3, 0x81, 0xb4, 0xb6, 0x09,
+				     0xb5, 0x3c, 0x85, 0xb9, 0xcc, 0x2d, 0x2e,
+				     0x9c, 0x85, 0x0b, 0xf7, 0x97, 0x5a, 0x56,
+				     0xab },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + zuc **************************/
+
+	{
+		.test_idx = 63,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and ZUC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x78, 0xee, 0x01,
+				     0x4c, 0x79, 0xc7, 0x14, 0x79, 0x2c, 0x1b,
+				     0x8a, 0xd0, 0x17, 0xb4, 0xb4, 0xfe, 0xa7,
+				     0x17, 0x9a, 0x93, 0x5d, 0xad, 0x27, 0x8a,
+				     0x56, 0xd7, 0x36, 0xec, 0x8d, 0x74, 0xff,
+				     0x7c, 0x93, 0x4d, 0x89, 0x00, 0x30, 0x40,
+				     0x37, 0xfb, 0x98, 0x1b, 0x06, 0x1a, 0x76,
+				     0xf8, 0x07, 0x72, 0xe9, 0xa2, 0x89, 0x47,
+				     0x95, 0x8f, 0x8f, 0x4e, 0x45, 0x55, 0xd6,
+				     0x0e, 0xf4, 0xe7, 0xe8, 0x08, 0x68, 0xff,
+				     0x7c },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** aes-ctr + zuc **************************/
+
+	{
+		.test_idx = 64,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and ZUC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xbf, 0x21, 0xc9,
+				     0x7d, 0x02, 0x8d, 0xf7, 0xf7, 0x80, 0x50,
+				     0x60, 0x32, 0x09, 0xb8, 0x69, 0x48, 0xab,
+				     0x58, 0xf0, 0xd9, 0x63, 0x63, 0x36, 0x01,
+				     0x3f, 0x95, 0xc3, 0xfa, 0xe1, 0xc7, 0x95,
+				     0x1f, 0x66, 0x1a, 0xd6, 0x8e, 0xec, 0x0e,
+				     0x4c, 0x00, 0xd0, 0x0e, 0x31, 0x1c, 0x87,
+				     0xee, 0x1c, 0xc3, 0x81, 0xb4, 0xb6, 0x09,
+				     0xb5, 0x3c, 0x85, 0xb9, 0xcc, 0x2d, 0x2e,
+				     0x9c, 0x85, 0x0b, 0xf7, 0x41, 0xdd, 0x19,
+				     0x32 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 65,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, SNOW-f8_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x0c, 0xa8, 0x9d,
+				     0x9e, 0xcc, 0xf0, 0x1a, 0xc0, 0xf2, 0x9f,
+				     0x8c, 0xc9, 0x57, 0xc7, 0x99, 0x4d, 0xde,
+				     0xc5, 0x19, 0x69, 0x58, 0x5b, 0x1a, 0x51,
+				     0x40, 0xa8, 0xc4, 0x93, 0x4b, 0x47, 0xb8,
+				     0xc4, 0x2a, 0x19, 0x07, 0x80, 0x45, 0xbb,
+				     0xb3, 0x24, 0x88, 0x68, 0x5f, 0x78, 0x3a,
+				     0xd2, 0x6c, 0xcc, 0xa0, 0xb5, 0xf0, 0x95,
+				     0x3e, 0xf1, 0xf4, 0x3e, 0x43, 0x8f, 0x6c,
+				     0xae, 0x22, 0x59, 0x11, 0x86, 0xa9, 0x02,
+				     0xbc },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 66,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, SNOW-f8_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x5a, 0xa9, 0xb5,
+				     0x61, 0x8b, 0x8a, 0xb7, 0x6a, 0x98, 0x30,
+				     0x6c, 0xed, 0x84, 0x69, 0xff, 0x6b, 0x7e,
+				     0x30, 0x59, 0x55, 0x80, 0x32, 0xd0, 0x0f,
+				     0x73, 0x43, 0x7c, 0xc3, 0x2e, 0xf4, 0xc3,
+				     0x3a, 0x60, 0xe3, 0x7c, 0xf0, 0x31, 0xa2,
+				     0x0e, 0x2e, 0x33, 0xe6, 0xa4, 0xea, 0x17,
+				     0xd6, 0x56, 0xa2, 0x3b, 0x5f, 0x56, 0x3a,
+				     0xa7, 0x6f, 0x4c, 0xc1, 0xca, 0xbd, 0x5f,
+				     0xad, 0x3d, 0x99, 0x4a, 0xf6, 0x22, 0x36,
+				     0x2e },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + aes-cmac ************************/
+
+	{
+		.test_idx = 67,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, SNOW-f8_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x0c, 0xa8, 0x9d,
+				     0x9e, 0xcc, 0xf0, 0x1a, 0xc0, 0xf2, 0x9f,
+				     0x8c, 0xc9, 0x57, 0xc7, 0x99, 0x4d, 0xde,
+				     0xc5, 0x19, 0x69, 0x58, 0x5b, 0x1a, 0x51,
+				     0x40, 0xa8, 0xc4, 0x93, 0x4b, 0x47, 0xb8,
+				     0xc4, 0x2a, 0x19, 0x07, 0x80, 0x45, 0xbb,
+				     0xb3, 0x24, 0x88, 0x68, 0x5f, 0x78, 0x3a,
+				     0xd2, 0x6c, 0xcc, 0xa0, 0xb5, 0xf0, 0x95,
+				     0x3e, 0xf1, 0xf4, 0x3e, 0x43, 0x8f, 0x6c,
+				     0xae, 0x22, 0x59, 0x11, 0xf6, 0x97, 0x0b,
+				     0x7b },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + aes-cmac ************************/
+
+	{
+		.test_idx = 68,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, SNOW-f8_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.17.1

Part of the diff is not shown here. View the raw message.

#8 lore raw

PATCH 6/7 test/crypto: Modify test_pdcp_proto to take parameters

In reply to [email protected]

From: Franck LENORMAND <[email protected]>

The function test_pdcp_proto was relying to heavily on the structure of test vectors for PDCP making it difficult to be reusable.

The function is changed to take all the test parameters as input and does not need access to the tests vectors anymore.

---
 app/test/test_cryptodev.c | 183 ++++++++++++++++++++++----------------
 1 file changed, 104 insertions(+), 79 deletions(-)
app/test/test_cryptodev.c +104 -79
index 70bf6fe2c..d6bc07696 100644
@@ -7121,14 +7121,18 @@ security_proto_supported(enum rte_security_session_action_type action,
  * on input_vec. Checks the output of the crypto operation against
  * output_vec.
  */
-static int
-test_pdcp_proto(int i, int oop,
-	enum rte_crypto_cipher_operation opc,
-	enum rte_crypto_auth_operation opa,
-	uint8_t *input_vec,
-	unsigned int input_vec_len,
-	uint8_t *output_vec,
-	unsigned int output_vec_len)
+static int test_pdcp_proto(int i, int oop, enum rte_crypto_cipher_operation opc,
+			   enum rte_crypto_auth_operation opa,
+			   const uint8_t *input_vec, unsigned int input_vec_len,
+			   const uint8_t *output_vec,
+			   unsigned int output_vec_len,
+			   enum rte_crypto_cipher_algorithm cipher_alg,
+			   const uint8_t *cipher_key, uint32_t cipher_key_len,
+			   enum rte_crypto_auth_algorithm auth_alg,
+			   const uint8_t *auth_key, uint32_t auth_key_len,
+			   uint8_t bearer, enum rte_security_pdcp_domain domain,
+			   uint8_t packet_direction, uint8_t sn_size,
+			   uint32_t hfn, uint32_t hfn_threshold, uint8_t sdap)
 {
 	struct crypto_testsuite_params *ts_params = &testsuite_params;
 	struct crypto_unittest_params *ut_params = &unittest_params;
@@ -7143,7 +7147,7 @@ test_pdcp_proto(int i, int oop,
 
 	sec_cap_idx.action = ut_params->type;
 	sec_cap_idx.protocol = RTE_SECURITY_PROTOCOL_PDCP;
-	sec_cap_idx.pdcp.domain = pdcp_test_params[i].domain;
+	sec_cap_idx.pdcp.domain = domain;
 	if (rte_security_capability_get(ctx, &sec_cap_idx) == NULL)
 		return -ENOTSUP;
 
@@ -7169,24 +7173,22 @@ test_pdcp_proto(int i, int oop,
 
 	/* Setup Cipher Parameters */
 	ut_params->cipher_xform.type = RTE_CRYPTO_SYM_XFORM_CIPHER;
-	ut_params->cipher_xform.cipher.algo = pdcp_test_params[i].cipher_alg;
+	ut_params->cipher_xform.cipher.algo = cipher_alg;
 	ut_params->cipher_xform.cipher.op = opc;
-	ut_params->cipher_xform.cipher.key.data = pdcp_test_crypto_key[i];
-	ut_params->cipher_xform.cipher.key.length =
-					pdcp_test_params[i].cipher_key_len;
+	ut_params->cipher_xform.cipher.key.data = cipher_key;
+	ut_params->cipher_xform.cipher.key.length = cipher_key_len;
 	ut_params->cipher_xform.cipher.iv.length =
-				pdcp_test_packet_direction[i] ? 4 : 0;
+				packet_direction ? 4 : 0;
 	ut_params->cipher_xform.cipher.iv.offset = IV_OFFSET;
 
 	/* Setup HMAC Parameters if ICV header is required */
-	if (pdcp_test_params[i].auth_alg != 0) {
+	if (auth_alg != 0) {
 		ut_params->auth_xform.type = RTE_CRYPTO_SYM_XFORM_AUTH;
 		ut_params->auth_xform.next = NULL;
-		ut_params->auth_xform.auth.algo = pdcp_test_params[i].auth_alg;
+		ut_params->auth_xform.auth.algo = auth_alg;
 		ut_params->auth_xform.auth.op = opa;
-		ut_params->auth_xform.auth.key.data = pdcp_test_auth_key[i];
-		ut_params->auth_xform.auth.key.length =
-					pdcp_test_params[i].auth_key_len;
+		ut_params->auth_xform.auth.key.data = auth_key;
+		ut_params->auth_xform.auth.key.length = auth_key_len;
 
 		ut_params->cipher_xform.next = &ut_params->auth_xform;
 	} else {
@@ -7197,22 +7199,22 @@ test_pdcp_proto(int i, int oop,
 		.action_type = ut_params->type,
 		.protocol = RTE_SECURITY_PROTOCOL_PDCP,
 		{.pdcp = {
-			.bearer = pdcp_test_bearer[i],
-			.domain = pdcp_test_params[i].domain,
-			.pkt_dir = pdcp_test_packet_direction[i],
-			.sn_size = pdcp_test_data_sn_size[i],
-			.hfn = pdcp_test_packet_direction[i] ?
-				0 : pdcp_test_hfn[i],
-				/**
-				 * hfn can be set as pdcp_test_hfn[i]
-				 * if hfn_ovrd is not set. Here, PDCP
-				 * packet direction is just used to
-				 * run half of the cases with session
-				 * HFN and other half with per packet
-				 * HFN.
-				 */
-			.hfn_threshold = pdcp_test_hfn_threshold[i],
-			.hfn_ovrd = pdcp_test_packet_direction[i] ? 1 : 0,
+			.bearer = bearer,
+			.domain = domain,
+			.pkt_dir = packet_direction,
+			.sn_size = sn_size,
+			.hfn = packet_direction ? 0 : hfn,
+			/**
+			 * hfn can be set as pdcp_test_hfn[i]
+			 * if hfn_ovrd is not set. Here, PDCP
+			 * packet direction is just used to
+			 * run half of the cases with session
+			 * HFN and other half with per packet
+			 * HFN.
+			 */
+			.hfn_threshold = hfn_threshold,
+			.hfn_ovrd = packet_direction ? 1 : 0,
+			.sdap_enabled = sdap,
 		} },
 		.crypto_xform = &ut_params->cipher_xform
 	};
@@ -7241,7 +7243,7 @@ test_pdcp_proto(int i, int oop,
 
 	uint32_t *per_pkt_hfn = rte_crypto_op_ctod_offset(ut_params->op,
 					uint32_t *, IV_OFFSET);
-	*per_pkt_hfn = pdcp_test_packet_direction[i] ? pdcp_test_hfn[i] : 0;
+	*per_pkt_hfn = packet_direction ? hfn : 0;
 
 	rte_security_attach_session(ut_params->op, ut_params->sec_session);
 
@@ -7582,74 +7584,97 @@ test_pdcp_proto_SGL(int i, int oop,
 int
 test_pdcp_proto_cplane_encap(int i)
 {
-	return test_pdcp_proto(i, 0,
-		RTE_CRYPTO_CIPHER_OP_ENCRYPT,
-		RTE_CRYPTO_AUTH_OP_GENERATE,
-		pdcp_test_data_in[i],
-		pdcp_test_data_in_len[i],
-		pdcp_test_data_out[i],
-		pdcp_test_data_in_len[i]+4);
+	return test_pdcp_proto(
+		i, 0, RTE_CRYPTO_CIPHER_OP_ENCRYPT, RTE_CRYPTO_AUTH_OP_GENERATE,
+		pdcp_test_data_in[i], pdcp_test_data_in_len[i],
+		pdcp_test_data_out[i], pdcp_test_data_in_len[i] + 4,
+		pdcp_test_params[i].cipher_alg, pdcp_test_crypto_key[i],
+		pdcp_test_params[i].cipher_key_len,
+		pdcp_test_params[i].auth_alg, pdcp_test_auth_key[i],
+		pdcp_test_params[i].auth_key_len, pdcp_test_bearer[i],
+		pdcp_test_params[i].domain, pdcp_test_packet_direction[i],
+		pdcp_test_data_sn_size[i], pdcp_test_hfn[i],
+		pdcp_test_hfn_threshold[i], SDAP_DISABLED);
 }
 
 int
 test_pdcp_proto_uplane_encap(int i)
 {
-	return test_pdcp_proto(i, 0,
-		RTE_CRYPTO_CIPHER_OP_ENCRYPT,
-		RTE_CRYPTO_AUTH_OP_GENERATE,
-		pdcp_test_data_in[i],
-		pdcp_test_data_in_len[i],
-		pdcp_test_data_out[i],
-		pdcp_test_data_in_len[i]);
-
+	return test_pdcp_proto(
+		i, 0, RTE_CRYPTO_CIPHER_OP_ENCRYPT, RTE_CRYPTO_AUTH_OP_GENERATE,
+		pdcp_test_data_in[i], pdcp_test_data_in_len[i],
+		pdcp_test_data_out[i], pdcp_test_data_in_len[i],
+		pdcp_test_params[i].cipher_alg, pdcp_test_crypto_key[i],
+		pdcp_test_params[i].cipher_key_len,
+		pdcp_test_params[i].auth_alg, pdcp_test_auth_key[i],
+		pdcp_test_params[i].auth_key_len, pdcp_test_bearer[i],
+		pdcp_test_params[i].domain, pdcp_test_packet_direction[i],
+		pdcp_test_data_sn_size[i], pdcp_test_hfn[i],
+		pdcp_test_hfn_threshold[i], SDAP_DISABLED);
 }
 
 int
 test_pdcp_proto_uplane_encap_with_int(int i)
 {
-	return test_pdcp_proto(i, 0,
-		RTE_CRYPTO_CIPHER_OP_ENCRYPT,
-		RTE_CRYPTO_AUTH_OP_GENERATE,
-		pdcp_test_data_in[i],
-		pdcp_test_data_in_len[i],
-		pdcp_test_data_out[i],
-		pdcp_test_data_in_len[i] + 4);
+	return test_pdcp_proto(
+		i, 0, RTE_CRYPTO_CIPHER_OP_ENCRYPT, RTE_CRYPTO_AUTH_OP_GENERATE,
+		pdcp_test_data_in[i], pdcp_test_data_in_len[i],
+		pdcp_test_data_out[i], pdcp_test_data_in_len[i] + 4,
+		pdcp_test_params[i].cipher_alg, pdcp_test_crypto_key[i],
+		pdcp_test_params[i].cipher_key_len,
+		pdcp_test_params[i].auth_alg, pdcp_test_auth_key[i],
+		pdcp_test_params[i].auth_key_len, pdcp_test_bearer[i],
+		pdcp_test_params[i].domain, pdcp_test_packet_direction[i],
+		pdcp_test_data_sn_size[i], pdcp_test_hfn[i],
+		pdcp_test_hfn_threshold[i], SDAP_DISABLED);
 }
 
 int
 test_pdcp_proto_cplane_decap(int i)
 {
-	return test_pdcp_proto(i, 0,
-		RTE_CRYPTO_CIPHER_OP_DECRYPT,
-		RTE_CRYPTO_AUTH_OP_VERIFY,
-		pdcp_test_data_out[i],
-		pdcp_test_data_in_len[i] + 4,
-		pdcp_test_data_in[i],
-		pdcp_test_data_in_len[i]);
+	return test_pdcp_proto(
+		i, 0, RTE_CRYPTO_CIPHER_OP_DECRYPT, RTE_CRYPTO_AUTH_OP_VERIFY,
+		pdcp_test_data_out[i], pdcp_test_data_in_len[i] + 4,
+		pdcp_test_data_in[i], pdcp_test_data_in_len[i],
+		pdcp_test_params[i].cipher_alg, pdcp_test_crypto_key[i],
+		pdcp_test_params[i].cipher_key_len,
+		pdcp_test_params[i].auth_alg, pdcp_test_auth_key[i],
+		pdcp_test_params[i].auth_key_len, pdcp_test_bearer[i],
+		pdcp_test_params[i].domain, pdcp_test_packet_direction[i],
+		pdcp_test_data_sn_size[i], pdcp_test_hfn[i],
+		pdcp_test_hfn_threshold[i], SDAP_DISABLED);
 }
 
 int
 test_pdcp_proto_uplane_decap(int i)
 {
-	return test_pdcp_proto(i, 0,
-		RTE_CRYPTO_CIPHER_OP_DECRYPT,
-		RTE_CRYPTO_AUTH_OP_VERIFY,
-		pdcp_test_data_out[i],
-		pdcp_test_data_in_len[i],
-		pdcp_test_data_in[i],
-		pdcp_test_data_in_len[i]);
+	return test_pdcp_proto(
+		i, 0, RTE_CRYPTO_CIPHER_OP_DECRYPT, RTE_CRYPTO_AUTH_OP_VERIFY,
+		pdcp_test_data_out[i], pdcp_test_data_in_len[i],
+		pdcp_test_data_in[i], pdcp_test_data_in_len[i],
+		pdcp_test_params[i].cipher_alg, pdcp_test_crypto_key[i],
+		pdcp_test_params[i].cipher_key_len,
+		pdcp_test_params[i].auth_alg, pdcp_test_auth_key[i],
+		pdcp_test_params[i].auth_key_len, pdcp_test_bearer[i],
+		pdcp_test_params[i].domain, pdcp_test_packet_direction[i],
+		pdcp_test_data_sn_size[i], pdcp_test_hfn[i],
+		pdcp_test_hfn_threshold[i], SDAP_DISABLED);
 }
 
 int
 test_pdcp_proto_uplane_decap_with_int(int i)
 {
-	return test_pdcp_proto(i, 0,
-		RTE_CRYPTO_CIPHER_OP_DECRYPT,
-		RTE_CRYPTO_AUTH_OP_VERIFY,
-		pdcp_test_data_out[i],
-		pdcp_test_data_in_len[i] + 4,
-		pdcp_test_data_in[i],
-		pdcp_test_data_in_len[i]);
+	return test_pdcp_proto(
+		i, 0, RTE_CRYPTO_CIPHER_OP_DECRYPT, RTE_CRYPTO_AUTH_OP_VERIFY,
+		pdcp_test_data_out[i], pdcp_test_data_in_len[i] + 4,
+		pdcp_test_data_in[i], pdcp_test_data_in_len[i],
+		pdcp_test_params[i].cipher_alg, pdcp_test_crypto_key[i],
+		pdcp_test_params[i].cipher_key_len,
+		pdcp_test_params[i].auth_alg, pdcp_test_auth_key[i],
+		pdcp_test_params[i].auth_key_len, pdcp_test_bearer[i],
+		pdcp_test_params[i].domain, pdcp_test_packet_direction[i],
+		pdcp_test_data_sn_size[i], pdcp_test_hfn[i],
+		pdcp_test_hfn_threshold[i], SDAP_DISABLED);
 }
 
 static int
Signature · 1 line
2.17.1
#9 lore raw

PATCH 7/7 test/crypto: Add PDCP-SDAP cases

In reply to [email protected]

From: Franck LENORMAND <[email protected]>

A new functions which uses the structure of the test vectors for SDAP is added and call a functions responsible to call the test_pdcp_proto with the test vector both for encapsulation and decapsulation.

---
 app/test/test_cryptodev.c | 95 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 95 insertions(+)
app/test/test_cryptodev.c +95 -0
index d6bc07696..5a0b0b1aa 100644
@@ -1,5 +1,6 @@
 /* SPDX-License-Identifier: BSD-3-Clause
  * Copyright(c) 2015-2020 Intel Corporation
+ * Copyright 2020 NXP
  */
 
 #include <time.h>
@@ -42,8 +43,12 @@
 #include "test_cryptodev_mixed_test_vectors.h"
 #ifdef RTE_LIBRTE_SECURITY
 #include "test_cryptodev_security_pdcp_test_vectors.h"
+#include "test_cryptodev_security_pdcp_sdap_test_vectors.h"
 #include "test_cryptodev_security_pdcp_test_func.h"
 #include "test_cryptodev_security_docsis_test_vectors.h"
+
+#define SDAP_DISABLED	0
+#define SDAP_ENABLED	1
 #endif
 
 #define VDEV_ARGS_SIZE 100
@@ -52,6 +57,10 @@
 #define IN_PLACE 0
 #define OUT_OF_PLACE 1
 
+#ifndef ARRAY_SIZE
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+#endif
+
 static int gbl_driver_id;
 
 static enum rte_security_session_action_type gbl_action_type =
@@ -7743,6 +7752,90 @@ test_PDCP_PROTO_SGL_oop_128B_32B(void)
 			128, 32);
 }
 
+static int
+test_PDCP_SDAP_PROTO_encap_all(void)
+{
+	int i = 0, size = 0;
+	int err, all_err = TEST_SUCCESS;
+	const struct pdcp_sdap_test *cur_test;
+
+	size = ARRAY_SIZE(list_pdcp_sdap_tests);
+
+	for (i = 0; i < size; i++) {
+		cur_test = &list_pdcp_sdap_tests[i];
+		err = test_pdcp_proto(
+			i, 0, RTE_CRYPTO_CIPHER_OP_ENCRYPT,
+			RTE_CRYPTO_AUTH_OP_GENERATE, cur_test->data_in,
+			cur_test->in_len, cur_test->data_out,
+			cur_test->in_len + ((cur_test->auth_key) ? 4 : 0),
+			cur_test->param.cipher_alg, cur_test->cipher_key,
+			cur_test->param.cipher_key_len,
+			cur_test->param.auth_alg,
+			cur_test->auth_key, cur_test->param.auth_key_len,
+			cur_test->bearer, cur_test->param.domain,
+			cur_test->packet_direction, cur_test->sn_size,
+			cur_test->hfn,
+			cur_test->hfn_threshold, SDAP_ENABLED);
+		if (err) {
+			printf("\t%d) %s: Encapsulation failed\n",
+					cur_test->test_idx,
+					cur_test->param.name);
+			err = TEST_FAILED;
+		} else {
+			printf("\t%d) %s: Encap PASS\n", cur_test->test_idx,
+					cur_test->param.name);
+			err = TEST_SUCCESS;
+		}
+		all_err += err;
+	}
+
+	printf("Success: %d, Failure: %d\n", size + all_err, -all_err);
+
+	return (all_err == TEST_SUCCESS) ? TEST_SUCCESS : TEST_FAILED;
+}
+
+static int
+test_PDCP_SDAP_PROTO_decap_all(void)
+{
+	int i = 0, size = 0;
+	int err, all_err = TEST_SUCCESS;
+	const struct pdcp_sdap_test *cur_test;
+
+	size = ARRAY_SIZE(list_pdcp_sdap_tests);
+
+	for (i = 0; i < size; i++) {
+		cur_test = &list_pdcp_sdap_tests[i];
+		err = test_pdcp_proto(
+			i, 0, RTE_CRYPTO_CIPHER_OP_DECRYPT,
+			RTE_CRYPTO_AUTH_OP_VERIFY,
+			cur_test->data_out,
+			cur_test->in_len + ((cur_test->auth_key) ? 4 : 0),
+			cur_test->data_in, cur_test->in_len,
+			cur_test->param.cipher_alg,
+			cur_test->cipher_key, cur_test->param.cipher_key_len,
+			cur_test->param.auth_alg, cur_test->auth_key,
+			cur_test->param.auth_key_len, cur_test->bearer,
+			cur_test->param.domain, cur_test->packet_direction,
+			cur_test->sn_size, cur_test->hfn,
+			cur_test->hfn_threshold, SDAP_ENABLED);
+		if (err) {
+			printf("\t%d) %s: Decapsulation failed\n",
+					cur_test->test_idx,
+					cur_test->param.name);
+			err = TEST_FAILED;
+		} else {
+			printf("\t%d) %s: Decap PASS\n", cur_test->test_idx,
+					cur_test->param.name);
+			err = TEST_SUCCESS;
+		}
+		all_err += err;
+	}
+
+	printf("Success: %d, Failure: %d\n", size + all_err, -all_err);
+
+	return (all_err == TEST_SUCCESS) ? TEST_SUCCESS : TEST_FAILED;
+}
+
 static int
 test_PDCP_PROTO_all(void)
 {
@@ -7774,6 +7867,8 @@ test_PDCP_PROTO_all(void)
 	status += test_PDCP_PROTO_SGL_oop_32B_128B();
 	status += test_PDCP_PROTO_SGL_oop_32B_40B();
 	status += test_PDCP_PROTO_SGL_oop_128B_32B();
+	status += test_PDCP_SDAP_PROTO_encap_all();
+	status += test_PDCP_SDAP_PROTO_decap_all();
 
 	if (status)
 		return TEST_FAILED;
Signature · 1 line
2.17.1
#10 lore raw

v2 cover support PDCP-SDAP for dpaa2_sec

In reply to [email protected]

The SDAP is a protocol in the LTE stack on top of PDCP. It is dedicated to QoS.

The difficulty of implementing this protocol is because the PDCP change behavior regarding encryption and authentication of the SDU it receives. In effect PDCP shall not encrypt the SDAP SDU but must authenticate it (when encryption and authentication is enabled).

A new field is added in the PDCP xform to specify SDAP is enabled. The overall size of the xform is not changed, as hfn_ovrd is just a flag and does not need uint32. Hence, it is converted to uint8_t and a 16 bit reserved field is added for future.

The corresponding test cases and test vectors are added in the test application.

This patch need Techboard approval as there is a change in API without a deprecation notice from last release.
This patch is required to support the upcoming development of 5GNR protocol - SDAP in near future. If the patch is not approved in the current release, we may not be able to support SDAP for next 1 year which is not accceptable for the customers.

Changes in v2:
- removed unnecessary API documentation from security guide.
- fix clang build
- updated release notes

Akhil Goyal (4):
security: modify PDCP xform to support SDAP
doc: remove unnecessary API code from security guide crypto/dpaa2_sec: enable PDCP-SDAP sessions crypto/dpaa_sec: enable PDCP-SDAP sessions

Franck LENORMAND (4):
common/dpaax/caamflib: Support PDCP-SDAP test/crypto: Add test vectors for PDCP-SDAP test/crypto: Modify test_pdcp_proto to take parameters test/crypto: Add PDCP-SDAP cases

 app/test/test_cryptodev.c                     |  278 +-
 ...ryptodev_security_pdcp_sdap_test_vectors.h | 3619 +++++++++++++++++
 doc/guides/prog_guide/rte_security.rst        |   55 +-
 doc/guides/rel_notes/release_20_11.rst        |    9 +
 drivers/common/dpaax/caamflib/desc/pdcp.h     |    8 +
 drivers/common/dpaax/caamflib/desc/sdap.h     | 1063 +++++
 drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c   |   30 +-
 drivers/crypto/dpaa_sec/dpaa_sec.c            |   63 +-
 drivers/crypto/dpaa_sec/dpaa_sec.h            |    3 +-
 lib/librte_security/rte_security.h            |   12 +-
 10 files changed, 4982 insertions(+), 158 deletions(-)
 create mode 100644 app/test/test_cryptodev_security_pdcp_sdap_test_vectors.h
 create mode 100644 drivers/common/dpaax/caamflib/desc/sdap.h
Signature · 1 line
2.17.1
#11 lore raw

PATCH v2 1/8 common/dpaax/caamflib: Support PDCP-SDAP

From: Franck LENORMAND <[email protected]>

The SDAP is a protocol in the LTE stack on top of PDCP. It is dedicated to QoS.

The difficulty of implementing this protocol is because the PDCP change behavior regarding encryption and authentication of the SDU it receives. In effect PDCP shall not encrypt the SDAP SDU but must authenticate it (when encryption and authentication is enabled).

The current version of SEC does not support the SDAP and the change of behavior of PDCP prevent the use of the PDCP protocol command available.

The way to do it is to reuse the PDCP implementation but to not use the PDCP protocol and to have descriptors which performs the PDCP protocol.

It is configured by:

It is implemented done doing small changes of code:

        #ifdef SDAP_SUPPORT
                length += SDAP_BYTE_SIZE;
                offset -= SDAP_BYTE_SIZE;
        #endif
after having computed the size of the SN to read from the
input data, then
        #ifdef SDAP_SUPPORT
                MATHI(p, MATH0, LSHIFT, 8, MATH1, 8, 0);
                MATHB(p, MATH1, AND, sn_mask, MATH1, 8, IFB | IMMED2);
        #else
                MATHB(p, MATH0, AND, sn_mask, MATH1, 8, IFB | IMMED2);
        #endif

It will keep the SN and the SDAP header in MATH0, then shift it to remove the SDAP header and store the result in MATH1.

---
 drivers/common/dpaax/caamflib/desc/pdcp.h |    8 +
 drivers/common/dpaax/caamflib/desc/sdap.h | 1063 +++++++++++++++++++++
 2 files changed, 1071 insertions(+)
 create mode 100644 drivers/common/dpaax/caamflib/desc/sdap.h
drivers/common/dpaax/caamflib/desc/pdcp.h +8 -0
index 95d1416c2..f084cf1de 100644
@@ -43,6 +43,14 @@
 #define PDCP_C_PLANE_SN_MASK		0x1F000000
 #define PDCP_C_PLANE_SN_MASK_BE		0x0000001F
 
+/**
+ * PDCP_7BIT_SN_MASK - This mask is used in the PDCP descriptors for
+ *                              extracting the sequence number (SN) from the
+ *                              PDCP User Plane header.
+ */
+#define PDCP_7BIT_SN_MASK		0x7F000000
+#define PDCP_7BIT_SN_MASK_BE		0x0000007F
+
 /**
  * PDCP_12BIT_SN_MASK - This mask is used in the PDCP descriptors for
  *                              extracting the sequence number (SN) from the
drivers/common/dpaax/caamflib/desc/sdap.h new file +1063 -0

1,063 lines not on this page · raw message

Signature · 1 line
2.17.1
#12 lore raw

PATCH v2 2/8 security: modify PDCP xform to support SDAP

In reply to Akhil Goyal

The SDAP is a protocol in the LTE stack on top of PDCP for QOS. A particular PDCP session may or may not have SDAP enabled. But if it is enabled, SDAP header should be authenticated but not encrypted if both confidentiality and integrity is enabled. Hence, the driver should be intimated from the xform so that it skip the SDAP header while encryption.

A new field is added in the PDCP xform to specify SDAP is enabled. The overall size of the xform is not changed, as hfn_ovrd is just a flag and does not need uint32. Hence, it is converted to uint8_t and a 16 bit reserved field is added for future.

---
 doc/guides/rel_notes/release_20_11.rst |  9 +++++++++
 lib/librte_security/rte_security.h     | 12 ++++++++++--
 2 files changed, 19 insertions(+), 2 deletions(-)
doc/guides/rel_notes/release_20_11.rst +9 -0
index c34ab5493..fad91487a 100644
@@ -103,6 +103,11 @@ New Features
   also known as Mount Bryce.  See the
   :doc:`../bbdevs/acc100` BBDEV guide for more details on this new driver.
 
+* **Updated rte_security library to support SDAP.**
+
+  ``rte_security_pdcp_xform`` in ``rte_security`` lib is updated to enable
+  5G NR processing of SDAP header in PMDs.
+
 * **Updated Virtio driver.**
 
   * Added support for Vhost-vDPA backend to Virtio-user PMD.
@@ -307,6 +312,10 @@ API Changes
   ``rte_fpga_lte_fec_configure`` and structure ``fpga_lte_fec_conf`` to
   ``rte_fpga_lte_fec_conf``.
 
+* security: ``hfn_ovrd`` field in ``rte_security_pdcp_xform`` is changed from
+  ``uint32_t`` to ``uint8_t`` so that a new field ``sdap_enabled`` can be added
+  to support SDAP.
+
 
 ABI Changes
 -----------
lib/librte_security/rte_security.h +10 -2
index 16839e539..c259b35e0 100644
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright 2017,2019 NXP
+ * Copyright 2017,2019-2020 NXP
  * Copyright(c) 2017-2020 Intel Corporation.
  */
 
@@ -290,7 +290,15 @@ struct rte_security_pdcp_xform {
 	 * per packet HFN in place of IV. PMDs will extract the HFN
 	 * and perform operations accordingly.
 	 */
-	uint32_t hfn_ovrd;
+	uint8_t hfn_ovrd;
+	/** In case of 5G NR, a new protocol (SDAP) header may be set
+	 * inside PDCP payload which should be authenticated but not
+	 * encrypted. Hence, driver should be notified if SDAP is
+	 * enabled or not, so that SDAP header is not encrypted.
+	 */
+	uint8_t sdap_enabled;
+	/** Reserved for future */
+	uint16_t reserved;
 };
 
 /** DOCSIS direction */
Signature · 1 line
2.17.1
#13 lore raw

PATCH v2 3/8 doc: remove unnecessary API code from security guide

In reply to Akhil Goyal

Various xform structures are being copied in rte_security guide which can be referred from the API documentation generated by Doxygen. The security guide does not talk about specific details of these xforms and thus are removed from the security guide.

---
 doc/guides/prog_guide/rte_security.rst | 55 +-------------------------
 1 file changed, 1 insertion(+), 54 deletions(-)
doc/guides/prog_guide/rte_security.rst +1 -54
index 127da2e4f..41c95aa52 100644
@@ -1,5 +1,5 @@
 ..  SPDX-License-Identifier: BSD-3-Clause
-    Copyright 2017 NXP
+    Copyright 2017,2020 NXP
 
 
 
@@ -647,63 +647,10 @@ which will be updated in the future.
 
 IPsec related configuration parameters are defined in ``rte_security_ipsec_xform``
 
-.. code-block:: c
-
-    struct rte_security_ipsec_xform {
-        uint32_t spi;
-        /**< SA security parameter index */
-        uint32_t salt;
-        /**< SA salt */
-        struct rte_security_ipsec_sa_options options;
-        /**< various SA options */
-        enum rte_security_ipsec_sa_direction direction;
-        /**< IPsec SA Direction - Egress/Ingress */
-        enum rte_security_ipsec_sa_protocol proto;
-        /**< IPsec SA Protocol - AH/ESP */
-        enum rte_security_ipsec_sa_mode mode;
-        /**< IPsec SA Mode - transport/tunnel */
-        struct rte_security_ipsec_tunnel_param tunnel;
-        /**< Tunnel parameters, NULL for transport mode */
-    };
-
 PDCP related configuration parameters are defined in ``rte_security_pdcp_xform``
 
-.. code-block:: c
-
-    struct rte_security_pdcp_xform {
-        int8_t bearer;	/**< PDCP bearer ID */
-        /** Enable in order delivery, this field shall be set only if
-         * driver/HW is capable. See RTE_SECURITY_PDCP_ORDERING_CAP.
-         */
-        uint8_t en_ordering;
-        /** Notify driver/HW to detect and remove duplicate packets.
-         * This field should be set only when driver/hw is capable.
-         * See RTE_SECURITY_PDCP_DUP_DETECT_CAP.
-         */
-        uint8_t remove_duplicates;
-        /** PDCP mode of operation: Control or data */
-        enum rte_security_pdcp_domain domain;
-        /** PDCP Frame Direction 0:UL 1:DL */
-        enum rte_security_pdcp_direction pkt_dir;
-        /** Sequence number size, 5/7/12/15/18 */
-        enum rte_security_pdcp_sn_size sn_size;
-        /** Starting Hyper Frame Number to be used together with the SN
-         * from the PDCP frames
-         */
-        uint32_t hfn;
-        /** HFN Threshold for key renegotiation */
-        uint32_t hfn_threshold;
-    };
-
 DOCSIS related configuration parameters are defined in ``rte_security_docsis_xform``
 
-.. code-block:: c
-
-    struct rte_security_docsis_xform {
-        enum rte_security_docsis_direction direction;
-        /**< DOCSIS direction */
-    };
-
 
 Security API
 ~~~~~~~~~~~~
Signature · 1 line
2.17.1
#14 lore raw

PATCH v2 4/8 crypto/dpaa2_sec: enable PDCP-SDAP sessions

In reply to Akhil Goyal

Based on the new field in PDCP xform, a decision is made to create a PDCP session with or without SDAP enabled.

---
 drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 30 ++++++++++++++++++---
 1 file changed, 26 insertions(+), 4 deletions(-)
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +26 -4
index c11d02420..f8e8750e4 100644
@@ -36,6 +36,7 @@
 /* RTA header files */
 #include <desc/ipsec.h>
 #include <desc/pdcp.h>
+#include <desc/sdap.h>
 #include <desc/algo.h>
 
 /* Minimum job descriptor consists of a oneword job descriptor HEADER and
@@ -3264,8 +3265,9 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev,
 					&cipherdata, &authdata,
 					0);
 	} else {
-		if (session->dir == DIR_ENC)
-			bufsize = cnstr_shdsc_pdcp_u_plane_encap(
+		if (session->dir == DIR_ENC) {
+			if (pdcp_xform->sdap_enabled)
+				bufsize = cnstr_shdsc_pdcp_sdap_u_plane_encap(
 					priv->flc_desc[0].desc, 1, swap,
 					session->pdcp.sn_size,
 					pdcp_xform->hfn,
@@ -3273,8 +3275,18 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev,
 					pdcp_xform->pkt_dir,
 					pdcp_xform->hfn_threshold,
 					&cipherdata, p_authdata, 0);
-		else if (session->dir == DIR_DEC)
-			bufsize = cnstr_shdsc_pdcp_u_plane_decap(
+			else
+				bufsize = cnstr_shdsc_pdcp_u_plane_encap(
+					priv->flc_desc[0].desc, 1, swap,
+					session->pdcp.sn_size,
+					pdcp_xform->hfn,
+					pdcp_xform->bearer,
+					pdcp_xform->pkt_dir,
+					pdcp_xform->hfn_threshold,
+					&cipherdata, p_authdata, 0);
+		} else if (session->dir == DIR_DEC) {
+			if (pdcp_xform->sdap_enabled)
+				bufsize = cnstr_shdsc_pdcp_sdap_u_plane_decap(
 					priv->flc_desc[0].desc, 1, swap,
 					session->pdcp.sn_size,
 					pdcp_xform->hfn,
@@ -3282,6 +3294,16 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev,
 					pdcp_xform->pkt_dir,
 					pdcp_xform->hfn_threshold,
 					&cipherdata, p_authdata, 0);
+			else
+				bufsize = cnstr_shdsc_pdcp_u_plane_decap(
+					priv->flc_desc[0].desc, 1, swap,
+					session->pdcp.sn_size,
+					pdcp_xform->hfn,
+					pdcp_xform->bearer,
+					pdcp_xform->pkt_dir,
+					pdcp_xform->hfn_threshold,
+					&cipherdata, p_authdata, 0);
+		}
 	}
 
 	if (bufsize < 0) {
Signature · 1 line
2.17.1
#15 lore raw

PATCH v2 5/8 crypto/dpaa_sec: enable PDCP-SDAP sessions

In reply to Akhil Goyal

Based on the new field in PDCP xform, a decision is made to create a PDCP session with or without SDAP enabled.

---
 drivers/crypto/dpaa_sec/dpaa_sec.c | 63 +++++++++++++++++++++---------
 drivers/crypto/dpaa_sec/dpaa_sec.h |  3 +-
 2 files changed, 47 insertions(+), 19 deletions(-)
drivers/crypto/dpaa_sec/dpaa_sec.c +45 -18
index 0495422a4..f69cb5719 100644
@@ -36,6 +36,7 @@
 #include <desc/algo.h>
 #include <desc/ipsec.h>
 #include <desc/pdcp.h>
+#include <desc/sdap.h>
 
 #include <rte_dpaa_bus.h>
 #include <dpaa_sec.h>
@@ -293,24 +294,49 @@ dpaa_sec_prep_pdcp_cdb(dpaa_sec_session *ses)
 					&cipherdata, &authdata,
 					0);
 	} else {
-		if (ses->dir == DIR_ENC)
-			shared_desc_len = cnstr_shdsc_pdcp_u_plane_encap(
-					cdb->sh_desc, 1, swap,
-					ses->pdcp.sn_size,
-					ses->pdcp.hfn,
-					ses->pdcp.bearer,
-					ses->pdcp.pkt_dir,
-					ses->pdcp.hfn_threshold,
-					&cipherdata, p_authdata, 0);
-		else if (ses->dir == DIR_DEC)
-			shared_desc_len = cnstr_shdsc_pdcp_u_plane_decap(
-					cdb->sh_desc, 1, swap,
-					ses->pdcp.sn_size,
-					ses->pdcp.hfn,
-					ses->pdcp.bearer,
-					ses->pdcp.pkt_dir,
-					ses->pdcp.hfn_threshold,
-					&cipherdata, p_authdata, 0);
+		if (ses->dir == DIR_ENC) {
+			if (ses->pdcp.sdap_enabled)
+				shared_desc_len =
+					cnstr_shdsc_pdcp_sdap_u_plane_encap(
+						cdb->sh_desc, 1, swap,
+						ses->pdcp.sn_size,
+						ses->pdcp.hfn,
+						ses->pdcp.bearer,
+						ses->pdcp.pkt_dir,
+						ses->pdcp.hfn_threshold,
+						&cipherdata, p_authdata, 0);
+			else
+				shared_desc_len =
+					cnstr_shdsc_pdcp_u_plane_encap(
+						cdb->sh_desc, 1, swap,
+						ses->pdcp.sn_size,
+						ses->pdcp.hfn,
+						ses->pdcp.bearer,
+						ses->pdcp.pkt_dir,
+						ses->pdcp.hfn_threshold,
+						&cipherdata, p_authdata, 0);
+		} else if (ses->dir == DIR_DEC) {
+			if (ses->pdcp.sdap_enabled)
+				shared_desc_len =
+					cnstr_shdsc_pdcp_sdap_u_plane_decap(
+						cdb->sh_desc, 1, swap,
+						ses->pdcp.sn_size,
+						ses->pdcp.hfn,
+						ses->pdcp.bearer,
+						ses->pdcp.pkt_dir,
+						ses->pdcp.hfn_threshold,
+						&cipherdata, p_authdata, 0);
+			else
+				shared_desc_len =
+					cnstr_shdsc_pdcp_u_plane_decap(
+						cdb->sh_desc, 1, swap,
+						ses->pdcp.sn_size,
+						ses->pdcp.hfn,
+						ses->pdcp.bearer,
+						ses->pdcp.pkt_dir,
+						ses->pdcp.hfn_threshold,
+						&cipherdata, p_authdata, 0);
+		}
 	}
 	return shared_desc_len;
 }
@@ -2949,6 +2975,7 @@ dpaa_sec_set_pdcp_session(struct rte_cryptodev *dev,
 	session->pdcp.hfn = pdcp_xform->hfn;
 	session->pdcp.hfn_threshold = pdcp_xform->hfn_threshold;
 	session->pdcp.hfn_ovd = pdcp_xform->hfn_ovrd;
+	session->pdcp.sdap_enabled = pdcp_xform->sdap_enabled;
 	if (cipher_xform)
 		session->pdcp.hfn_ovd_offset = cipher_xform->iv.offset;
 
drivers/crypto/dpaa_sec/dpaa_sec.h +2 -1
index 2cd50cc8d..ddba52982 100644
@@ -109,7 +109,8 @@ struct sec_pdcp_ctxt {
 	int8_t pkt_dir;/*!< PDCP Frame Direction 0:UL 1:DL*/
 	int8_t hfn_ovd;/*!< Overwrite HFN per packet*/
 	uint8_t sn_size;	/*!< Sequence number size, 5/7/12/15/18 */
-	uint32_t hfn_ovd_offset;/*!< offset from rte_crypto_op at which
+	uint8_t sdap_enabled;	/*!< SDAP header is enabled */
+	uint16_t hfn_ovd_offset;/*!< offset from rte_crypto_op at which
 				 * per packet hfn is stored
 				 */
 	uint32_t hfn;	/*!< Hyper Frame Number */
Signature · 1 line
2.17.1
#16 lore raw

PATCH v2 6/8 test/crypto: Add test vectors for PDCP-SDAP

In reply to Akhil Goyal

From: Franck LENORMAND <[email protected]>

The test vectors are structured in a more readable way compared to test vector for PDCP. This structure allows to have all the information about a test vector at the same place.

---
 ...ryptodev_security_pdcp_sdap_test_vectors.h | 3619 +++++++++++++++++
 1 file changed, 3619 insertions(+)
 create mode 100644 app/test/test_cryptodev_security_pdcp_sdap_test_vectors.h
app/test/test_cryptodev_security_pdcp_sdap_test_vectors.h new file +3619 -0
new file mode 100644
index 000000000..f43f693ed
@@ -0,0 +1,3619 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ *
+ * Copyright 2020 NXP
+ */
+
+#ifndef SECURITY_PDCP_SDAP_TEST_VECTOR_H_
+#define SECURITY_PDCP_SDAP_TEST_VECTOR_H_
+
+#include <rte_security.h>
+
+struct pdcp_sdap_test {
+	uint32_t test_idx;
+	struct pdcp_sdap_test_param {
+		uint8_t type;
+		enum rte_security_pdcp_domain domain;
+		enum rte_crypto_cipher_algorithm cipher_alg;
+		uint8_t cipher_key_len;
+		enum rte_crypto_auth_algorithm auth_alg;
+		uint8_t auth_key_len;
+		const char *name;
+	} param;
+	const uint8_t *cipher_key;
+	const uint8_t *auth_key;
+	const uint8_t *data_in;
+	uint32_t in_len;
+	const uint8_t *data_out;
+	uint8_t sn_size;
+	uint32_t hfn;
+	uint32_t hfn_threshold;
+	uint8_t bearer;
+	uint8_t packet_direction;
+};
+
+static const struct pdcp_sdap_test list_pdcp_sdap_tests[] = {
+	/**************************** 7bit ************************************/
+
+	/************************ null + null ****************************/
+
+	{
+		.test_idx = 1,
+		.param = {.name = "PDCP-SDAP Uplane: 7b SN, NULL_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					 0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					 0x42, 0x14, 0x07, 0xe8 },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 2,
+		.param = {.name = "PDCP-SDAP Uplane: 7b SN, NULL_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					 0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					 0x42, 0x14, 0x07, 0xe8 },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/************************ aes-ctr + null ****************************/
+
+	{
+		.test_idx = 3,
+		.param = {.name = "PDCP-SDAP Uplane: 7b SN, AES-CTR_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0x3e, 0x79, 0xa9, 0xc0,
+					 0xec, 0xdd, 0x9e, 0x8f, 0x91, 0x3f,
+					 0xa1, 0x6e, 0x59, 0xed },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/************************ aes-ctr + null ****************************/
+
+	{
+		.test_idx = 4,
+		.param = {.name =
+				"PDCP-SDAP Uplane: 7b SN, AES-CTR_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0x31, 0x55, 0x0b, 0x16,
+					 0xb2, 0xe9, 0x3b, 0x87, 0x36, 0xd9,
+					 0x17, 0xad, 0x90, 0x3f },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 5,
+		.param = {.name = "PDCP-SDAP Uplane: 7b SN, SNOW-f8_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0xb1, 0x17, 0xbe, 0xb1,
+					 0x60, 0xbb, 0xd6, 0x3f, 0x36, 0x96,
+					 0x96, 0xcd, 0x2d, 0xa7 },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 6,
+		.param = {.name =
+				"PDCP-SDAP Uplane: 7b SN, SNOW-f8_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0xd3, 0x89, 0x03, 0x1e,
+					 0x7d, 0x29, 0xfc, 0x77, 0x94, 0x3c,
+					 0x99, 0x72, 0x3c, 0xe8 },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/**************************** zuc + null ****************************/
+
+	{
+		.test_idx = 7,
+		.param = {.name = "PDCP-SDAP Uplane: 7b SN, ZUC_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0xfa, 0xad, 0x58, 0x43,
+					 0x6f, 0xd9, 0x8f, 0xaa, 0x06, 0x3e,
+					 0xdc, 0x52, 0x42, 0x26 },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** zuc + null ****************************/
+
+	{
+		.test_idx = 8,
+		.param = {.name = "PDCP-SDAP Uplane: 7b SN, ZUC_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0xd8, 0x0a, 0x12, 0xe9,
+					 0x7f, 0xab, 0x63, 0x57, 0x99, 0xf2,
+					 0x39, 0x18, 0x32, 0xdc },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/***************************** 12bit **********************************/
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 9,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 10,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/************************ null + aes-cmac ****************************/
+
+	{
+		.test_idx = 11,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd, 0x3f, 0x71, 0x26, 0x2e },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/************************ null + aes-cmac ****************************/
+
+	{
+		.test_idx = 12,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd, 0x92, 0xae, 0xfe, 0xf8 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** null + snow ****************************/
+
+	{
+		.test_idx = 13,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and SNOW-f9_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd, 0x74, 0xb8, 0x27, 0x96 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + snow ****************************/
+
+	{
+		.test_idx = 14,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and SNOW-f9_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd, 0x3d, 0x8b, 0x0d, 0xa8 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** null + zuc ****************************/
+
+	{
+		.test_idx = 15,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and ZUC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd, 0x54, 0xef, 0x25, 0xc3 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + zuc ****************************/
+
+	{
+		.test_idx = 16,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and ZUC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd, 0xf7, 0x16, 0xd4, 0x94 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + null *************************/
+
+	{
+		.test_idx = 17,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x69, 0xf2, 0x5d, 0xd7,
+				     0xf5, 0xc1, 0xf7, 0x1e, 0x47, 0x5d, 0xce,
+				     0xbe, 0x48, 0xb5, 0x0b, 0x6a, 0x73, 0x9a,
+				     0x5a, 0xa3, 0x06, 0x47, 0x40, 0x96, 0xcf,
+				     0x86, 0x98, 0x3d, 0x6f, 0xcf, 0x17, 0x41,
+				     0xa5, 0x13, 0xa5, 0x35, 0x9a, 0xa6, 0x24,
+				     0xc9, 0x7f, 0x11, 0x79, 0x24, 0x44, 0xe8,
+				     0x39, 0x11, 0x03, 0x0a, 0x9d, 0x4f, 0xe2,
+				     0x95, 0x9f, 0x47, 0x73, 0x37, 0x83, 0x8c,
+				     0x23, 0xfa, 0x16, 0x06, 0x86, 0x33, 0x3f },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/************************* aes-ctr + null ****************************/
+
+	{
+		.test_idx = 18,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x22, 0x2a, 0x8f, 0x86,
+				     0x25, 0x92, 0xcd, 0xa9, 0xa1, 0xa0, 0xf5,
+				     0x86, 0x0d, 0xe8, 0xe4, 0xef, 0xe0, 0x78,
+				     0x45, 0x7c, 0x0c, 0x41, 0x5c, 0x8f, 0x07,
+				     0x6f, 0xec, 0x2f, 0x99, 0x8b, 0xfd, 0x9c,
+				     0x4a, 0x6a, 0xe4, 0x5d, 0xd3, 0x3c, 0x40,
+				     0x35, 0xff, 0x7a, 0x42, 0xac, 0x94, 0x21,
+				     0x60, 0x1c, 0x13, 0xcc, 0x7e, 0x6b, 0x2f,
+				     0x6f, 0x91, 0x89, 0xc6, 0xd4, 0xe6, 0x17,
+				     0xae, 0xde, 0xfb, 0x02, 0xcc, 0xa7, 0x33 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/********************* aes-ctr + aes-cmac ****************************/
+
+	{
+		.test_idx = 19,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x69, 0xf2, 0x5d, 0xd7,
+				     0xf5, 0xc1, 0xf7, 0x1e, 0x47, 0x5d, 0xce,
+				     0xbe, 0x48, 0xb5, 0x0b, 0x6a, 0x73, 0x9a,
+				     0x5a, 0xa3, 0x06, 0x47, 0x40, 0x96, 0xcf,
+				     0x86, 0x98, 0x3d, 0x6f, 0xcf, 0x17, 0x41,
+				     0xa5, 0x13, 0xa5, 0x35, 0x9a, 0xa6, 0x24,
+				     0xc9, 0x7f, 0x11, 0x79, 0x24, 0x44, 0xe8,
+				     0x39, 0x11, 0x03, 0x0a, 0x9d, 0x4f, 0xe2,
+				     0x95, 0x9f, 0x47, 0x73, 0x37, 0x83, 0x8c,
+				     0x23, 0xfa, 0x16, 0x39, 0xf7, 0x15, 0x11 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/********************* aes-ctr + aes-cmac ****************************/
+
+	{
+		.test_idx = 20,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x22, 0x2a, 0x8f, 0x86,
+				     0x25, 0x92, 0xcd, 0xa9, 0xa1, 0xa0, 0xf5,
+				     0x86, 0x0d, 0xe8, 0xe4, 0xef, 0xe0, 0x78,
+				     0x45, 0x7c, 0x0c, 0x41, 0x5c, 0x8f, 0x07,
+				     0x6f, 0xec, 0x2f, 0x99, 0x8b, 0xfd, 0x9c,
+				     0x4a, 0x6a, 0xe4, 0x5d, 0xd3, 0x3c, 0x40,
+				     0x35, 0xff, 0x7a, 0x42, 0xac, 0x94, 0x21,
+				     0x60, 0x1c, 0x13, 0xcc, 0x7e, 0x6b, 0x2f,
+				     0x6f, 0x91, 0x89, 0xc6, 0xd4, 0xe6, 0x17,
+				     0xae, 0xde, 0xfb, 0x90, 0x62, 0x59, 0xcb },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/************************* aes-ctr + snow ****************************/
+
+	{
+		.test_idx = 21,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and SNOW-f9_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x69, 0xf2, 0x5d, 0xd7,
+				     0xf5, 0xc1, 0xf7, 0x1e, 0x47, 0x5d, 0xce,
+				     0xbe, 0x48, 0xb5, 0x0b, 0x6a, 0x73, 0x9a,
+				     0x5a, 0xa3, 0x06, 0x47, 0x40, 0x96, 0xcf,
+				     0x86, 0x98, 0x3d, 0x6f, 0xcf, 0x17, 0x41,
+				     0xa5, 0x13, 0xa5, 0x35, 0x9a, 0xa6, 0x24,
+				     0xc9, 0x7f, 0x11, 0x79, 0x24, 0x44, 0xe8,
+				     0x39, 0x11, 0x03, 0x0a, 0x9d, 0x4f, 0xe2,
+				     0x95, 0x9f, 0x47, 0x73, 0x37, 0x83, 0x8c,
+				     0x23, 0xfa, 0x16, 0x72, 0x3e, 0x14, 0xa9 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/************************* aes-ctr + snow ****************************/
+
+	{
+		.test_idx = 22,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and SNOW-f9_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x22, 0x2a, 0x8f, 0x86,
+				     0x25, 0x92, 0xcd, 0xa9, 0xa1, 0xa0, 0xf5,
+				     0x86, 0x0d, 0xe8, 0xe4, 0xef, 0xe0, 0x78,
+				     0x45, 0x7c, 0x0c, 0x41, 0x5c, 0x8f, 0x07,
+				     0x6f, 0xec, 0x2f, 0x99, 0x8b, 0xfd, 0x9c,
+				     0x4a, 0x6a, 0xe4, 0x5d, 0xd3, 0x3c, 0x40,
+				     0x35, 0xff, 0x7a, 0x42, 0xac, 0x94, 0x21,
+				     0x60, 0x1c, 0x13, 0xcc, 0x7e, 0x6b, 0x2f,
+				     0x6f, 0x91, 0x89, 0xc6, 0xd4, 0xe6, 0x17,
+				     0xae, 0xde, 0xfb, 0x3f, 0x47, 0xaa, 0x9b },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + zuc **************************/
+
+	{
+		.test_idx = 23,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and ZUC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){
+				0x50, 0x01, 0x86, 0x69, 0xf2, 0x5d, 0xd7, 0xf5,
+				0xc1, 0xf7, 0x1e, 0x47, 0x5d, 0xce, 0xbe, 0x48,
+				0xb5, 0x0b, 0x6a, 0x73, 0x9a, 0x5a, 0xa3, 0x06,
+				0x47, 0x40, 0x96, 0xcf, 0x86, 0x98, 0x3d, 0x6f,
+				0xcf, 0x17, 0x41, 0xa5, 0x13, 0xa5, 0x35, 0x9a,
+				0xa6, 0x24, 0xc9, 0x7f, 0x11, 0x79, 0x24, 0x44,
+				0xe8, 0x39, 0x11, 0x03, 0x0a, 0x9d, 0x4f, 0xe2,
+				0x95, 0x9f, 0x47, 0x73, 0x37, 0x83, 0x8c, 0x23,
+				0xfa, 0x16, 0x52, 0x69, 0x16, 0xfc,
+			},
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** aes-ctr + zuc **************************/
+
+	{
+		.test_idx = 24,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and ZUC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x22, 0x2a, 0x8f, 0x86,
+				     0x25, 0x92, 0xcd, 0xa9, 0xa1, 0xa0, 0xf5,
+				     0x86, 0x0d, 0xe8, 0xe4, 0xef, 0xe0, 0x78,
+				     0x45, 0x7c, 0x0c, 0x41, 0x5c, 0x8f, 0x07,
+				     0x6f, 0xec, 0x2f, 0x99, 0x8b, 0xfd, 0x9c,
+				     0x4a, 0x6a, 0xe4, 0x5d, 0xd3, 0x3c, 0x40,
+				     0x35, 0xff, 0x7a, 0x42, 0xac, 0x94, 0x21,
+				     0x60, 0x1c, 0x13, 0xcc, 0x7e, 0x6b, 0x2f,
+				     0x6f, 0x91, 0x89, 0xc6, 0xd4, 0xe6, 0x17,
+				     0xae, 0xde, 0xfb, 0xf5, 0xda, 0x73, 0xa7 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 25,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xe8, 0x8c, 0x96, 0x38,
+				     0x6e, 0xe4, 0x1f, 0xb9, 0x85, 0x61, 0x2e,
+				     0x64, 0x31, 0x22, 0x97, 0x5b, 0xf6, 0x40,
+				     0x08, 0x65, 0xc3, 0xfa, 0x72, 0xd2, 0x22,
+				     0x37, 0x8e, 0x4d, 0xc1, 0xac, 0x7c, 0x7d,
+				     0x03, 0xf1, 0x50, 0x9f, 0x97, 0x67, 0x4e,
+				     0x23, 0x80, 0xcc, 0x5f, 0xfd, 0x74, 0xb1,
+				     0xfb, 0xe1, 0xea, 0x6f, 0xf9, 0x9d, 0xf3,
+				     0x90, 0x02, 0x6e, 0xf1, 0xf8, 0x95, 0x97,
+				     0xbd, 0xba, 0x08, 0x06, 0x12, 0x07, 0xac },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 26,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xd2, 0xc0, 0x3a, 0x41,
+				     0xbc, 0x0b, 0x95, 0xa4, 0x57, 0x3e, 0x36,
+				     0x10, 0xb2, 0xff, 0x48, 0x1f, 0x10, 0xa8,
+				     0x06, 0x42, 0xc5, 0xa2, 0x33, 0xed, 0x2e,
+				     0x37, 0x23, 0x04, 0x06, 0x84, 0xb9, 0x4c,
+				     0x1b, 0x17, 0xf3, 0x16, 0xc4, 0xd1, 0xa8,
+				     0x35, 0xd2, 0x31, 0x1a, 0xb8, 0x33, 0xc7,
+				     0x9c, 0xa4, 0xa4, 0x9b, 0x20, 0xc6, 0x47,
+				     0xdd, 0xe5, 0xa3, 0x4b, 0x9e, 0x66, 0xde,
+				     0xc9, 0x0a, 0x64, 0x1c, 0xd7, 0x20, 0x52 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + aes-cmac ************************/
+
+	{
+		.test_idx = 27,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xe8, 0x8c, 0x96, 0x38,
+				     0x6e, 0xe4, 0x1f, 0xb9, 0x85, 0x61, 0x2e,
+				     0x64, 0x31, 0x22, 0x97, 0x5b, 0xf6, 0x40,
+				     0x08, 0x65, 0xc3, 0xfa, 0x72, 0xd2, 0x22,
+				     0x37, 0x8e, 0x4d, 0xc1, 0xac, 0x7c, 0x7d,
+				     0x03, 0xf1, 0x50, 0x9f, 0x97, 0x67, 0x4e,
+				     0x23, 0x80, 0xcc, 0x5f, 0xfd, 0x74, 0xb1,
+				     0xfb, 0xe1, 0xea, 0x6f, 0xf9, 0x9d, 0xf3,
+				     0x90, 0x02, 0x6e, 0xf1, 0xf8, 0x95, 0x97,
+				     0xbd, 0xba, 0x08, 0x39, 0x63, 0x21, 0x82 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + aes-cmac ************************/
+
+	{
+		.test_idx = 28,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xd2, 0xc0, 0x3a, 0x41,
+				     0xbc, 0x0b, 0x95, 0xa4, 0x57, 0x3e, 0x36,
+				     0x10, 0xb2, 0xff, 0x48, 0x1f, 0x10, 0xa8,
+				     0x06, 0x42, 0xc5, 0xa2, 0x33, 0xed, 0x2e,
+				     0x37, 0x23, 0x04, 0x06, 0x84, 0xb9, 0x4c,
+				     0x1b, 0x17, 0xf3, 0x16, 0xc4, 0xd1, 0xa8,
+				     0x35, 0xd2, 0x31, 0x1a, 0xb8, 0x33, 0xc7,
+				     0x9c, 0xa4, 0xa4, 0x9b, 0x20, 0xc6, 0x47,
+				     0xdd, 0xe5, 0xa3, 0x4b, 0x9e, 0x66, 0xde,
+				     0xc9, 0x0a, 0x64, 0x8e, 0x79, 0xde, 0xaa },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + snow ****************************/
+
+	{
+		.test_idx = 29,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and SNOW-f9_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xe8, 0x8c, 0x96, 0x38,
+				     0x6e, 0xe4, 0x1f, 0xb9, 0x85, 0x61, 0x2e,
+				     0x64, 0x31, 0x22, 0x97, 0x5b, 0xf6, 0x40,
+				     0x08, 0x65, 0xc3, 0xfa, 0x72, 0xd2, 0x22,
+				     0x37, 0x8e, 0x4d, 0xc1, 0xac, 0x7c, 0x7d,
+				     0x03, 0xf1, 0x50, 0x9f, 0x97, 0x67, 0x4e,
+				     0x23, 0x80, 0xcc, 0x5f, 0xfd, 0x74, 0xb1,
+				     0xfb, 0xe1, 0xea, 0x6f, 0xf9, 0x9d, 0xf3,
+				     0x90, 0x02, 0x6e, 0xf1, 0xf8, 0x95, 0x97,
+				     0xbd, 0xba, 0x08, 0x72, 0xaa, 0x20, 0x3a },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + snow ****************************/
+
+	{
+		.test_idx = 30,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and SNOW-f9_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xd2, 0xc0, 0x3a, 0x41,
+				     0xbc, 0x0b, 0x95, 0xa4, 0x57, 0x3e, 0x36,
+				     0x10, 0xb2, 0xff, 0x48, 0x1f, 0x10, 0xa8,
+				     0x06, 0x42, 0xc5, 0xa2, 0x33, 0xed, 0x2e,
+				     0x37, 0x23, 0x04, 0x06, 0x84, 0xb9, 0x4c,
+				     0x1b, 0x17, 0xf3, 0x16, 0xc4, 0xd1, 0xa8,
+				     0x35, 0xd2, 0x31, 0x1a, 0xb8, 0x33, 0xc7,
+				     0x9c, 0xa4, 0xa4, 0x9b, 0x20, 0xc6, 0x47,
+				     0xdd, 0xe5, 0xa3, 0x4b, 0x9e, 0x66, 0xde,
+				     0xc9, 0x0a, 0x64, 0x21, 0x5c, 0x2d, 0xfa },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + zuc ****************************/
+
+	{
+		.test_idx = 31,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and ZUC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xe8, 0x8c, 0x96, 0x38,
+				     0x6e, 0xe4, 0x1f, 0xb9, 0x85, 0x61, 0x2e,
+				     0x64, 0x31, 0x22, 0x97, 0x5b, 0xf6, 0x40,
+				     0x08, 0x65, 0xc3, 0xfa, 0x72, 0xd2, 0x22,
+				     0x37, 0x8e, 0x4d, 0xc1, 0xac, 0x7c, 0x7d,
+				     0x03, 0xf1, 0x50, 0x9f, 0x97, 0x67, 0x4e,
+				     0x23, 0x80, 0xcc, 0x5f, 0xfd, 0x74, 0xb1,
+				     0xfb, 0xe1, 0xea, 0x6f, 0xf9, 0x9d, 0xf3,
+				     0x90, 0x02, 0x6e, 0xf1, 0xf8, 0x95, 0x97,
+				     0xbd, 0xba, 0x08, 0x52, 0xfd, 0x22, 0x6f },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + zuc ****************************/
+
+	{
+		.test_idx = 32,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and ZUC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xd2, 0xc0, 0x3a, 0x41,
+				     0xbc, 0x0b, 0x95, 0xa4, 0x57, 0x3e, 0x36,
+				     0x10, 0xb2, 0xff, 0x48, 0x1f, 0x10, 0xa8,
+				     0x06, 0x42, 0xc5, 0xa2, 0x33, 0xed, 0x2e,
+				     0x37, 0x23, 0x04, 0x06, 0x84, 0xb9, 0x4c,
+				     0x1b, 0x17, 0xf3, 0x16, 0xc4, 0xd1, 0xa8,
+				     0x35, 0xd2, 0x31, 0x1a, 0xb8, 0x33, 0xc7,
+				     0x9c, 0xa4, 0xa4, 0x9b, 0x20, 0xc6, 0x47,
+				     0xdd, 0xe5, 0xa3, 0x4b, 0x9e, 0x66, 0xde,
+				     0xc9, 0x0a, 0x64, 0xeb, 0xc1, 0xf4, 0xc6 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** zuc + null ****************************/
+
+	{
+		.test_idx = 33,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x79, 0xdb, 0x02, 0x27,
+				     0xa0, 0x85, 0x82, 0x87, 0x6b, 0x35, 0x2b,
+				     0xe1, 0x96, 0x5b, 0xfd, 0x67, 0xe1, 0x67,
+				     0x69, 0x17, 0x5b, 0x0a, 0x8f, 0xb8, 0x37,
+				     0xeb, 0xb8, 0x3f, 0x13, 0x7b, 0x88, 0x40,
+				     0x29, 0x67, 0x21, 0xf9, 0xc0, 0xaf, 0xca,
+				     0xda, 0x94, 0x61, 0x8e, 0x2d, 0x7a, 0x5d,
+				     0x64, 0x0f, 0x4a, 0xc7, 0x7c, 0x9d, 0x56,
+				     0x5a, 0x2a, 0xcb, 0xff, 0x79, 0x07, 0xa5,
+				     0xaf, 0x96, 0x5c, 0x89, 0x1d, 0xcd, 0x3a },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** zuc + null ****************************/
+
+	{
+		.test_idx = 34,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x2c, 0x0f, 0xc1, 0x08,
+				     0x2e, 0xa7, 0x97, 0xd2, 0x6c, 0x17, 0x8f,
+				     0x22, 0x1f, 0x99, 0x1b, 0x48, 0x04, 0x29,
+				     0x54, 0x3f, 0x07, 0x01, 0xda, 0x19, 0x59,
+				     0x74, 0x17, 0x45, 0x46, 0x7e, 0x6c, 0x0b,
+				     0xc5, 0x6e, 0x90, 0xa7, 0x1e, 0x8d, 0x01,
+				     0x04, 0xf4, 0xfe, 0xe6, 0xf7, 0x53, 0x51,
+				     0x70, 0x10, 0x56, 0x83, 0x59, 0xb5, 0x64,
+				     0x0b, 0xa6, 0x2e, 0xa5, 0x03, 0x62, 0x13,
+				     0x91, 0xaf, 0x24, 0x20, 0x2c, 0x05, 0xdf },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** zuc + aes-cmac *************************/
+
+	{
+		.test_idx = 35,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x79, 0xdb, 0x02, 0x27,
+				     0xa0, 0x85, 0x82, 0x87, 0x6b, 0x35, 0x2b,
+				     0xe1, 0x96, 0x5b, 0xfd, 0x67, 0xe1, 0x67,
+				     0x69, 0x17, 0x5b, 0x0a, 0x8f, 0xb8, 0x37,
+				     0xeb, 0xb8, 0x3f, 0x13, 0x7b, 0x88, 0x40,
+				     0x29, 0x67, 0x21, 0xf9, 0xc0, 0xaf, 0xca,
+				     0xda, 0x94, 0x61, 0x8e, 0x2d, 0x7a, 0x5d,
+				     0x64, 0x0f, 0x4a, 0xc7, 0x7c, 0x9d, 0x56,
+				     0x5a, 0x2a, 0xcb, 0xff, 0x79, 0x07, 0xa5,
+				     0xaf, 0x96, 0x5c, 0xb6, 0x6c, 0xeb, 0x14 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** zuc + aes-cmac *************************/
+
+	{
+		.test_idx = 36,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x2c, 0x0f, 0xc1, 0x08,
+				     0x2e, 0xa7, 0x97, 0xd2, 0x6c, 0x17, 0x8f,
+				     0x22, 0x1f, 0x99, 0x1b, 0x48, 0x04, 0x29,
+				     0x54, 0x3f, 0x07, 0x01, 0xda, 0x19, 0x59,
+				     0x74, 0x17, 0x45, 0x46, 0x7e, 0x6c, 0x0b,
+				     0xc5, 0x6e, 0x90, 0xa7, 0x1e, 0x8d, 0x01,
+				     0x04, 0xf4, 0xfe, 0xe6, 0xf7, 0x53, 0x51,
+				     0x70, 0x10, 0x56, 0x83, 0x59, 0xb5, 0x64,
+				     0x0b, 0xa6, 0x2e, 0xa5, 0x03, 0x62, 0x13,
+				     0x91, 0xaf, 0x24, 0xb2, 0x82, 0xfb, 0x27 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** zuc + snow ****************************/
+
+	{
+		.test_idx = 37,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and SNOW-f9_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x79, 0xdb, 0x02, 0x27,
+				     0xa0, 0x85, 0x82, 0x87, 0x6b, 0x35, 0x2b,
+				     0xe1, 0x96, 0x5b, 0xfd, 0x67, 0xe1, 0x67,
+				     0x69, 0x17, 0x5b, 0x0a, 0x8f, 0xb8, 0x37,
+				     0xeb, 0xb8, 0x3f, 0x13, 0x7b, 0x88, 0x40,
+				     0x29, 0x67, 0x21, 0xf9, 0xc0, 0xaf, 0xca,
+				     0xda, 0x94, 0x61, 0x8e, 0x2d, 0x7a, 0x5d,
+				     0x64, 0x0f, 0x4a, 0xc7, 0x7c, 0x9d, 0x56,
+				     0x5a, 0x2a, 0xcb, 0xff, 0x79, 0x07, 0xa5,
+				     0xaf, 0x96, 0x5c, 0xfd, 0xa5, 0xea, 0xac },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** zuc + snow ****************************/
+
+	{
+		.test_idx = 38,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and SNOW-f9_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x2c, 0x0f, 0xc1, 0x08,
+				     0x2e, 0xa7, 0x97, 0xd2, 0x6c, 0x17, 0x8f,
+				     0x22, 0x1f, 0x99, 0x1b, 0x48, 0x04, 0x29,
+				     0x54, 0x3f, 0x07, 0x01, 0xda, 0x19, 0x59,
+				     0x74, 0x17, 0x45, 0x46, 0x7e, 0x6c, 0x0b,
+				     0xc5, 0x6e, 0x90, 0xa7, 0x1e, 0x8d, 0x01,
+				     0x04, 0xf4, 0xfe, 0xe6, 0xf7, 0x53, 0x51,
+				     0x70, 0x10, 0x56, 0x83, 0x59, 0xb5, 0x64,
+				     0x0b, 0xa6, 0x2e, 0xa5, 0x03, 0x62, 0x13,
+				     0x91, 0xaf, 0x24, 0x1d, 0xa7, 0x08, 0x77 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** zuc + zuc ****************************/
+
+	{
+		.test_idx = 39,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and ZUC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x79, 0xdb, 0x02, 0x27,
+				     0xa0, 0x85, 0x82, 0x87, 0x6b, 0x35, 0x2b,
+				     0xe1, 0x96, 0x5b, 0xfd, 0x67, 0xe1, 0x67,
+				     0x69, 0x17, 0x5b, 0x0a, 0x8f, 0xb8, 0x37,
+				     0xeb, 0xb8, 0x3f, 0x13, 0x7b, 0x88, 0x40,
+				     0x29, 0x67, 0x21, 0xf9, 0xc0, 0xaf, 0xca,
+				     0xda, 0x94, 0x61, 0x8e, 0x2d, 0x7a, 0x5d,
+				     0x64, 0x0f, 0x4a, 0xc7, 0x7c, 0x9d, 0x56,
+				     0x5a, 0x2a, 0xcb, 0xff, 0x79, 0x07, 0xa5,
+				     0xaf, 0x96, 0x5c, 0xdd, 0xf2, 0xe8, 0xf9 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** zuc + zuc ****************************/
+
+	{
+		.test_idx = 40,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and ZUC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x2c, 0x0f, 0xc1, 0x08,
+				     0x2e, 0xa7, 0x97, 0xd2, 0x6c, 0x17, 0x8f,
+				     0x22, 0x1f, 0x99, 0x1b, 0x48, 0x04, 0x29,
+				     0x54, 0x3f, 0x07, 0x01, 0xda, 0x19, 0x59,
+				     0x74, 0x17, 0x45, 0x46, 0x7e, 0x6c, 0x0b,
+				     0xc5, 0x6e, 0x90, 0xa7, 0x1e, 0x8d, 0x01,
+				     0x04, 0xf4, 0xfe, 0xe6, 0xf7, 0x53, 0x51,
+				     0x70, 0x10, 0x56, 0x83, 0x59, 0xb5, 0x64,
+				     0x0b, 0xa6, 0x2e, 0xa5, 0x03, 0x62, 0x13,
+				     0x91, 0xaf, 0x24, 0xd7, 0x3a, 0xd1, 0x4b },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/***************************** 15bit **********************************/
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 41,
+		.param = {.name = "PDCP-SDAP Uplane: 15b SN, NULL_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					 0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					 0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 42,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 15b SN, NULL_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					 0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					 0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + null *************************/
+
+	{
+		.test_idx = 43,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 15b SN, AES-CTR_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x90, 0xf6, 0xf8,
+					 0xf2, 0x2b, 0xb2, 0x40, 0x40, 0x9c,
+					 0xd6, 0x31, 0x66, 0x62, 0xcc },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** aes-ctr + null *************************/
+
+	{
+		.test_idx = 44,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 15b SN, AES-CTR_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0xf6, 0x2a, 0x78,
+					 0x25, 0x3c, 0xf3, 0x23, 0x56, 0x1e,
+					 0x0e, 0xea, 0x2a, 0x75, 0x4c },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 45,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 15b SN, SNOW-f8_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x8f, 0xaa, 0x5e,
+					 0xee, 0x10, 0xdf, 0x4d, 0xdc, 0x2e,
+					 0x64, 0x23, 0x36, 0x3f, 0x75 },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 46,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 15b SN, SNOW-f8_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x3a, 0x88, 0xa8,
+					 0x69, 0xb5, 0xd0, 0x97, 0x3c, 0xfb,
+					 0xe1, 0x29, 0x49, 0xd9, 0x80 },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/**************************** zuc + null ****************************/
+
+	{
+		.test_idx = 47,
+		.param = {.name = "PDCP-SDAP Uplane: 15b SN, ZUC_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x30, 0xd2, 0xe1,
+					 0xef, 0x7a, 0xd6, 0x63, 0xb1, 0xc4,
+					 0x92, 0x83, 0x28, 0xbe, 0x39 },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** zuc + null ****************************/
+
+	{
+		.test_idx = 48,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 15b SN, ZUC_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x92, 0xc2, 0x45,
+					 0xb4, 0x75, 0x24, 0x76, 0x26, 0xaa,
+					 0xe1, 0xf4, 0x45, 0xce, 0xfd },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/***************************** 18bit **********************************/
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 49,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xF8, 0x00, 0x00, 0xF8, 0xDB, 0x2D, 0x3F,
+				     0x23, 0x82, 0x53, 0xFD, 0x37, 0xDE, 0x88,
+				     0x63, 0x08, 0x4F, 0xD3, 0x71, 0xFB, 0xEB,
+				     0x35, 0xF3, 0x64, 0xD3, 0x5E, 0xAF, 0x3F,
+				     0x57, 0xC2, 0xE2, 0x91, 0x91, 0xA3, 0x9C,
+				     0xE6, 0x30, 0x69, 0x70, 0x33, 0x8A, 0x15,
+				     0xD0, 0x36, 0x47, 0x0E, 0x8F, 0xEE, 0x2C,
+				     0x96, 0x0C, 0xD7, 0x7D, 0x70, 0x1B, 0x01,
+				     0x7F, 0x96, 0x46, 0x53, 0xB0, 0xA4, 0x7A,
+				     0xF9, 0xDD, 0xCC, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xF8, 0x00, 0x00, 0xF8, 0xDB, 0x2D, 0x3F,
+				     0x23, 0x82, 0x53, 0xFD, 0x37, 0xDE, 0x88,
+				     0x63, 0x08, 0x4F, 0xD3, 0x71, 0xFB, 0xEB,
+				     0x35, 0xF3, 0x64, 0xD3, 0x5E, 0xAF, 0x3F,
+				     0x57, 0xC2, 0xE2, 0x91, 0x91, 0xA3, 0x9C,
+				     0xE6, 0x30, 0x69, 0x70, 0x33, 0x8A, 0x15,
+				     0xD0, 0x36, 0x47, 0x0E, 0x8F, 0xEE, 0x2C,
+				     0x96, 0x0C, 0xD7, 0x7D, 0x70, 0x1B, 0x01,
+				     0x7F, 0x96, 0x46, 0x53, 0xB0, 0xA4, 0x7A,
+				     0xF9, 0xDD, 0xCC, 0x69 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 50,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** null + aes-cmac ************************/
+
+	{
+		.test_idx = 51,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69, 0x70, 0x3e, 0x09,
+				     0xc7 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + aes-cmac ************************/
+
+	{
+		.test_idx = 52,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69, 0x55, 0x89, 0xe3,
+				     0x52 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** null + snow ****************************/
+
+	{
+		.test_idx = 53,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and SNOW-f9_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69, 0x00, 0x45, 0x13,
+				     0x4c },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + snow ****************************/
+
+	{
+		.test_idx = 54,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and SNOW-f9_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69, 0x73, 0x53, 0x85,
+				     0x5c },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** null + zuc ****************************/
+
+	{
+		.test_idx = 55,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and ZUC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69, 0x00, 0x8b, 0x37,
+				     0x29 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + zuc ****************************/
+
+	{
+		.test_idx = 56,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and ZUC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69, 0xa5, 0xd4, 0xca,
+				     0xc5 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + null ************************/
+
+	{
+		.test_idx = 57,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x78, 0xee, 0x01,
+				     0x4c, 0x79, 0xc7, 0x14, 0x79, 0x2c, 0x1b,
+				     0x8a, 0xd0, 0x17, 0xb4, 0xb4, 0xfe, 0xa7,
+				     0x17, 0x9a, 0x93, 0x5d, 0xad, 0x27, 0x8a,
+				     0x56, 0xd7, 0x36, 0xec, 0x8d, 0x74, 0xff,
+				     0x7c, 0x93, 0x4d, 0x89, 0x00, 0x30, 0x40,
+				     0x37, 0xfb, 0x98, 0x1b, 0x06, 0x1a, 0x76,
+				     0xf8, 0x07, 0x72, 0xe9, 0xa2, 0x89, 0x47,
+				     0x95, 0x8f, 0x8f, 0x4e, 0x45, 0x55, 0xd6,
+				     0x0e, 0xf4, 0xe7, 0xe8, 0x08, 0xe3, 0xc8,
+				     0x55 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** aes-ctr + null *************************/
+
+	{
+		.test_idx = 58,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xbf, 0x21, 0xc9,
+				     0x7d, 0x02, 0x8d, 0xf7, 0xf7, 0x80, 0x50,
+				     0x60, 0x32, 0x09, 0xb8, 0x69, 0x48, 0xab,
+				     0x58, 0xf0, 0xd9, 0x63, 0x63, 0x36, 0x01,
+				     0x3f, 0x95, 0xc3, 0xfa, 0xe1, 0xc7, 0x95,
+				     0x1f, 0x66, 0x1a, 0xd6, 0x8e, 0xec, 0x0e,
+				     0x4c, 0x00, 0xd0, 0x0e, 0x31, 0x1c, 0x87,
+				     0xee, 0x1c, 0xc3, 0x81, 0xb4, 0xb6, 0x09,
+				     0xb5, 0x3c, 0x85, 0xb9, 0xcc, 0x2d, 0x2e,
+				     0x9c, 0x85, 0x0b, 0xf7, 0xe4, 0x09, 0xd3,
+				     0xf7 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + aes-cmac *********************/
+
+	{
+		.test_idx = 59,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x78, 0xee, 0x01,
+				     0x4c, 0x79, 0xc7, 0x14, 0x79, 0x2c, 0x1b,
+				     0x8a, 0xd0, 0x17, 0xb4, 0xb4, 0xfe, 0xa7,
+				     0x17, 0x9a, 0x93, 0x5d, 0xad, 0x27, 0x8a,
+				     0x56, 0xd7, 0x36, 0xec, 0x8d, 0x74, 0xff,
+				     0x7c, 0x93, 0x4d, 0x89, 0x00, 0x30, 0x40,
+				     0x37, 0xfb, 0x98, 0x1b, 0x06, 0x1a, 0x76,
+				     0xf8, 0x07, 0x72, 0xe9, 0xa2, 0x89, 0x47,
+				     0x95, 0x8f, 0x8f, 0x4e, 0x45, 0x55, 0xd6,
+				     0x0e, 0xf4, 0xe7, 0xe8, 0x78, 0xdd, 0xc1,
+				     0x92 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** aes-ctr + aes-cmac *********************/
+
+	{
+		.test_idx = 60,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xbf, 0x21, 0xc9,
+				     0x7d, 0x02, 0x8d, 0xf7, 0xf7, 0x80, 0x50,
+				     0x60, 0x32, 0x09, 0xb8, 0x69, 0x48, 0xab,
+				     0x58, 0xf0, 0xd9, 0x63, 0x63, 0x36, 0x01,
+				     0x3f, 0x95, 0xc3, 0xfa, 0xe1, 0xc7, 0x95,
+				     0x1f, 0x66, 0x1a, 0xd6, 0x8e, 0xec, 0x0e,
+				     0x4c, 0x00, 0xd0, 0x0e, 0x31, 0x1c, 0x87,
+				     0xee, 0x1c, 0xc3, 0x81, 0xb4, 0xb6, 0x09,
+				     0xb5, 0x3c, 0x85, 0xb9, 0xcc, 0x2d, 0x2e,
+				     0x9c, 0x85, 0x0b, 0xf7, 0xb1, 0x80, 0x30,
+				     0xa5 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + snow ************************/
+
+	{
+		.test_idx = 61,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and SNOW-f9_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x78, 0xee, 0x01,
+				     0x4c, 0x79, 0xc7, 0x14, 0x79, 0x2c, 0x1b,
+				     0x8a, 0xd0, 0x17, 0xb4, 0xb4, 0xfe, 0xa7,
+				     0x17, 0x9a, 0x93, 0x5d, 0xad, 0x27, 0x8a,
+				     0x56, 0xd7, 0x36, 0xec, 0x8d, 0x74, 0xff,
+				     0x7c, 0x93, 0x4d, 0x89, 0x00, 0x30, 0x40,
+				     0x37, 0xfb, 0x98, 0x1b, 0x06, 0x1a, 0x76,
+				     0xf8, 0x07, 0x72, 0xe9, 0xa2, 0x89, 0x47,
+				     0x95, 0x8f, 0x8f, 0x4e, 0x45, 0x55, 0xd6,
+				     0x0e, 0xf4, 0xe7, 0xe8, 0x08, 0xa6, 0xdb,
+				     0x19 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** aes-ctr + snow ************************/
+
+	{
+		.test_idx = 62,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and SNOW-f9_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xbf, 0x21, 0xc9,
+				     0x7d, 0x02, 0x8d, 0xf7, 0xf7, 0x80, 0x50,
+				     0x60, 0x32, 0x09, 0xb8, 0x69, 0x48, 0xab,
+				     0x58, 0xf0, 0xd9, 0x63, 0x63, 0x36, 0x01,
+				     0x3f, 0x95, 0xc3, 0xfa, 0xe1, 0xc7, 0x95,
+				     0x1f, 0x66, 0x1a, 0xd6, 0x8e, 0xec, 0x0e,
+				     0x4c, 0x00, 0xd0, 0x0e, 0x31, 0x1c, 0x87,
+				     0xee, 0x1c, 0xc3, 0x81, 0xb4, 0xb6, 0x09,
+				     0xb5, 0x3c, 0x85, 0xb9, 0xcc, 0x2d, 0x2e,
+				     0x9c, 0x85, 0x0b, 0xf7, 0x97, 0x5a, 0x56,
+				     0xab },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + zuc **************************/
+
+	{
+		.test_idx = 63,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and ZUC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x78, 0xee, 0x01,
+				     0x4c, 0x79, 0xc7, 0x14, 0x79, 0x2c, 0x1b,
+				     0x8a, 0xd0, 0x17, 0xb4, 0xb4, 0xfe, 0xa7,
+				     0x17, 0x9a, 0x93, 0x5d, 0xad, 0x27, 0x8a,
+				     0x56, 0xd7, 0x36, 0xec, 0x8d, 0x74, 0xff,
+				     0x7c, 0x93, 0x4d, 0x89, 0x00, 0x30, 0x40,
+				     0x37, 0xfb, 0x98, 0x1b, 0x06, 0x1a, 0x76,
+				     0xf8, 0x07, 0x72, 0xe9, 0xa2, 0x89, 0x47,
+				     0x95, 0x8f, 0x8f, 0x4e, 0x45, 0x55, 0xd6,
+				     0x0e, 0xf4, 0xe7, 0xe8, 0x08, 0x68, 0xff,
+				     0x7c },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** aes-ctr + zuc **************************/
+
+	{
+		.test_idx = 64,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and ZUC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xbf, 0x21, 0xc9,
+				     0x7d, 0x02, 0x8d, 0xf7, 0xf7, 0x80, 0x50,
+				     0x60, 0x32, 0x09, 0xb8, 0x69, 0x48, 0xab,
+				     0x58, 0xf0, 0xd9, 0x63, 0x63, 0x36, 0x01,
+				     0x3f, 0x95, 0xc3, 0xfa, 0xe1, 0xc7, 0x95,
+				     0x1f, 0x66, 0x1a, 0xd6, 0x8e, 0xec, 0x0e,
+				     0x4c, 0x00, 0xd0, 0x0e, 0x31, 0x1c, 0x87,
+				     0xee, 0x1c, 0xc3, 0x81, 0xb4, 0xb6, 0x09,
+				     0xb5, 0x3c, 0x85, 0xb9, 0xcc, 0x2d, 0x2e,
+				     0x9c, 0x85, 0x0b, 0xf7, 0x41, 0xdd, 0x19,
+				     0x32 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 65,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, SNOW-f8_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x0c, 0xa8, 0x9d,
+				     0x9e, 0xcc, 0xf0, 0x1a, 0xc0, 0xf2, 0x9f,
+				     0x8c, 0xc9, 0x57, 0xc7, 0x99, 0x4d, 0xde,
+				     0xc5, 0x19, 0x69, 0x58, 0x5b, 0x1a, 0x51,
+				     0x40, 0xa8, 0xc4, 0x93, 0x4b, 0x47, 0xb8,
+				     0xc4, 0x2a, 0x19, 0x07, 0x80, 0x45, 0xbb,
+				     0xb3, 0x24, 0x88, 0x68, 0x5f, 0x78, 0x3a,
+				     0xd2, 0x6c, 0xcc, 0xa0, 0xb5, 0xf0, 0x95,
+				     0x3e, 0xf1, 0xf4, 0x3e, 0x43, 0x8f, 0x6c,
+				     0xae, 0x22, 0x59, 0x11, 0x86, 0xa9, 0x02,
+				     0xbc },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 66,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, SNOW-f8_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x5a, 0xa9, 0xb5,
+				     0x61, 0x8b, 0x8a, 0xb7, 0x6a, 0x98, 0x30,
+				     0x6c, 0xed, 0x84, 0x69, 0xff, 0x6b, 0x7e,
+				     0x30, 0x59, 0x55, 0x80, 0x32, 0xd0, 0x0f,
+				     0x73, 0x43, 0x7c, 0xc3, 0x2e, 0xf4, 0xc3,
+				     0x3a, 0x60, 0xe3, 0x7c, 0xf0, 0x31, 0xa2,
+				     0x0e, 0x2e, 0x33, 0xe6, 0xa4, 0xea, 0x17,
+				     0xd6, 0x56, 0xa2, 0x3b, 0x5f, 0x56, 0x3a,
+				     0xa7, 0x6f, 0x4c, 0xc1, 0xca, 0xbd, 0x5f,
+				     0xad, 0x3d, 0x99, 0x4a, 0xf6, 0x22, 0x36,
+				     0x2e },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + aes-cmac ************************/
+
+	{
+		.test_idx = 67,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, SNOW-f8_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x0c, 0xa8, 0x9d,
+				     0x9e, 0xcc, 0xf0, 0x1a, 0xc0, 0xf2, 0x9f,
+				     0x8c, 0xc9, 0x57, 0xc7, 0x99, 0x4d, 0xde,
+				     0xc5, 0x19, 0x69, 0x58, 0x5b, 0x1a, 0x51,
+				     0x40, 0xa8, 0xc4, 0x93, 0x4b, 0x47, 0xb8,
+				     0xc4, 0x2a, 0x19, 0x07, 0x80, 0x45, 0xbb,
+				     0xb3, 0x24, 0x88, 0x68, 0x5f, 0x78, 0x3a,
+				     0xd2, 0x6c, 0xcc, 0xa0, 0xb5, 0xf0, 0x95,
+				     0x3e, 0xf1, 0xf4, 0x3e, 0x43, 0x8f, 0x6c,
+				     0xae, 0x22, 0x59, 0x11, 0xf6, 0x97, 0x0b,
+				     0x7b },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + aes-cmac ************************/
+
+	{
+		.test_idx = 68,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, SNOW-f8_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.17.1

Part of the diff is not shown here. View the raw message.

#18 lore raw

Re: [dpdk-dev] [PATCH v2 6/8] test/crypto: Add test vectors for PDCP-SDAP

Hi Thomas,

Quoted 6 lines

11/10/2020 23:34, Akhil Goyal:

Quoted 1 line

Please follow the same scheme as everybody for names:
only the first letter is capital.

Will fix it while applying the patch.
Could you please comment on the API change in the security layer. I copied Techboard but there is no response yet.

Regards,
Akhil

#19 lore raw

PATCH v2 7/8 test/crypto: Modify test_pdcp_proto to take parameters

In reply to Akhil Goyal

From: Franck LENORMAND <[email protected]>

The function test_pdcp_proto was relying to heavily on the structure of test vectors for PDCP making it difficult to be reusable.

The function is changed to take all the test parameters as input and does not need access to the tests vectors anymore.

---
 app/test/test_cryptodev.c | 183 ++++++++++++++++++++++----------------
 1 file changed, 104 insertions(+), 79 deletions(-)
app/test/test_cryptodev.c +104 -79
index ac2a36bc2..7cea914f9 100644
@@ -7121,14 +7121,18 @@ security_proto_supported(enum rte_security_session_action_type action,
  * on input_vec. Checks the output of the crypto operation against
  * output_vec.
  */
-static int
-test_pdcp_proto(int i, int oop,
-	enum rte_crypto_cipher_operation opc,
-	enum rte_crypto_auth_operation opa,
-	uint8_t *input_vec,
-	unsigned int input_vec_len,
-	uint8_t *output_vec,
-	unsigned int output_vec_len)
+static int test_pdcp_proto(int i, int oop, enum rte_crypto_cipher_operation opc,
+			   enum rte_crypto_auth_operation opa,
+			   const uint8_t *input_vec, unsigned int input_vec_len,
+			   const uint8_t *output_vec,
+			   unsigned int output_vec_len,
+			   enum rte_crypto_cipher_algorithm cipher_alg,
+			   const uint8_t *cipher_key, uint32_t cipher_key_len,
+			   enum rte_crypto_auth_algorithm auth_alg,
+			   const uint8_t *auth_key, uint32_t auth_key_len,
+			   uint8_t bearer, enum rte_security_pdcp_domain domain,
+			   uint8_t packet_direction, uint8_t sn_size,
+			   uint32_t hfn, uint32_t hfn_threshold, uint8_t sdap)
 {
 	struct crypto_testsuite_params *ts_params = &testsuite_params;
 	struct crypto_unittest_params *ut_params = &unittest_params;
@@ -7143,7 +7147,7 @@ test_pdcp_proto(int i, int oop,
 
 	sec_cap_idx.action = ut_params->type;
 	sec_cap_idx.protocol = RTE_SECURITY_PROTOCOL_PDCP;
-	sec_cap_idx.pdcp.domain = pdcp_test_params[i].domain;
+	sec_cap_idx.pdcp.domain = domain;
 	if (rte_security_capability_get(ctx, &sec_cap_idx) == NULL)
 		return -ENOTSUP;
 
@@ -7169,24 +7173,22 @@ test_pdcp_proto(int i, int oop,
 
 	/* Setup Cipher Parameters */
 	ut_params->cipher_xform.type = RTE_CRYPTO_SYM_XFORM_CIPHER;
-	ut_params->cipher_xform.cipher.algo = pdcp_test_params[i].cipher_alg;
+	ut_params->cipher_xform.cipher.algo = cipher_alg;
 	ut_params->cipher_xform.cipher.op = opc;
-	ut_params->cipher_xform.cipher.key.data = pdcp_test_crypto_key[i];
-	ut_params->cipher_xform.cipher.key.length =
-					pdcp_test_params[i].cipher_key_len;
+	ut_params->cipher_xform.cipher.key.data = cipher_key;
+	ut_params->cipher_xform.cipher.key.length = cipher_key_len;
 	ut_params->cipher_xform.cipher.iv.length =
-				pdcp_test_packet_direction[i] ? 4 : 0;
+				packet_direction ? 4 : 0;
 	ut_params->cipher_xform.cipher.iv.offset = IV_OFFSET;
 
 	/* Setup HMAC Parameters if ICV header is required */
-	if (pdcp_test_params[i].auth_alg != 0) {
+	if (auth_alg != 0) {
 		ut_params->auth_xform.type = RTE_CRYPTO_SYM_XFORM_AUTH;
 		ut_params->auth_xform.next = NULL;
-		ut_params->auth_xform.auth.algo = pdcp_test_params[i].auth_alg;
+		ut_params->auth_xform.auth.algo = auth_alg;
 		ut_params->auth_xform.auth.op = opa;
-		ut_params->auth_xform.auth.key.data = pdcp_test_auth_key[i];
-		ut_params->auth_xform.auth.key.length =
-					pdcp_test_params[i].auth_key_len;
+		ut_params->auth_xform.auth.key.data = auth_key;
+		ut_params->auth_xform.auth.key.length = auth_key_len;
 
 		ut_params->cipher_xform.next = &ut_params->auth_xform;
 	} else {
@@ -7197,22 +7199,22 @@ test_pdcp_proto(int i, int oop,
 		.action_type = ut_params->type,
 		.protocol = RTE_SECURITY_PROTOCOL_PDCP,
 		{.pdcp = {
-			.bearer = pdcp_test_bearer[i],
-			.domain = pdcp_test_params[i].domain,
-			.pkt_dir = pdcp_test_packet_direction[i],
-			.sn_size = pdcp_test_data_sn_size[i],
-			.hfn = pdcp_test_packet_direction[i] ?
-				0 : pdcp_test_hfn[i],
-				/**
-				 * hfn can be set as pdcp_test_hfn[i]
-				 * if hfn_ovrd is not set. Here, PDCP
-				 * packet direction is just used to
-				 * run half of the cases with session
-				 * HFN and other half with per packet
-				 * HFN.
-				 */
-			.hfn_threshold = pdcp_test_hfn_threshold[i],
-			.hfn_ovrd = pdcp_test_packet_direction[i] ? 1 : 0,
+			.bearer = bearer,
+			.domain = domain,
+			.pkt_dir = packet_direction,
+			.sn_size = sn_size,
+			.hfn = packet_direction ? 0 : hfn,
+			/**
+			 * hfn can be set as pdcp_test_hfn[i]
+			 * if hfn_ovrd is not set. Here, PDCP
+			 * packet direction is just used to
+			 * run half of the cases with session
+			 * HFN and other half with per packet
+			 * HFN.
+			 */
+			.hfn_threshold = hfn_threshold,
+			.hfn_ovrd = packet_direction ? 1 : 0,
+			.sdap_enabled = sdap,
 		} },
 		.crypto_xform = &ut_params->cipher_xform
 	};
@@ -7241,7 +7243,7 @@ test_pdcp_proto(int i, int oop,
 
 	uint32_t *per_pkt_hfn = rte_crypto_op_ctod_offset(ut_params->op,
 					uint32_t *, IV_OFFSET);
-	*per_pkt_hfn = pdcp_test_packet_direction[i] ? pdcp_test_hfn[i] : 0;
+	*per_pkt_hfn = packet_direction ? hfn : 0;
 
 	rte_security_attach_session(ut_params->op, ut_params->sec_session);
 
@@ -7582,74 +7584,97 @@ test_pdcp_proto_SGL(int i, int oop,
 int
 test_pdcp_proto_cplane_encap(int i)
 {
-	return test_pdcp_proto(i, 0,
-		RTE_CRYPTO_CIPHER_OP_ENCRYPT,
-		RTE_CRYPTO_AUTH_OP_GENERATE,
-		pdcp_test_data_in[i],
-		pdcp_test_data_in_len[i],
-		pdcp_test_data_out[i],
-		pdcp_test_data_in_len[i]+4);
+	return test_pdcp_proto(
+		i, 0, RTE_CRYPTO_CIPHER_OP_ENCRYPT, RTE_CRYPTO_AUTH_OP_GENERATE,
+		pdcp_test_data_in[i], pdcp_test_data_in_len[i],
+		pdcp_test_data_out[i], pdcp_test_data_in_len[i] + 4,
+		pdcp_test_params[i].cipher_alg, pdcp_test_crypto_key[i],
+		pdcp_test_params[i].cipher_key_len,
+		pdcp_test_params[i].auth_alg, pdcp_test_auth_key[i],
+		pdcp_test_params[i].auth_key_len, pdcp_test_bearer[i],
+		pdcp_test_params[i].domain, pdcp_test_packet_direction[i],
+		pdcp_test_data_sn_size[i], pdcp_test_hfn[i],
+		pdcp_test_hfn_threshold[i], SDAP_DISABLED);
 }
 
 int
 test_pdcp_proto_uplane_encap(int i)
 {
-	return test_pdcp_proto(i, 0,
-		RTE_CRYPTO_CIPHER_OP_ENCRYPT,
-		RTE_CRYPTO_AUTH_OP_GENERATE,
-		pdcp_test_data_in[i],
-		pdcp_test_data_in_len[i],
-		pdcp_test_data_out[i],
-		pdcp_test_data_in_len[i]);
-
+	return test_pdcp_proto(
+		i, 0, RTE_CRYPTO_CIPHER_OP_ENCRYPT, RTE_CRYPTO_AUTH_OP_GENERATE,
+		pdcp_test_data_in[i], pdcp_test_data_in_len[i],
+		pdcp_test_data_out[i], pdcp_test_data_in_len[i],
+		pdcp_test_params[i].cipher_alg, pdcp_test_crypto_key[i],
+		pdcp_test_params[i].cipher_key_len,
+		pdcp_test_params[i].auth_alg, pdcp_test_auth_key[i],
+		pdcp_test_params[i].auth_key_len, pdcp_test_bearer[i],
+		pdcp_test_params[i].domain, pdcp_test_packet_direction[i],
+		pdcp_test_data_sn_size[i], pdcp_test_hfn[i],
+		pdcp_test_hfn_threshold[i], SDAP_DISABLED);
 }
 
 int
 test_pdcp_proto_uplane_encap_with_int(int i)
 {
-	return test_pdcp_proto(i, 0,
-		RTE_CRYPTO_CIPHER_OP_ENCRYPT,
-		RTE_CRYPTO_AUTH_OP_GENERATE,
-		pdcp_test_data_in[i],
-		pdcp_test_data_in_len[i],
-		pdcp_test_data_out[i],
-		pdcp_test_data_in_len[i] + 4);
+	return test_pdcp_proto(
+		i, 0, RTE_CRYPTO_CIPHER_OP_ENCRYPT, RTE_CRYPTO_AUTH_OP_GENERATE,
+		pdcp_test_data_in[i], pdcp_test_data_in_len[i],
+		pdcp_test_data_out[i], pdcp_test_data_in_len[i] + 4,
+		pdcp_test_params[i].cipher_alg, pdcp_test_crypto_key[i],
+		pdcp_test_params[i].cipher_key_len,
+		pdcp_test_params[i].auth_alg, pdcp_test_auth_key[i],
+		pdcp_test_params[i].auth_key_len, pdcp_test_bearer[i],
+		pdcp_test_params[i].domain, pdcp_test_packet_direction[i],
+		pdcp_test_data_sn_size[i], pdcp_test_hfn[i],
+		pdcp_test_hfn_threshold[i], SDAP_DISABLED);
 }
 
 int
 test_pdcp_proto_cplane_decap(int i)
 {
-	return test_pdcp_proto(i, 0,
-		RTE_CRYPTO_CIPHER_OP_DECRYPT,
-		RTE_CRYPTO_AUTH_OP_VERIFY,
-		pdcp_test_data_out[i],
-		pdcp_test_data_in_len[i] + 4,
-		pdcp_test_data_in[i],
-		pdcp_test_data_in_len[i]);
+	return test_pdcp_proto(
+		i, 0, RTE_CRYPTO_CIPHER_OP_DECRYPT, RTE_CRYPTO_AUTH_OP_VERIFY,
+		pdcp_test_data_out[i], pdcp_test_data_in_len[i] + 4,
+		pdcp_test_data_in[i], pdcp_test_data_in_len[i],
+		pdcp_test_params[i].cipher_alg, pdcp_test_crypto_key[i],
+		pdcp_test_params[i].cipher_key_len,
+		pdcp_test_params[i].auth_alg, pdcp_test_auth_key[i],
+		pdcp_test_params[i].auth_key_len, pdcp_test_bearer[i],
+		pdcp_test_params[i].domain, pdcp_test_packet_direction[i],
+		pdcp_test_data_sn_size[i], pdcp_test_hfn[i],
+		pdcp_test_hfn_threshold[i], SDAP_DISABLED);
 }
 
 int
 test_pdcp_proto_uplane_decap(int i)
 {
-	return test_pdcp_proto(i, 0,
-		RTE_CRYPTO_CIPHER_OP_DECRYPT,
-		RTE_CRYPTO_AUTH_OP_VERIFY,
-		pdcp_test_data_out[i],
-		pdcp_test_data_in_len[i],
-		pdcp_test_data_in[i],
-		pdcp_test_data_in_len[i]);
+	return test_pdcp_proto(
+		i, 0, RTE_CRYPTO_CIPHER_OP_DECRYPT, RTE_CRYPTO_AUTH_OP_VERIFY,
+		pdcp_test_data_out[i], pdcp_test_data_in_len[i],
+		pdcp_test_data_in[i], pdcp_test_data_in_len[i],
+		pdcp_test_params[i].cipher_alg, pdcp_test_crypto_key[i],
+		pdcp_test_params[i].cipher_key_len,
+		pdcp_test_params[i].auth_alg, pdcp_test_auth_key[i],
+		pdcp_test_params[i].auth_key_len, pdcp_test_bearer[i],
+		pdcp_test_params[i].domain, pdcp_test_packet_direction[i],
+		pdcp_test_data_sn_size[i], pdcp_test_hfn[i],
+		pdcp_test_hfn_threshold[i], SDAP_DISABLED);
 }
 
 int
 test_pdcp_proto_uplane_decap_with_int(int i)
 {
-	return test_pdcp_proto(i, 0,
-		RTE_CRYPTO_CIPHER_OP_DECRYPT,
-		RTE_CRYPTO_AUTH_OP_VERIFY,
-		pdcp_test_data_out[i],
-		pdcp_test_data_in_len[i] + 4,
-		pdcp_test_data_in[i],
-		pdcp_test_data_in_len[i]);
+	return test_pdcp_proto(
+		i, 0, RTE_CRYPTO_CIPHER_OP_DECRYPT, RTE_CRYPTO_AUTH_OP_VERIFY,
+		pdcp_test_data_out[i], pdcp_test_data_in_len[i] + 4,
+		pdcp_test_data_in[i], pdcp_test_data_in_len[i],
+		pdcp_test_params[i].cipher_alg, pdcp_test_crypto_key[i],
+		pdcp_test_params[i].cipher_key_len,
+		pdcp_test_params[i].auth_alg, pdcp_test_auth_key[i],
+		pdcp_test_params[i].auth_key_len, pdcp_test_bearer[i],
+		pdcp_test_params[i].domain, pdcp_test_packet_direction[i],
+		pdcp_test_data_sn_size[i], pdcp_test_hfn[i],
+		pdcp_test_hfn_threshold[i], SDAP_DISABLED);
 }
 
 static int
Signature · 1 line
2.17.1
#20 lore raw

PATCH v2 8/8 test/crypto: Add PDCP-SDAP cases

In reply to Akhil Goyal

From: Franck LENORMAND <[email protected]>

A new functions which uses the structure of the test vectors for SDAP is added and call a functions responsible to call the test_pdcp_proto with the test vector both for encapsulation and decapsulation.

---
 app/test/test_cryptodev.c | 95 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 95 insertions(+)
app/test/test_cryptodev.c +95 -0
index 7cea914f9..590691521 100644
@@ -1,5 +1,6 @@
 /* SPDX-License-Identifier: BSD-3-Clause
  * Copyright(c) 2015-2020 Intel Corporation
+ * Copyright 2020 NXP
  */
 
 #include <time.h>
@@ -42,8 +43,12 @@
 #include "test_cryptodev_mixed_test_vectors.h"
 #ifdef RTE_LIBRTE_SECURITY
 #include "test_cryptodev_security_pdcp_test_vectors.h"
+#include "test_cryptodev_security_pdcp_sdap_test_vectors.h"
 #include "test_cryptodev_security_pdcp_test_func.h"
 #include "test_cryptodev_security_docsis_test_vectors.h"
+
+#define SDAP_DISABLED	0
+#define SDAP_ENABLED	1
 #endif
 
 #define VDEV_ARGS_SIZE 100
@@ -52,6 +57,10 @@
 #define IN_PLACE 0
 #define OUT_OF_PLACE 1
 
+#ifndef ARRAY_SIZE
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+#endif
+
 static int gbl_driver_id;
 
 static enum rte_security_session_action_type gbl_action_type =
@@ -7743,6 +7752,90 @@ test_PDCP_PROTO_SGL_oop_128B_32B(void)
 			128, 32);
 }
 
+static int
+test_PDCP_SDAP_PROTO_encap_all(void)
+{
+	int i = 0, size = 0;
+	int err, all_err = TEST_SUCCESS;
+	const struct pdcp_sdap_test *cur_test;
+
+	size = ARRAY_SIZE(list_pdcp_sdap_tests);
+
+	for (i = 0; i < size; i++) {
+		cur_test = &list_pdcp_sdap_tests[i];
+		err = test_pdcp_proto(
+			i, 0, RTE_CRYPTO_CIPHER_OP_ENCRYPT,
+			RTE_CRYPTO_AUTH_OP_GENERATE, cur_test->data_in,
+			cur_test->in_len, cur_test->data_out,
+			cur_test->in_len + ((cur_test->auth_key) ? 4 : 0),
+			cur_test->param.cipher_alg, cur_test->cipher_key,
+			cur_test->param.cipher_key_len,
+			cur_test->param.auth_alg,
+			cur_test->auth_key, cur_test->param.auth_key_len,
+			cur_test->bearer, cur_test->param.domain,
+			cur_test->packet_direction, cur_test->sn_size,
+			cur_test->hfn,
+			cur_test->hfn_threshold, SDAP_ENABLED);
+		if (err) {
+			printf("\t%d) %s: Encapsulation failed\n",
+					cur_test->test_idx,
+					cur_test->param.name);
+			err = TEST_FAILED;
+		} else {
+			printf("\t%d) %s: Encap PASS\n", cur_test->test_idx,
+					cur_test->param.name);
+			err = TEST_SUCCESS;
+		}
+		all_err += err;
+	}
+
+	printf("Success: %d, Failure: %d\n", size + all_err, -all_err);
+
+	return (all_err == TEST_SUCCESS) ? TEST_SUCCESS : TEST_FAILED;
+}
+
+static int
+test_PDCP_SDAP_PROTO_decap_all(void)
+{
+	int i = 0, size = 0;
+	int err, all_err = TEST_SUCCESS;
+	const struct pdcp_sdap_test *cur_test;
+
+	size = ARRAY_SIZE(list_pdcp_sdap_tests);
+
+	for (i = 0; i < size; i++) {
+		cur_test = &list_pdcp_sdap_tests[i];
+		err = test_pdcp_proto(
+			i, 0, RTE_CRYPTO_CIPHER_OP_DECRYPT,
+			RTE_CRYPTO_AUTH_OP_VERIFY,
+			cur_test->data_out,
+			cur_test->in_len + ((cur_test->auth_key) ? 4 : 0),
+			cur_test->data_in, cur_test->in_len,
+			cur_test->param.cipher_alg,
+			cur_test->cipher_key, cur_test->param.cipher_key_len,
+			cur_test->param.auth_alg, cur_test->auth_key,
+			cur_test->param.auth_key_len, cur_test->bearer,
+			cur_test->param.domain, cur_test->packet_direction,
+			cur_test->sn_size, cur_test->hfn,
+			cur_test->hfn_threshold, SDAP_ENABLED);
+		if (err) {
+			printf("\t%d) %s: Decapsulation failed\n",
+					cur_test->test_idx,
+					cur_test->param.name);
+			err = TEST_FAILED;
+		} else {
+			printf("\t%d) %s: Decap PASS\n", cur_test->test_idx,
+					cur_test->param.name);
+			err = TEST_SUCCESS;
+		}
+		all_err += err;
+	}
+
+	printf("Success: %d, Failure: %d\n", size + all_err, -all_err);
+
+	return (all_err == TEST_SUCCESS) ? TEST_SUCCESS : TEST_FAILED;
+}
+
 static int
 test_PDCP_PROTO_all(void)
 {
@@ -7774,6 +7867,8 @@ test_PDCP_PROTO_all(void)
 	status += test_PDCP_PROTO_SGL_oop_32B_128B();
 	status += test_PDCP_PROTO_SGL_oop_32B_40B();
 	status += test_PDCP_PROTO_SGL_oop_128B_32B();
+	status += test_PDCP_SDAP_PROTO_encap_all();
+	status += test_PDCP_SDAP_PROTO_decap_all();
 
 	if (status)
 		return TEST_FAILED;
Signature · 1 line
2.17.1
#21 lore raw

v3 cover support PDCP-SDAP for dpaa2_sec

In reply to Akhil Goyal

The SDAP is a protocol in the LTE stack on top of PDCP. It is dedicated to QoS.

The difficulty of implementing this protocol is because the PDCP change behavior regarding encryption and authentication of the SDU it receives. In effect PDCP shall not encrypt the SDAP SDU but must authenticate it (when encryption and authentication is enabled).

A new field is added in the PDCP xform to specify SDAP is enabled. The overall size of the xform is not changed, as hfn_ovrd is just a flag and does not need uint32. Hence, it is converted to uint8_t and a 16 bit reserved field is added for future.

The corresponding test cases and test vectors are added in the test application.

This patch need Techboard approval as there is a change in API without a deprecation notice from last release.
This patch is required to support the upcoming development of 5GNR protocol - SDAP in near future. If the patch is not approved in the current release, we may not be able to support SDAP for next 1 year which is not accceptable for the customers.

changed in v3:
- fixed signoff
- fixed typo in 1/8

Changes in v2:
- removed unnecessary API documentation from security guide.
- fix clang build
- updated release notes

Akhil Goyal (4):
security: modify PDCP xform to support SDAP
doc: remove unnecessary API code from security guide crypto/dpaa2_sec: enable PDCP-SDAP sessions crypto/dpaa_sec: enable PDCP-SDAP sessions

Franck Lenormand (4):
common/dpaax/caamflib: Support PDCP-SDAP test/crypto: Add test vectors for PDCP-SDAP test/crypto: Modify test_pdcp_proto to take parameters test/crypto: Add PDCP-SDAP cases

 app/test/test_cryptodev.c                     |  278 +-
 ...ryptodev_security_pdcp_sdap_test_vectors.h | 3619 +++++++++++++++++
 doc/guides/prog_guide/rte_security.rst        |   55 +-
 doc/guides/rel_notes/release_20_11.rst        |    9 +
 drivers/common/dpaax/caamflib/desc/pdcp.h     |    8 +
 drivers/common/dpaax/caamflib/desc/sdap.h     | 1063 +++++
 drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c   |   30 +-
 drivers/crypto/dpaa_sec/dpaa_sec.c            |   63 +-
 drivers/crypto/dpaa_sec/dpaa_sec.h            |    3 +-
 lib/librte_security/rte_security.h            |   12 +-
 10 files changed, 4982 insertions(+), 158 deletions(-)
 create mode 100644 app/test/test_cryptodev_security_pdcp_sdap_test_vectors.h
 create mode 100644 drivers/common/dpaax/caamflib/desc/sdap.h
Signature · 1 line
2.17.1
#22 lore raw

PATCH v3 1/8 common/dpaax/caamflib: Support PDCP-SDAP

From: Franck Lenormand <[email protected]>

The SDAP is a protocol in the LTE stack on top of PDCP. It is dedicated to QoS.

The difficulty of implementing this protocol is because the PDCP change behavior regarding encryption and authentication of the SDU it receives. In effect PDCP shall not encrypt the SDAP SDU but must authenticate it (when encryption and authentication is enabled).

The current version of SEC does not support the SDAP and the change of behavior of PDCP prevent the use of the PDCP protocol command available.

The way to do it is to reuse the PDCP implementation but to not use the PDCP protocol and to have descriptors which performs the PDCP protocol.

It is configured by:

It is implemented done doing small changes of code:

        #ifdef SDAP_SUPPORT
                length += SDAP_BYTE_SIZE;
                offset -= SDAP_BYTE_SIZE;
        #endif
after having computed the size of the SN to read from the
input data, then
        #ifdef SDAP_SUPPORT
                MATHI(p, MATH0, LSHIFT, 8, MATH1, 8, 0);
                MATHB(p, MATH1, AND, sn_mask, MATH1, 8, IFB | IMMED2);
        #else
                MATHB(p, MATH0, AND, sn_mask, MATH1, 8, IFB | IMMED2);
        #endif

It will keep the SN and the SDAP header in MATH0, then shift it to remove the SDAP header and store the result in MATH1.

---
 drivers/common/dpaax/caamflib/desc/pdcp.h |    8 +
 drivers/common/dpaax/caamflib/desc/sdap.h | 1063 +++++++++++++++++++++
 2 files changed, 1071 insertions(+)
 create mode 100644 drivers/common/dpaax/caamflib/desc/sdap.h
drivers/common/dpaax/caamflib/desc/pdcp.h +8 -0
index 95d1416c2..f084cf1de 100644
@@ -43,6 +43,14 @@
 #define PDCP_C_PLANE_SN_MASK		0x1F000000
 #define PDCP_C_PLANE_SN_MASK_BE		0x0000001F
 
+/**
+ * PDCP_7BIT_SN_MASK - This mask is used in the PDCP descriptors for
+ *                              extracting the sequence number (SN) from the
+ *                              PDCP User Plane header.
+ */
+#define PDCP_7BIT_SN_MASK		0x7F000000
+#define PDCP_7BIT_SN_MASK_BE		0x0000007F
+
 /**
  * PDCP_12BIT_SN_MASK - This mask is used in the PDCP descriptors for
  *                              extracting the sequence number (SN) from the
drivers/common/dpaax/caamflib/desc/sdap.h new file +1063 -0

1,063 lines not on this page · raw message

Signature · 1 line
2.17.1
#23 lore raw

PATCH v3 2/8 security: modify PDCP xform to support SDAP

In reply to Akhil Goyal

The SDAP is a protocol in the LTE stack on top of PDCP for QOS. A particular PDCP session may or may not have SDAP enabled. But if it is enabled, SDAP header should be authenticated but not encrypted if both confidentiality and integrity is enabled. Hence, the driver should be intimated from the xform so that it skip the SDAP header while encryption.

A new field is added in the PDCP xform to specify SDAP is enabled. The overall size of the xform is not changed, as hfn_ovrd is just a flag and does not need uint32. Hence, it is converted to uint8_t and a 16 bit reserved field is added for future.

---
 doc/guides/rel_notes/release_20_11.rst |  9 +++++++++
 lib/librte_security/rte_security.h     | 12 ++++++++++--
 2 files changed, 19 insertions(+), 2 deletions(-)
doc/guides/rel_notes/release_20_11.rst +9 -0
index c34ab5493..fad91487a 100644
@@ -103,6 +103,11 @@ New Features
   also known as Mount Bryce.  See the
   :doc:`../bbdevs/acc100` BBDEV guide for more details on this new driver.
 
+* **Updated rte_security library to support SDAP.**
+
+  ``rte_security_pdcp_xform`` in ``rte_security`` lib is updated to enable
+  5G NR processing of SDAP header in PMDs.
+
 * **Updated Virtio driver.**
 
   * Added support for Vhost-vDPA backend to Virtio-user PMD.
@@ -307,6 +312,10 @@ API Changes
   ``rte_fpga_lte_fec_configure`` and structure ``fpga_lte_fec_conf`` to
   ``rte_fpga_lte_fec_conf``.
 
+* security: ``hfn_ovrd`` field in ``rte_security_pdcp_xform`` is changed from
+  ``uint32_t`` to ``uint8_t`` so that a new field ``sdap_enabled`` can be added
+  to support SDAP.
+
 
 ABI Changes
 -----------
lib/librte_security/rte_security.h +10 -2
index 16839e539..c259b35e0 100644
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright 2017,2019 NXP
+ * Copyright 2017,2019-2020 NXP
  * Copyright(c) 2017-2020 Intel Corporation.
  */
 
@@ -290,7 +290,15 @@ struct rte_security_pdcp_xform {
 	 * per packet HFN in place of IV. PMDs will extract the HFN
 	 * and perform operations accordingly.
 	 */
-	uint32_t hfn_ovrd;
+	uint8_t hfn_ovrd;
+	/** In case of 5G NR, a new protocol (SDAP) header may be set
+	 * inside PDCP payload which should be authenticated but not
+	 * encrypted. Hence, driver should be notified if SDAP is
+	 * enabled or not, so that SDAP header is not encrypted.
+	 */
+	uint8_t sdap_enabled;
+	/** Reserved for future */
+	uint16_t reserved;
 };
 
 /** DOCSIS direction */
Signature · 1 line
2.17.1
Acked-by on v3 2/8
#24 lore raw

Re: [dpdk-dev] [PATCH v3 2/8] security: modify PDCP xform to support SDAP

12/10/2020 16:10, Akhil Goyal:

Quoted 23 lines

The SDAP is a protocol in the LTE stack on top of PDCP for QOS. A particular PDCP session may or may not have SDAP enabled. But if it is enabled, SDAP header should be authenticated but not encrypted if both confidentiality and integrity is enabled. Hence, the driver should be intimated from the xform so that it skip the SDAP header while encryption.

A new field is added in the PDCP xform to specify SDAP is enabled. The overall size of the xform is not changed, as hfn_ovrd is just a flag and does not need uint32. Hence, it is converted to uint8_t and a 16 bit reserved field is added for future.

---
 doc/guides/rel_notes/release_20_11.rst |  9 +++++++++
 lib/librte_security/rte_security.h     | 12 ++++++++++--
 2 files changed, 19 insertions(+), 2 deletions(-)
doc/guides/rel_notes/release_20_11.rst +0 -0
index c34ab5493..fad91487a 100644

doc/guides/rel_notes/release_20_11.rst New Features · line 110

Quoted 8 lines
doc/guides/rel_notes/release_20_11.rst +5 -0
@@ -103,6 +103,11 @@ New Features
   also known as Mount Bryce.  See the
   :doc:`../bbdevs/acc100` BBDEV guide for more details on this new driver.
 
+* **Updated rte_security library to support SDAP.**
+
+  ``rte_security_pdcp_xform`` in ``rte_security`` lib is updated to enable
+  5G NR processing of SDAP header in PMDs.
+

Please try to keep the ordering:
crypto and security stuff should be after ethdev drivers and related stuff (I would say even after flow-perf).

doc/guides/rel_notes/release_20_11.rst API Changes · line 317

Quoted 10 lines
doc/guides/rel_notes/release_20_11.rst +3 -0
 * **Updated Virtio driver.**
 
   * Added support for Vhost-vDPA backend to Virtio-user PMD.
@@ -307,6 +312,10 @@ API Changes
   ``rte_fpga_lte_fec_configure`` and structure ``fpga_lte_fec_conf`` to
   ``rte_fpga_lte_fec_conf``.
 
+* security: ``hfn_ovrd`` field in ``rte_security_pdcp_xform`` is changed from
+  ``uint32_t`` to ``uint8_t`` so that a new field ``sdap_enabled`` can be added
+  to support SDAP.

For the API change,

author Applied
#25 lore raw

Re: [dpdk-dev] [PATCH v3 2/8] security: modify PDCP xform to support SDAP

Quoted 28 lines

12/10/2020 16:10, Akhil Goyal:

Quoted 12 lines

The SDAP is a protocol in the LTE stack on top of PDCP for QOS. A particular PDCP session may or may not have SDAP enabled. But if it is enabled, SDAP header should be authenticated but not encrypted if both confidentiality and integrity is enabled. Hence, the driver should be intimated from the xform so that it skip the SDAP header while encryption.

A new field is added in the PDCP xform to specify SDAP is enabled. The overall size of the xform is not changed, as hfn_ovrd is just a flag and does not need uint32. Hence, it is converted to uint8_t and a 16 bit reserved field is added for future.

Review

Quoted 7 lines
---
 doc/guides/rel_notes/release_20_11.rst |  9 +++++++++
 lib/librte_security/rte_security.h     | 12 ++++++++++--
 2 files changed, 19 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/doc/guides/rel_notes/release_20_11.rst

Quoted 7 lines

index c34ab5493..fad91487a 100644

doc/guides/rel_notes/release_20_11.rst +0 -0
@@ -103,6 +103,11 @@ New Features
   also known as Mount Bryce.  See the
   :doc:`../bbdevs/acc100` BBDEV guide for more details on this new driver.
 
Quoted 10 lines

doc/guides/rel_notes/release_20_11.rst New Features · line 110

Quoted 5 lines
doc/guides/rel_notes/release_20_11.rst +5 -0
+* **Updated rte_security library to support SDAP.**
+
+  ``rte_security_pdcp_xform`` in ``rte_security`` lib is updated to enable
+  5G NR processing of SDAP header in PMDs.
+

Please try to keep the ordering:
crypto and security stuff should be after ethdev drivers and related stuff (I would say even after flow-perf).

Fixed it while applying the series to dpdk-next-crypto

Quoted 7 lines
Quoted 7 lines
doc/guides/rel_notes/release_20_11.rst +0 -0
 * **Updated Virtio driver.**
 
   * Added support for Vhost-vDPA backend to Virtio-user PMD.
@@ -307,6 +312,10 @@ API Changes
   ``rte_fpga_lte_fec_configure`` and structure ``fpga_lte_fec_conf`` to
   ``rte_fpga_lte_fec_conf``.
 
Quoted 7 lines

doc/guides/rel_notes/release_20_11.rst API Changes · line 317

Quoted 3 lines
doc/guides/rel_notes/release_20_11.rst +3 -0
+* security: ``hfn_ovrd`` field in ``rte_security_pdcp_xform`` is changed from
+  ``uint32_t`` to ``uint8_t`` so that a new field ``sdap_enabled`` can be added
+  to support SDAP.

For the API change,

Applied to dpdk-next-crypto

#26 lore raw

PATCH v3 3/8 doc: remove unnecessary API code from security guide

In reply to Akhil Goyal

Various xform structures are being copied in rte_security guide which can be referred from the API documentation generated by Doxygen. The security guide does not talk about specific details of these xforms and thus are removed from the security guide.

---
 doc/guides/prog_guide/rte_security.rst | 55 +-------------------------
 1 file changed, 1 insertion(+), 54 deletions(-)
doc/guides/prog_guide/rte_security.rst +1 -54
index 127da2e4f..41c95aa52 100644
@@ -1,5 +1,5 @@
 ..  SPDX-License-Identifier: BSD-3-Clause
-    Copyright 2017 NXP
+    Copyright 2017,2020 NXP
 
 
 
@@ -647,63 +647,10 @@ which will be updated in the future.
 
 IPsec related configuration parameters are defined in ``rte_security_ipsec_xform``
 
-.. code-block:: c
-
-    struct rte_security_ipsec_xform {
-        uint32_t spi;
-        /**< SA security parameter index */
-        uint32_t salt;
-        /**< SA salt */
-        struct rte_security_ipsec_sa_options options;
-        /**< various SA options */
-        enum rte_security_ipsec_sa_direction direction;
-        /**< IPsec SA Direction - Egress/Ingress */
-        enum rte_security_ipsec_sa_protocol proto;
-        /**< IPsec SA Protocol - AH/ESP */
-        enum rte_security_ipsec_sa_mode mode;
-        /**< IPsec SA Mode - transport/tunnel */
-        struct rte_security_ipsec_tunnel_param tunnel;
-        /**< Tunnel parameters, NULL for transport mode */
-    };
-
 PDCP related configuration parameters are defined in ``rte_security_pdcp_xform``
 
-.. code-block:: c
-
-    struct rte_security_pdcp_xform {
-        int8_t bearer;	/**< PDCP bearer ID */
-        /** Enable in order delivery, this field shall be set only if
-         * driver/HW is capable. See RTE_SECURITY_PDCP_ORDERING_CAP.
-         */
-        uint8_t en_ordering;
-        /** Notify driver/HW to detect and remove duplicate packets.
-         * This field should be set only when driver/hw is capable.
-         * See RTE_SECURITY_PDCP_DUP_DETECT_CAP.
-         */
-        uint8_t remove_duplicates;
-        /** PDCP mode of operation: Control or data */
-        enum rte_security_pdcp_domain domain;
-        /** PDCP Frame Direction 0:UL 1:DL */
-        enum rte_security_pdcp_direction pkt_dir;
-        /** Sequence number size, 5/7/12/15/18 */
-        enum rte_security_pdcp_sn_size sn_size;
-        /** Starting Hyper Frame Number to be used together with the SN
-         * from the PDCP frames
-         */
-        uint32_t hfn;
-        /** HFN Threshold for key renegotiation */
-        uint32_t hfn_threshold;
-    };
-
 DOCSIS related configuration parameters are defined in ``rte_security_docsis_xform``
 
-.. code-block:: c
-
-    struct rte_security_docsis_xform {
-        enum rte_security_docsis_direction direction;
-        /**< DOCSIS direction */
-    };
-
 
 Security API
 ~~~~~~~~~~~~
Signature · 1 line
2.17.1
#27 lore raw

PATCH v3 4/8 crypto/dpaa2_sec: enable PDCP-SDAP sessions

In reply to Akhil Goyal

Based on the new field in PDCP xform, a decision is made to create a PDCP session with or without SDAP enabled.

---
 drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 30 ++++++++++++++++++---
 1 file changed, 26 insertions(+), 4 deletions(-)
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +26 -4
index c11d02420..f8e8750e4 100644
@@ -36,6 +36,7 @@
 /* RTA header files */
 #include <desc/ipsec.h>
 #include <desc/pdcp.h>
+#include <desc/sdap.h>
 #include <desc/algo.h>
 
 /* Minimum job descriptor consists of a oneword job descriptor HEADER and
@@ -3264,8 +3265,9 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev,
 					&cipherdata, &authdata,
 					0);
 	} else {
-		if (session->dir == DIR_ENC)
-			bufsize = cnstr_shdsc_pdcp_u_plane_encap(
+		if (session->dir == DIR_ENC) {
+			if (pdcp_xform->sdap_enabled)
+				bufsize = cnstr_shdsc_pdcp_sdap_u_plane_encap(
 					priv->flc_desc[0].desc, 1, swap,
 					session->pdcp.sn_size,
 					pdcp_xform->hfn,
@@ -3273,8 +3275,18 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev,
 					pdcp_xform->pkt_dir,
 					pdcp_xform->hfn_threshold,
 					&cipherdata, p_authdata, 0);
-		else if (session->dir == DIR_DEC)
-			bufsize = cnstr_shdsc_pdcp_u_plane_decap(
+			else
+				bufsize = cnstr_shdsc_pdcp_u_plane_encap(
+					priv->flc_desc[0].desc, 1, swap,
+					session->pdcp.sn_size,
+					pdcp_xform->hfn,
+					pdcp_xform->bearer,
+					pdcp_xform->pkt_dir,
+					pdcp_xform->hfn_threshold,
+					&cipherdata, p_authdata, 0);
+		} else if (session->dir == DIR_DEC) {
+			if (pdcp_xform->sdap_enabled)
+				bufsize = cnstr_shdsc_pdcp_sdap_u_plane_decap(
 					priv->flc_desc[0].desc, 1, swap,
 					session->pdcp.sn_size,
 					pdcp_xform->hfn,
@@ -3282,6 +3294,16 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev,
 					pdcp_xform->pkt_dir,
 					pdcp_xform->hfn_threshold,
 					&cipherdata, p_authdata, 0);
+			else
+				bufsize = cnstr_shdsc_pdcp_u_plane_decap(
+					priv->flc_desc[0].desc, 1, swap,
+					session->pdcp.sn_size,
+					pdcp_xform->hfn,
+					pdcp_xform->bearer,
+					pdcp_xform->pkt_dir,
+					pdcp_xform->hfn_threshold,
+					&cipherdata, p_authdata, 0);
+		}
 	}
 
 	if (bufsize < 0) {
Signature · 1 line
2.17.1
#28 lore raw

PATCH v3 5/8 crypto/dpaa_sec: enable PDCP-SDAP sessions

In reply to Akhil Goyal

Based on the new field in PDCP xform, a decision is made to create a PDCP session with or without SDAP enabled.

---
 drivers/crypto/dpaa_sec/dpaa_sec.c | 63 +++++++++++++++++++++---------
 drivers/crypto/dpaa_sec/dpaa_sec.h |  3 +-
 2 files changed, 47 insertions(+), 19 deletions(-)
drivers/crypto/dpaa_sec/dpaa_sec.c +45 -18
index 0495422a4..f69cb5719 100644
@@ -36,6 +36,7 @@
 #include <desc/algo.h>
 #include <desc/ipsec.h>
 #include <desc/pdcp.h>
+#include <desc/sdap.h>
 
 #include <rte_dpaa_bus.h>
 #include <dpaa_sec.h>
@@ -293,24 +294,49 @@ dpaa_sec_prep_pdcp_cdb(dpaa_sec_session *ses)
 					&cipherdata, &authdata,
 					0);
 	} else {
-		if (ses->dir == DIR_ENC)
-			shared_desc_len = cnstr_shdsc_pdcp_u_plane_encap(
-					cdb->sh_desc, 1, swap,
-					ses->pdcp.sn_size,
-					ses->pdcp.hfn,
-					ses->pdcp.bearer,
-					ses->pdcp.pkt_dir,
-					ses->pdcp.hfn_threshold,
-					&cipherdata, p_authdata, 0);
-		else if (ses->dir == DIR_DEC)
-			shared_desc_len = cnstr_shdsc_pdcp_u_plane_decap(
-					cdb->sh_desc, 1, swap,
-					ses->pdcp.sn_size,
-					ses->pdcp.hfn,
-					ses->pdcp.bearer,
-					ses->pdcp.pkt_dir,
-					ses->pdcp.hfn_threshold,
-					&cipherdata, p_authdata, 0);
+		if (ses->dir == DIR_ENC) {
+			if (ses->pdcp.sdap_enabled)
+				shared_desc_len =
+					cnstr_shdsc_pdcp_sdap_u_plane_encap(
+						cdb->sh_desc, 1, swap,
+						ses->pdcp.sn_size,
+						ses->pdcp.hfn,
+						ses->pdcp.bearer,
+						ses->pdcp.pkt_dir,
+						ses->pdcp.hfn_threshold,
+						&cipherdata, p_authdata, 0);
+			else
+				shared_desc_len =
+					cnstr_shdsc_pdcp_u_plane_encap(
+						cdb->sh_desc, 1, swap,
+						ses->pdcp.sn_size,
+						ses->pdcp.hfn,
+						ses->pdcp.bearer,
+						ses->pdcp.pkt_dir,
+						ses->pdcp.hfn_threshold,
+						&cipherdata, p_authdata, 0);
+		} else if (ses->dir == DIR_DEC) {
+			if (ses->pdcp.sdap_enabled)
+				shared_desc_len =
+					cnstr_shdsc_pdcp_sdap_u_plane_decap(
+						cdb->sh_desc, 1, swap,
+						ses->pdcp.sn_size,
+						ses->pdcp.hfn,
+						ses->pdcp.bearer,
+						ses->pdcp.pkt_dir,
+						ses->pdcp.hfn_threshold,
+						&cipherdata, p_authdata, 0);
+			else
+				shared_desc_len =
+					cnstr_shdsc_pdcp_u_plane_decap(
+						cdb->sh_desc, 1, swap,
+						ses->pdcp.sn_size,
+						ses->pdcp.hfn,
+						ses->pdcp.bearer,
+						ses->pdcp.pkt_dir,
+						ses->pdcp.hfn_threshold,
+						&cipherdata, p_authdata, 0);
+		}
 	}
 	return shared_desc_len;
 }
@@ -2949,6 +2975,7 @@ dpaa_sec_set_pdcp_session(struct rte_cryptodev *dev,
 	session->pdcp.hfn = pdcp_xform->hfn;
 	session->pdcp.hfn_threshold = pdcp_xform->hfn_threshold;
 	session->pdcp.hfn_ovd = pdcp_xform->hfn_ovrd;
+	session->pdcp.sdap_enabled = pdcp_xform->sdap_enabled;
 	if (cipher_xform)
 		session->pdcp.hfn_ovd_offset = cipher_xform->iv.offset;
 
drivers/crypto/dpaa_sec/dpaa_sec.h +2 -1
index 2cd50cc8d..ddba52982 100644
@@ -109,7 +109,8 @@ struct sec_pdcp_ctxt {
 	int8_t pkt_dir;/*!< PDCP Frame Direction 0:UL 1:DL*/
 	int8_t hfn_ovd;/*!< Overwrite HFN per packet*/
 	uint8_t sn_size;	/*!< Sequence number size, 5/7/12/15/18 */
-	uint32_t hfn_ovd_offset;/*!< offset from rte_crypto_op at which
+	uint8_t sdap_enabled;	/*!< SDAP header is enabled */
+	uint16_t hfn_ovd_offset;/*!< offset from rte_crypto_op at which
 				 * per packet hfn is stored
 				 */
 	uint32_t hfn;	/*!< Hyper Frame Number */
Signature · 1 line
2.17.1
#29 lore raw

PATCH v3 6/8 test/crypto: Add test vectors for PDCP-SDAP

In reply to Akhil Goyal

From: Franck Lenormand <[email protected]>

The test vectors are structured in a more readable way compared to test vector for PDCP. This structure allows to have all the information about a test vector at the same place.

---
 ...ryptodev_security_pdcp_sdap_test_vectors.h | 3619 +++++++++++++++++
 1 file changed, 3619 insertions(+)
 create mode 100644 app/test/test_cryptodev_security_pdcp_sdap_test_vectors.h
app/test/test_cryptodev_security_pdcp_sdap_test_vectors.h new file +3619 -0
new file mode 100644
index 000000000..f43f693ed
@@ -0,0 +1,3619 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ *
+ * Copyright 2020 NXP
+ */
+
+#ifndef SECURITY_PDCP_SDAP_TEST_VECTOR_H_
+#define SECURITY_PDCP_SDAP_TEST_VECTOR_H_
+
+#include <rte_security.h>
+
+struct pdcp_sdap_test {
+	uint32_t test_idx;
+	struct pdcp_sdap_test_param {
+		uint8_t type;
+		enum rte_security_pdcp_domain domain;
+		enum rte_crypto_cipher_algorithm cipher_alg;
+		uint8_t cipher_key_len;
+		enum rte_crypto_auth_algorithm auth_alg;
+		uint8_t auth_key_len;
+		const char *name;
+	} param;
+	const uint8_t *cipher_key;
+	const uint8_t *auth_key;
+	const uint8_t *data_in;
+	uint32_t in_len;
+	const uint8_t *data_out;
+	uint8_t sn_size;
+	uint32_t hfn;
+	uint32_t hfn_threshold;
+	uint8_t bearer;
+	uint8_t packet_direction;
+};
+
+static const struct pdcp_sdap_test list_pdcp_sdap_tests[] = {
+	/**************************** 7bit ************************************/
+
+	/************************ null + null ****************************/
+
+	{
+		.test_idx = 1,
+		.param = {.name = "PDCP-SDAP Uplane: 7b SN, NULL_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					 0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					 0x42, 0x14, 0x07, 0xe8 },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 2,
+		.param = {.name = "PDCP-SDAP Uplane: 7b SN, NULL_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					 0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					 0x42, 0x14, 0x07, 0xe8 },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/************************ aes-ctr + null ****************************/
+
+	{
+		.test_idx = 3,
+		.param = {.name = "PDCP-SDAP Uplane: 7b SN, AES-CTR_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0x3e, 0x79, 0xa9, 0xc0,
+					 0xec, 0xdd, 0x9e, 0x8f, 0x91, 0x3f,
+					 0xa1, 0x6e, 0x59, 0xed },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/************************ aes-ctr + null ****************************/
+
+	{
+		.test_idx = 4,
+		.param = {.name =
+				"PDCP-SDAP Uplane: 7b SN, AES-CTR_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0x31, 0x55, 0x0b, 0x16,
+					 0xb2, 0xe9, 0x3b, 0x87, 0x36, 0xd9,
+					 0x17, 0xad, 0x90, 0x3f },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 5,
+		.param = {.name = "PDCP-SDAP Uplane: 7b SN, SNOW-f8_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0xb1, 0x17, 0xbe, 0xb1,
+					 0x60, 0xbb, 0xd6, 0x3f, 0x36, 0x96,
+					 0x96, 0xcd, 0x2d, 0xa7 },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 6,
+		.param = {.name =
+				"PDCP-SDAP Uplane: 7b SN, SNOW-f8_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0xd3, 0x89, 0x03, 0x1e,
+					 0x7d, 0x29, 0xfc, 0x77, 0x94, 0x3c,
+					 0x99, 0x72, 0x3c, 0xe8 },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/**************************** zuc + null ****************************/
+
+	{
+		.test_idx = 7,
+		.param = {.name = "PDCP-SDAP Uplane: 7b SN, ZUC_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0xfa, 0xad, 0x58, 0x43,
+					 0x6f, 0xd9, 0x8f, 0xaa, 0x06, 0x3e,
+					 0xdc, 0x52, 0x42, 0x26 },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** zuc + null ****************************/
+
+	{
+		.test_idx = 8,
+		.param = {.name = "PDCP-SDAP Uplane: 7b SN, ZUC_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0xad, 0x9c, 0x44, 0x1f, 0x89,
+					0x0b, 0x38, 0xc4, 0x57, 0xa4, 0x9d,
+					0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 16,
+		.data_out = (uint8_t[]){ 0x8b, 0xad, 0xd8, 0x0a, 0x12, 0xe9,
+					 0x7f, 0xab, 0x63, 0x57, 0x99, 0xf2,
+					 0x39, 0x18, 0x32, 0xdc },
+		.sn_size = 7,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/***************************** 12bit **********************************/
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 9,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 10,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/************************ null + aes-cmac ****************************/
+
+	{
+		.test_idx = 11,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd, 0x3f, 0x71, 0x26, 0x2e },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/************************ null + aes-cmac ****************************/
+
+	{
+		.test_idx = 12,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd, 0x92, 0xae, 0xfe, 0xf8 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** null + snow ****************************/
+
+	{
+		.test_idx = 13,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and SNOW-f9_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd, 0x74, 0xb8, 0x27, 0x96 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + snow ****************************/
+
+	{
+		.test_idx = 14,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and SNOW-f9_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd, 0x3d, 0x8b, 0x0d, 0xa8 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** null + zuc ****************************/
+
+	{
+		.test_idx = 15,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and ZUC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd, 0x54, 0xef, 0x25, 0xc3 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + zuc ****************************/
+
+	{
+		.test_idx = 16,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, NULL_ENC and ZUC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd, 0xf7, 0x16, 0xd4, 0x94 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + null *************************/
+
+	{
+		.test_idx = 17,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x69, 0xf2, 0x5d, 0xd7,
+				     0xf5, 0xc1, 0xf7, 0x1e, 0x47, 0x5d, 0xce,
+				     0xbe, 0x48, 0xb5, 0x0b, 0x6a, 0x73, 0x9a,
+				     0x5a, 0xa3, 0x06, 0x47, 0x40, 0x96, 0xcf,
+				     0x86, 0x98, 0x3d, 0x6f, 0xcf, 0x17, 0x41,
+				     0xa5, 0x13, 0xa5, 0x35, 0x9a, 0xa6, 0x24,
+				     0xc9, 0x7f, 0x11, 0x79, 0x24, 0x44, 0xe8,
+				     0x39, 0x11, 0x03, 0x0a, 0x9d, 0x4f, 0xe2,
+				     0x95, 0x9f, 0x47, 0x73, 0x37, 0x83, 0x8c,
+				     0x23, 0xfa, 0x16, 0x06, 0x86, 0x33, 0x3f },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/************************* aes-ctr + null ****************************/
+
+	{
+		.test_idx = 18,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x22, 0x2a, 0x8f, 0x86,
+				     0x25, 0x92, 0xcd, 0xa9, 0xa1, 0xa0, 0xf5,
+				     0x86, 0x0d, 0xe8, 0xe4, 0xef, 0xe0, 0x78,
+				     0x45, 0x7c, 0x0c, 0x41, 0x5c, 0x8f, 0x07,
+				     0x6f, 0xec, 0x2f, 0x99, 0x8b, 0xfd, 0x9c,
+				     0x4a, 0x6a, 0xe4, 0x5d, 0xd3, 0x3c, 0x40,
+				     0x35, 0xff, 0x7a, 0x42, 0xac, 0x94, 0x21,
+				     0x60, 0x1c, 0x13, 0xcc, 0x7e, 0x6b, 0x2f,
+				     0x6f, 0x91, 0x89, 0xc6, 0xd4, 0xe6, 0x17,
+				     0xae, 0xde, 0xfb, 0x02, 0xcc, 0xa7, 0x33 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/********************* aes-ctr + aes-cmac ****************************/
+
+	{
+		.test_idx = 19,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x69, 0xf2, 0x5d, 0xd7,
+				     0xf5, 0xc1, 0xf7, 0x1e, 0x47, 0x5d, 0xce,
+				     0xbe, 0x48, 0xb5, 0x0b, 0x6a, 0x73, 0x9a,
+				     0x5a, 0xa3, 0x06, 0x47, 0x40, 0x96, 0xcf,
+				     0x86, 0x98, 0x3d, 0x6f, 0xcf, 0x17, 0x41,
+				     0xa5, 0x13, 0xa5, 0x35, 0x9a, 0xa6, 0x24,
+				     0xc9, 0x7f, 0x11, 0x79, 0x24, 0x44, 0xe8,
+				     0x39, 0x11, 0x03, 0x0a, 0x9d, 0x4f, 0xe2,
+				     0x95, 0x9f, 0x47, 0x73, 0x37, 0x83, 0x8c,
+				     0x23, 0xfa, 0x16, 0x39, 0xf7, 0x15, 0x11 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/********************* aes-ctr + aes-cmac ****************************/
+
+	{
+		.test_idx = 20,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x22, 0x2a, 0x8f, 0x86,
+				     0x25, 0x92, 0xcd, 0xa9, 0xa1, 0xa0, 0xf5,
+				     0x86, 0x0d, 0xe8, 0xe4, 0xef, 0xe0, 0x78,
+				     0x45, 0x7c, 0x0c, 0x41, 0x5c, 0x8f, 0x07,
+				     0x6f, 0xec, 0x2f, 0x99, 0x8b, 0xfd, 0x9c,
+				     0x4a, 0x6a, 0xe4, 0x5d, 0xd3, 0x3c, 0x40,
+				     0x35, 0xff, 0x7a, 0x42, 0xac, 0x94, 0x21,
+				     0x60, 0x1c, 0x13, 0xcc, 0x7e, 0x6b, 0x2f,
+				     0x6f, 0x91, 0x89, 0xc6, 0xd4, 0xe6, 0x17,
+				     0xae, 0xde, 0xfb, 0x90, 0x62, 0x59, 0xcb },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/************************* aes-ctr + snow ****************************/
+
+	{
+		.test_idx = 21,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and SNOW-f9_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x69, 0xf2, 0x5d, 0xd7,
+				     0xf5, 0xc1, 0xf7, 0x1e, 0x47, 0x5d, 0xce,
+				     0xbe, 0x48, 0xb5, 0x0b, 0x6a, 0x73, 0x9a,
+				     0x5a, 0xa3, 0x06, 0x47, 0x40, 0x96, 0xcf,
+				     0x86, 0x98, 0x3d, 0x6f, 0xcf, 0x17, 0x41,
+				     0xa5, 0x13, 0xa5, 0x35, 0x9a, 0xa6, 0x24,
+				     0xc9, 0x7f, 0x11, 0x79, 0x24, 0x44, 0xe8,
+				     0x39, 0x11, 0x03, 0x0a, 0x9d, 0x4f, 0xe2,
+				     0x95, 0x9f, 0x47, 0x73, 0x37, 0x83, 0x8c,
+				     0x23, 0xfa, 0x16, 0x72, 0x3e, 0x14, 0xa9 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/************************* aes-ctr + snow ****************************/
+
+	{
+		.test_idx = 22,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and SNOW-f9_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x22, 0x2a, 0x8f, 0x86,
+				     0x25, 0x92, 0xcd, 0xa9, 0xa1, 0xa0, 0xf5,
+				     0x86, 0x0d, 0xe8, 0xe4, 0xef, 0xe0, 0x78,
+				     0x45, 0x7c, 0x0c, 0x41, 0x5c, 0x8f, 0x07,
+				     0x6f, 0xec, 0x2f, 0x99, 0x8b, 0xfd, 0x9c,
+				     0x4a, 0x6a, 0xe4, 0x5d, 0xd3, 0x3c, 0x40,
+				     0x35, 0xff, 0x7a, 0x42, 0xac, 0x94, 0x21,
+				     0x60, 0x1c, 0x13, 0xcc, 0x7e, 0x6b, 0x2f,
+				     0x6f, 0x91, 0x89, 0xc6, 0xd4, 0xe6, 0x17,
+				     0xae, 0xde, 0xfb, 0x3f, 0x47, 0xaa, 0x9b },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + zuc **************************/
+
+	{
+		.test_idx = 23,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and ZUC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){
+				0x50, 0x01, 0x86, 0x69, 0xf2, 0x5d, 0xd7, 0xf5,
+				0xc1, 0xf7, 0x1e, 0x47, 0x5d, 0xce, 0xbe, 0x48,
+				0xb5, 0x0b, 0x6a, 0x73, 0x9a, 0x5a, 0xa3, 0x06,
+				0x47, 0x40, 0x96, 0xcf, 0x86, 0x98, 0x3d, 0x6f,
+				0xcf, 0x17, 0x41, 0xa5, 0x13, 0xa5, 0x35, 0x9a,
+				0xa6, 0x24, 0xc9, 0x7f, 0x11, 0x79, 0x24, 0x44,
+				0xe8, 0x39, 0x11, 0x03, 0x0a, 0x9d, 0x4f, 0xe2,
+				0x95, 0x9f, 0x47, 0x73, 0x37, 0x83, 0x8c, 0x23,
+				0xfa, 0x16, 0x52, 0x69, 0x16, 0xfc,
+			},
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** aes-ctr + zuc **************************/
+
+	{
+		.test_idx = 24,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, AES-CTR_ENC and ZUC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x22, 0x2a, 0x8f, 0x86,
+				     0x25, 0x92, 0xcd, 0xa9, 0xa1, 0xa0, 0xf5,
+				     0x86, 0x0d, 0xe8, 0xe4, 0xef, 0xe0, 0x78,
+				     0x45, 0x7c, 0x0c, 0x41, 0x5c, 0x8f, 0x07,
+				     0x6f, 0xec, 0x2f, 0x99, 0x8b, 0xfd, 0x9c,
+				     0x4a, 0x6a, 0xe4, 0x5d, 0xd3, 0x3c, 0x40,
+				     0x35, 0xff, 0x7a, 0x42, 0xac, 0x94, 0x21,
+				     0x60, 0x1c, 0x13, 0xcc, 0x7e, 0x6b, 0x2f,
+				     0x6f, 0x91, 0x89, 0xc6, 0xd4, 0xe6, 0x17,
+				     0xae, 0xde, 0xfb, 0xf5, 0xda, 0x73, 0xa7 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 25,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xe8, 0x8c, 0x96, 0x38,
+				     0x6e, 0xe4, 0x1f, 0xb9, 0x85, 0x61, 0x2e,
+				     0x64, 0x31, 0x22, 0x97, 0x5b, 0xf6, 0x40,
+				     0x08, 0x65, 0xc3, 0xfa, 0x72, 0xd2, 0x22,
+				     0x37, 0x8e, 0x4d, 0xc1, 0xac, 0x7c, 0x7d,
+				     0x03, 0xf1, 0x50, 0x9f, 0x97, 0x67, 0x4e,
+				     0x23, 0x80, 0xcc, 0x5f, 0xfd, 0x74, 0xb1,
+				     0xfb, 0xe1, 0xea, 0x6f, 0xf9, 0x9d, 0xf3,
+				     0x90, 0x02, 0x6e, 0xf1, 0xf8, 0x95, 0x97,
+				     0xbd, 0xba, 0x08, 0x06, 0x12, 0x07, 0xac },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 26,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xd2, 0xc0, 0x3a, 0x41,
+				     0xbc, 0x0b, 0x95, 0xa4, 0x57, 0x3e, 0x36,
+				     0x10, 0xb2, 0xff, 0x48, 0x1f, 0x10, 0xa8,
+				     0x06, 0x42, 0xc5, 0xa2, 0x33, 0xed, 0x2e,
+				     0x37, 0x23, 0x04, 0x06, 0x84, 0xb9, 0x4c,
+				     0x1b, 0x17, 0xf3, 0x16, 0xc4, 0xd1, 0xa8,
+				     0x35, 0xd2, 0x31, 0x1a, 0xb8, 0x33, 0xc7,
+				     0x9c, 0xa4, 0xa4, 0x9b, 0x20, 0xc6, 0x47,
+				     0xdd, 0xe5, 0xa3, 0x4b, 0x9e, 0x66, 0xde,
+				     0xc9, 0x0a, 0x64, 0x1c, 0xd7, 0x20, 0x52 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + aes-cmac ************************/
+
+	{
+		.test_idx = 27,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xe8, 0x8c, 0x96, 0x38,
+				     0x6e, 0xe4, 0x1f, 0xb9, 0x85, 0x61, 0x2e,
+				     0x64, 0x31, 0x22, 0x97, 0x5b, 0xf6, 0x40,
+				     0x08, 0x65, 0xc3, 0xfa, 0x72, 0xd2, 0x22,
+				     0x37, 0x8e, 0x4d, 0xc1, 0xac, 0x7c, 0x7d,
+				     0x03, 0xf1, 0x50, 0x9f, 0x97, 0x67, 0x4e,
+				     0x23, 0x80, 0xcc, 0x5f, 0xfd, 0x74, 0xb1,
+				     0xfb, 0xe1, 0xea, 0x6f, 0xf9, 0x9d, 0xf3,
+				     0x90, 0x02, 0x6e, 0xf1, 0xf8, 0x95, 0x97,
+				     0xbd, 0xba, 0x08, 0x39, 0x63, 0x21, 0x82 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + aes-cmac ************************/
+
+	{
+		.test_idx = 28,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xd2, 0xc0, 0x3a, 0x41,
+				     0xbc, 0x0b, 0x95, 0xa4, 0x57, 0x3e, 0x36,
+				     0x10, 0xb2, 0xff, 0x48, 0x1f, 0x10, 0xa8,
+				     0x06, 0x42, 0xc5, 0xa2, 0x33, 0xed, 0x2e,
+				     0x37, 0x23, 0x04, 0x06, 0x84, 0xb9, 0x4c,
+				     0x1b, 0x17, 0xf3, 0x16, 0xc4, 0xd1, 0xa8,
+				     0x35, 0xd2, 0x31, 0x1a, 0xb8, 0x33, 0xc7,
+				     0x9c, 0xa4, 0xa4, 0x9b, 0x20, 0xc6, 0x47,
+				     0xdd, 0xe5, 0xa3, 0x4b, 0x9e, 0x66, 0xde,
+				     0xc9, 0x0a, 0x64, 0x8e, 0x79, 0xde, 0xaa },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + snow ****************************/
+
+	{
+		.test_idx = 29,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and SNOW-f9_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xe8, 0x8c, 0x96, 0x38,
+				     0x6e, 0xe4, 0x1f, 0xb9, 0x85, 0x61, 0x2e,
+				     0x64, 0x31, 0x22, 0x97, 0x5b, 0xf6, 0x40,
+				     0x08, 0x65, 0xc3, 0xfa, 0x72, 0xd2, 0x22,
+				     0x37, 0x8e, 0x4d, 0xc1, 0xac, 0x7c, 0x7d,
+				     0x03, 0xf1, 0x50, 0x9f, 0x97, 0x67, 0x4e,
+				     0x23, 0x80, 0xcc, 0x5f, 0xfd, 0x74, 0xb1,
+				     0xfb, 0xe1, 0xea, 0x6f, 0xf9, 0x9d, 0xf3,
+				     0x90, 0x02, 0x6e, 0xf1, 0xf8, 0x95, 0x97,
+				     0xbd, 0xba, 0x08, 0x72, 0xaa, 0x20, 0x3a },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + snow ****************************/
+
+	{
+		.test_idx = 30,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and SNOW-f9_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xd2, 0xc0, 0x3a, 0x41,
+				     0xbc, 0x0b, 0x95, 0xa4, 0x57, 0x3e, 0x36,
+				     0x10, 0xb2, 0xff, 0x48, 0x1f, 0x10, 0xa8,
+				     0x06, 0x42, 0xc5, 0xa2, 0x33, 0xed, 0x2e,
+				     0x37, 0x23, 0x04, 0x06, 0x84, 0xb9, 0x4c,
+				     0x1b, 0x17, 0xf3, 0x16, 0xc4, 0xd1, 0xa8,
+				     0x35, 0xd2, 0x31, 0x1a, 0xb8, 0x33, 0xc7,
+				     0x9c, 0xa4, 0xa4, 0x9b, 0x20, 0xc6, 0x47,
+				     0xdd, 0xe5, 0xa3, 0x4b, 0x9e, 0x66, 0xde,
+				     0xc9, 0x0a, 0x64, 0x21, 0x5c, 0x2d, 0xfa },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + zuc ****************************/
+
+	{
+		.test_idx = 31,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and ZUC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xe8, 0x8c, 0x96, 0x38,
+				     0x6e, 0xe4, 0x1f, 0xb9, 0x85, 0x61, 0x2e,
+				     0x64, 0x31, 0x22, 0x97, 0x5b, 0xf6, 0x40,
+				     0x08, 0x65, 0xc3, 0xfa, 0x72, 0xd2, 0x22,
+				     0x37, 0x8e, 0x4d, 0xc1, 0xac, 0x7c, 0x7d,
+				     0x03, 0xf1, 0x50, 0x9f, 0x97, 0x67, 0x4e,
+				     0x23, 0x80, 0xcc, 0x5f, 0xfd, 0x74, 0xb1,
+				     0xfb, 0xe1, 0xea, 0x6f, 0xf9, 0x9d, 0xf3,
+				     0x90, 0x02, 0x6e, 0xf1, 0xf8, 0x95, 0x97,
+				     0xbd, 0xba, 0x08, 0x52, 0xfd, 0x22, 0x6f },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + zuc ****************************/
+
+	{
+		.test_idx = 32,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, SNOW-f8_ENC and ZUC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xd2, 0xc0, 0x3a, 0x41,
+				     0xbc, 0x0b, 0x95, 0xa4, 0x57, 0x3e, 0x36,
+				     0x10, 0xb2, 0xff, 0x48, 0x1f, 0x10, 0xa8,
+				     0x06, 0x42, 0xc5, 0xa2, 0x33, 0xed, 0x2e,
+				     0x37, 0x23, 0x04, 0x06, 0x84, 0xb9, 0x4c,
+				     0x1b, 0x17, 0xf3, 0x16, 0xc4, 0xd1, 0xa8,
+				     0x35, 0xd2, 0x31, 0x1a, 0xb8, 0x33, 0xc7,
+				     0x9c, 0xa4, 0xa4, 0x9b, 0x20, 0xc6, 0x47,
+				     0xdd, 0xe5, 0xa3, 0x4b, 0x9e, 0x66, 0xde,
+				     0xc9, 0x0a, 0x64, 0xeb, 0xc1, 0xf4, 0xc6 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** zuc + null ****************************/
+
+	{
+		.test_idx = 33,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x79, 0xdb, 0x02, 0x27,
+				     0xa0, 0x85, 0x82, 0x87, 0x6b, 0x35, 0x2b,
+				     0xe1, 0x96, 0x5b, 0xfd, 0x67, 0xe1, 0x67,
+				     0x69, 0x17, 0x5b, 0x0a, 0x8f, 0xb8, 0x37,
+				     0xeb, 0xb8, 0x3f, 0x13, 0x7b, 0x88, 0x40,
+				     0x29, 0x67, 0x21, 0xf9, 0xc0, 0xaf, 0xca,
+				     0xda, 0x94, 0x61, 0x8e, 0x2d, 0x7a, 0x5d,
+				     0x64, 0x0f, 0x4a, 0xc7, 0x7c, 0x9d, 0x56,
+				     0x5a, 0x2a, 0xcb, 0xff, 0x79, 0x07, 0xa5,
+				     0xaf, 0x96, 0x5c, 0x89, 0x1d, 0xcd, 0x3a },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** zuc + null ****************************/
+
+	{
+		.test_idx = 34,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x2c, 0x0f, 0xc1, 0x08,
+				     0x2e, 0xa7, 0x97, 0xd2, 0x6c, 0x17, 0x8f,
+				     0x22, 0x1f, 0x99, 0x1b, 0x48, 0x04, 0x29,
+				     0x54, 0x3f, 0x07, 0x01, 0xda, 0x19, 0x59,
+				     0x74, 0x17, 0x45, 0x46, 0x7e, 0x6c, 0x0b,
+				     0xc5, 0x6e, 0x90, 0xa7, 0x1e, 0x8d, 0x01,
+				     0x04, 0xf4, 0xfe, 0xe6, 0xf7, 0x53, 0x51,
+				     0x70, 0x10, 0x56, 0x83, 0x59, 0xb5, 0x64,
+				     0x0b, 0xa6, 0x2e, 0xa5, 0x03, 0x62, 0x13,
+				     0x91, 0xaf, 0x24, 0x20, 0x2c, 0x05, 0xdf },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** zuc + aes-cmac *************************/
+
+	{
+		.test_idx = 35,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x79, 0xdb, 0x02, 0x27,
+				     0xa0, 0x85, 0x82, 0x87, 0x6b, 0x35, 0x2b,
+				     0xe1, 0x96, 0x5b, 0xfd, 0x67, 0xe1, 0x67,
+				     0x69, 0x17, 0x5b, 0x0a, 0x8f, 0xb8, 0x37,
+				     0xeb, 0xb8, 0x3f, 0x13, 0x7b, 0x88, 0x40,
+				     0x29, 0x67, 0x21, 0xf9, 0xc0, 0xaf, 0xca,
+				     0xda, 0x94, 0x61, 0x8e, 0x2d, 0x7a, 0x5d,
+				     0x64, 0x0f, 0x4a, 0xc7, 0x7c, 0x9d, 0x56,
+				     0x5a, 0x2a, 0xcb, 0xff, 0x79, 0x07, 0xa5,
+				     0xaf, 0x96, 0x5c, 0xb6, 0x6c, 0xeb, 0x14 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** zuc + aes-cmac *************************/
+
+	{
+		.test_idx = 36,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x2c, 0x0f, 0xc1, 0x08,
+				     0x2e, 0xa7, 0x97, 0xd2, 0x6c, 0x17, 0x8f,
+				     0x22, 0x1f, 0x99, 0x1b, 0x48, 0x04, 0x29,
+				     0x54, 0x3f, 0x07, 0x01, 0xda, 0x19, 0x59,
+				     0x74, 0x17, 0x45, 0x46, 0x7e, 0x6c, 0x0b,
+				     0xc5, 0x6e, 0x90, 0xa7, 0x1e, 0x8d, 0x01,
+				     0x04, 0xf4, 0xfe, 0xe6, 0xf7, 0x53, 0x51,
+				     0x70, 0x10, 0x56, 0x83, 0x59, 0xb5, 0x64,
+				     0x0b, 0xa6, 0x2e, 0xa5, 0x03, 0x62, 0x13,
+				     0x91, 0xaf, 0x24, 0xb2, 0x82, 0xfb, 0x27 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** zuc + snow ****************************/
+
+	{
+		.test_idx = 37,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and SNOW-f9_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x79, 0xdb, 0x02, 0x27,
+				     0xa0, 0x85, 0x82, 0x87, 0x6b, 0x35, 0x2b,
+				     0xe1, 0x96, 0x5b, 0xfd, 0x67, 0xe1, 0x67,
+				     0x69, 0x17, 0x5b, 0x0a, 0x8f, 0xb8, 0x37,
+				     0xeb, 0xb8, 0x3f, 0x13, 0x7b, 0x88, 0x40,
+				     0x29, 0x67, 0x21, 0xf9, 0xc0, 0xaf, 0xca,
+				     0xda, 0x94, 0x61, 0x8e, 0x2d, 0x7a, 0x5d,
+				     0x64, 0x0f, 0x4a, 0xc7, 0x7c, 0x9d, 0x56,
+				     0x5a, 0x2a, 0xcb, 0xff, 0x79, 0x07, 0xa5,
+				     0xaf, 0x96, 0x5c, 0xfd, 0xa5, 0xea, 0xac },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** zuc + snow ****************************/
+
+	{
+		.test_idx = 38,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and SNOW-f9_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x2c, 0x0f, 0xc1, 0x08,
+				     0x2e, 0xa7, 0x97, 0xd2, 0x6c, 0x17, 0x8f,
+				     0x22, 0x1f, 0x99, 0x1b, 0x48, 0x04, 0x29,
+				     0x54, 0x3f, 0x07, 0x01, 0xda, 0x19, 0x59,
+				     0x74, 0x17, 0x45, 0x46, 0x7e, 0x6c, 0x0b,
+				     0xc5, 0x6e, 0x90, 0xa7, 0x1e, 0x8d, 0x01,
+				     0x04, 0xf4, 0xfe, 0xe6, 0xf7, 0x53, 0x51,
+				     0x70, 0x10, 0x56, 0x83, 0x59, 0xb5, 0x64,
+				     0x0b, 0xa6, 0x2e, 0xa5, 0x03, 0x62, 0x13,
+				     0x91, 0xaf, 0x24, 0x1d, 0xa7, 0x08, 0x77 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** zuc + zuc ****************************/
+
+	{
+		.test_idx = 39,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and ZUC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x79, 0xdb, 0x02, 0x27,
+				     0xa0, 0x85, 0x82, 0x87, 0x6b, 0x35, 0x2b,
+				     0xe1, 0x96, 0x5b, 0xfd, 0x67, 0xe1, 0x67,
+				     0x69, 0x17, 0x5b, 0x0a, 0x8f, 0xb8, 0x37,
+				     0xeb, 0xb8, 0x3f, 0x13, 0x7b, 0x88, 0x40,
+				     0x29, 0x67, 0x21, 0xf9, 0xc0, 0xaf, 0xca,
+				     0xda, 0x94, 0x61, 0x8e, 0x2d, 0x7a, 0x5d,
+				     0x64, 0x0f, 0x4a, 0xc7, 0x7c, 0x9d, 0x56,
+				     0x5a, 0x2a, 0xcb, 0xff, 0x79, 0x07, 0xa5,
+				     0xaf, 0x96, 0x5c, 0xdd, 0xf2, 0xe8, 0xf9 },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** zuc + zuc ****************************/
+
+	{
+		.test_idx = 40,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 12b SN, ZUC_ENC and ZUC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x40, 0x19, 0xe2, 0x99, 0x16, 0xc3,
+					   0x7e, 0x9b, 0xa6, 0x8f, 0x57, 0xbe,
+					   0x97, 0xfd, 0x02, 0xcb },
+		.auth_key = (uint8_t[]){ 0x4d, 0x4b, 0x2b, 0x1e, 0x39, 0x60,
+					 0x0a, 0x98, 0xc1, 0x3c, 0x98, 0x82,
+					 0xdc, 0xb6, 0xc2, 0x36 },
+		.data_in =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0xb8, 0xf8, 0xdb, 0x2d,
+				     0x3f, 0x23, 0x82, 0x53, 0xfd, 0x37, 0xde,
+				     0x88, 0x63, 0x08, 0x4f, 0xd3, 0x71, 0xfb,
+				     0xeb, 0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf,
+				     0x3f, 0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3,
+				     0x9c, 0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a,
+				     0x15, 0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee,
+				     0x2c, 0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b,
+				     0x01, 0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4,
+				     0x7a, 0xf9, 0xdd },
+		.in_len = 66,
+		.data_out =
+			(uint8_t[]){ 0x50, 0x01, 0x86, 0x2c, 0x0f, 0xc1, 0x08,
+				     0x2e, 0xa7, 0x97, 0xd2, 0x6c, 0x17, 0x8f,
+				     0x22, 0x1f, 0x99, 0x1b, 0x48, 0x04, 0x29,
+				     0x54, 0x3f, 0x07, 0x01, 0xda, 0x19, 0x59,
+				     0x74, 0x17, 0x45, 0x46, 0x7e, 0x6c, 0x0b,
+				     0xc5, 0x6e, 0x90, 0xa7, 0x1e, 0x8d, 0x01,
+				     0x04, 0xf4, 0xfe, 0xe6, 0xf7, 0x53, 0x51,
+				     0x70, 0x10, 0x56, 0x83, 0x59, 0xb5, 0x64,
+				     0x0b, 0xa6, 0x2e, 0xa5, 0x03, 0x62, 0x13,
+				     0x91, 0xaf, 0x24, 0xd7, 0x3a, 0xd1, 0x4b },
+		.sn_size = 12,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/***************************** 15bit **********************************/
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 41,
+		.param = {.name = "PDCP-SDAP Uplane: 15b SN, NULL_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					 0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					 0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 42,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 15b SN, NULL_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					 0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					 0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + null *************************/
+
+	{
+		.test_idx = 43,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 15b SN, AES-CTR_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x90, 0xf6, 0xf8,
+					 0xf2, 0x2b, 0xb2, 0x40, 0x40, 0x9c,
+					 0xd6, 0x31, 0x66, 0x62, 0xcc },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** aes-ctr + null *************************/
+
+	{
+		.test_idx = 44,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 15b SN, AES-CTR_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0xf6, 0x2a, 0x78,
+					 0x25, 0x3c, 0xf3, 0x23, 0x56, 0x1e,
+					 0x0e, 0xea, 0x2a, 0x75, 0x4c },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 45,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 15b SN, SNOW-f8_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x8f, 0xaa, 0x5e,
+					 0xee, 0x10, 0xdf, 0x4d, 0xdc, 0x2e,
+					 0x64, 0x23, 0x36, 0x3f, 0x75 },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 46,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 15b SN, SNOW-f8_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x3a, 0x88, 0xa8,
+					 0x69, 0xb5, 0xd0, 0x97, 0x3c, 0xfb,
+					 0xe1, 0x29, 0x49, 0xd9, 0x80 },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/**************************** zuc + null ****************************/
+
+	{
+		.test_idx = 47,
+		.param = {.name = "PDCP-SDAP Uplane: 15b SN, ZUC_ENC Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x30, 0xd2, 0xe1,
+					 0xef, 0x7a, 0xd6, 0x63, 0xb1, 0xc4,
+					 0x92, 0x83, 0x28, 0xbe, 0x39 },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 0,
+	},
+
+	/**************************** zuc + null ****************************/
+
+	{
+		.test_idx = 48,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 15b SN, ZUC_ENC Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_ZUC_EEA3,
+			.auth_alg = 0,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x5a, 0xcb, 0x1d, 0x64, 0x4c, 0x0d,
+					   0x51, 0x20, 0x4e, 0xa5, 0xf1, 0x45,
+					   0x10, 0x10, 0xd8, 0x52 },
+		.auth_key = NULL,
+		.data_in = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x9c, 0x44, 0x1f,
+					0x89, 0x0b, 0x38, 0xc4, 0x57, 0xa4,
+					0x9d, 0x42, 0x14, 0x07, 0xe8 },
+		.in_len = 17,
+		.data_out = (uint8_t[]){ 0x8b, 0x26, 0xad, 0x92, 0xc2, 0x45,
+					 0xb4, 0x75, 0x24, 0x76, 0x26, 0xaa,
+					 0xe1, 0xf4, 0x45, 0xce, 0xfd },
+		.sn_size = 15,
+		.hfn = 0xfa557,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x3,
+		.packet_direction = 1,
+	},
+
+	/***************************** 18bit **********************************/
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 49,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xF8, 0x00, 0x00, 0xF8, 0xDB, 0x2D, 0x3F,
+				     0x23, 0x82, 0x53, 0xFD, 0x37, 0xDE, 0x88,
+				     0x63, 0x08, 0x4F, 0xD3, 0x71, 0xFB, 0xEB,
+				     0x35, 0xF3, 0x64, 0xD3, 0x5E, 0xAF, 0x3F,
+				     0x57, 0xC2, 0xE2, 0x91, 0x91, 0xA3, 0x9C,
+				     0xE6, 0x30, 0x69, 0x70, 0x33, 0x8A, 0x15,
+				     0xD0, 0x36, 0x47, 0x0E, 0x8F, 0xEE, 0x2C,
+				     0x96, 0x0C, 0xD7, 0x7D, 0x70, 0x1B, 0x01,
+				     0x7F, 0x96, 0x46, 0x53, 0xB0, 0xA4, 0x7A,
+				     0xF9, 0xDD, 0xCC, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xF8, 0x00, 0x00, 0xF8, 0xDB, 0x2D, 0x3F,
+				     0x23, 0x82, 0x53, 0xFD, 0x37, 0xDE, 0x88,
+				     0x63, 0x08, 0x4F, 0xD3, 0x71, 0xFB, 0xEB,
+				     0x35, 0xF3, 0x64, 0xD3, 0x5E, 0xAF, 0x3F,
+				     0x57, 0xC2, 0xE2, 0x91, 0x91, 0xA3, 0x9C,
+				     0xE6, 0x30, 0x69, 0x70, 0x33, 0x8A, 0x15,
+				     0xD0, 0x36, 0x47, 0x0E, 0x8F, 0xEE, 0x2C,
+				     0x96, 0x0C, 0xD7, 0x7D, 0x70, 0x1B, 0x01,
+				     0x7F, 0x96, 0x46, 0x53, 0xB0, 0xA4, 0x7A,
+				     0xF9, 0xDD, 0xCC, 0x69 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + null ****************************/
+
+	{
+		.test_idx = 50,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** null + aes-cmac ************************/
+
+	{
+		.test_idx = 51,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69, 0x70, 0x3e, 0x09,
+				     0xc7 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + aes-cmac ************************/
+
+	{
+		.test_idx = 52,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69, 0x55, 0x89, 0xe3,
+				     0x52 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** null + snow ****************************/
+
+	{
+		.test_idx = 53,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and SNOW-f9_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69, 0x00, 0x45, 0x13,
+				     0x4c },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + snow ****************************/
+
+	{
+		.test_idx = 54,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and SNOW-f9_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69, 0x73, 0x53, 0x85,
+				     0x5c },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** null + zuc ****************************/
+
+	{
+		.test_idx = 55,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and ZUC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69, 0x00, 0x8b, 0x37,
+				     0x29 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** null + zuc ****************************/
+
+	{
+		.test_idx = 56,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, NULL_ENC and ZUC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_NULL,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69, 0xa5, 0xd4, 0xca,
+				     0xc5 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + null ************************/
+
+	{
+		.test_idx = 57,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x78, 0xee, 0x01,
+				     0x4c, 0x79, 0xc7, 0x14, 0x79, 0x2c, 0x1b,
+				     0x8a, 0xd0, 0x17, 0xb4, 0xb4, 0xfe, 0xa7,
+				     0x17, 0x9a, 0x93, 0x5d, 0xad, 0x27, 0x8a,
+				     0x56, 0xd7, 0x36, 0xec, 0x8d, 0x74, 0xff,
+				     0x7c, 0x93, 0x4d, 0x89, 0x00, 0x30, 0x40,
+				     0x37, 0xfb, 0x98, 0x1b, 0x06, 0x1a, 0x76,
+				     0xf8, 0x07, 0x72, 0xe9, 0xa2, 0x89, 0x47,
+				     0x95, 0x8f, 0x8f, 0x4e, 0x45, 0x55, 0xd6,
+				     0x0e, 0xf4, 0xe7, 0xe8, 0x08, 0xe3, 0xc8,
+				     0x55 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** aes-ctr + null *************************/
+
+	{
+		.test_idx = 58,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xbf, 0x21, 0xc9,
+				     0x7d, 0x02, 0x8d, 0xf7, 0xf7, 0x80, 0x50,
+				     0x60, 0x32, 0x09, 0xb8, 0x69, 0x48, 0xab,
+				     0x58, 0xf0, 0xd9, 0x63, 0x63, 0x36, 0x01,
+				     0x3f, 0x95, 0xc3, 0xfa, 0xe1, 0xc7, 0x95,
+				     0x1f, 0x66, 0x1a, 0xd6, 0x8e, 0xec, 0x0e,
+				     0x4c, 0x00, 0xd0, 0x0e, 0x31, 0x1c, 0x87,
+				     0xee, 0x1c, 0xc3, 0x81, 0xb4, 0xb6, 0x09,
+				     0xb5, 0x3c, 0x85, 0xb9, 0xcc, 0x2d, 0x2e,
+				     0x9c, 0x85, 0x0b, 0xf7, 0xe4, 0x09, 0xd3,
+				     0xf7 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + aes-cmac *********************/
+
+	{
+		.test_idx = 59,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x78, 0xee, 0x01,
+				     0x4c, 0x79, 0xc7, 0x14, 0x79, 0x2c, 0x1b,
+				     0x8a, 0xd0, 0x17, 0xb4, 0xb4, 0xfe, 0xa7,
+				     0x17, 0x9a, 0x93, 0x5d, 0xad, 0x27, 0x8a,
+				     0x56, 0xd7, 0x36, 0xec, 0x8d, 0x74, 0xff,
+				     0x7c, 0x93, 0x4d, 0x89, 0x00, 0x30, 0x40,
+				     0x37, 0xfb, 0x98, 0x1b, 0x06, 0x1a, 0x76,
+				     0xf8, 0x07, 0x72, 0xe9, 0xa2, 0x89, 0x47,
+				     0x95, 0x8f, 0x8f, 0x4e, 0x45, 0x55, 0xd6,
+				     0x0e, 0xf4, 0xe7, 0xe8, 0x78, 0xdd, 0xc1,
+				     0x92 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** aes-ctr + aes-cmac *********************/
+
+	{
+		.test_idx = 60,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xbf, 0x21, 0xc9,
+				     0x7d, 0x02, 0x8d, 0xf7, 0xf7, 0x80, 0x50,
+				     0x60, 0x32, 0x09, 0xb8, 0x69, 0x48, 0xab,
+				     0x58, 0xf0, 0xd9, 0x63, 0x63, 0x36, 0x01,
+				     0x3f, 0x95, 0xc3, 0xfa, 0xe1, 0xc7, 0x95,
+				     0x1f, 0x66, 0x1a, 0xd6, 0x8e, 0xec, 0x0e,
+				     0x4c, 0x00, 0xd0, 0x0e, 0x31, 0x1c, 0x87,
+				     0xee, 0x1c, 0xc3, 0x81, 0xb4, 0xb6, 0x09,
+				     0xb5, 0x3c, 0x85, 0xb9, 0xcc, 0x2d, 0x2e,
+				     0x9c, 0x85, 0x0b, 0xf7, 0xb1, 0x80, 0x30,
+				     0xa5 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + snow ************************/
+
+	{
+		.test_idx = 61,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and SNOW-f9_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x78, 0xee, 0x01,
+				     0x4c, 0x79, 0xc7, 0x14, 0x79, 0x2c, 0x1b,
+				     0x8a, 0xd0, 0x17, 0xb4, 0xb4, 0xfe, 0xa7,
+				     0x17, 0x9a, 0x93, 0x5d, 0xad, 0x27, 0x8a,
+				     0x56, 0xd7, 0x36, 0xec, 0x8d, 0x74, 0xff,
+				     0x7c, 0x93, 0x4d, 0x89, 0x00, 0x30, 0x40,
+				     0x37, 0xfb, 0x98, 0x1b, 0x06, 0x1a, 0x76,
+				     0xf8, 0x07, 0x72, 0xe9, 0xa2, 0x89, 0x47,
+				     0x95, 0x8f, 0x8f, 0x4e, 0x45, 0x55, 0xd6,
+				     0x0e, 0xf4, 0xe7, 0xe8, 0x08, 0xa6, 0xdb,
+				     0x19 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** aes-ctr + snow ************************/
+
+	{
+		.test_idx = 62,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and SNOW-f9_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_SNOW3G_UIA2,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xbf, 0x21, 0xc9,
+				     0x7d, 0x02, 0x8d, 0xf7, 0xf7, 0x80, 0x50,
+				     0x60, 0x32, 0x09, 0xb8, 0x69, 0x48, 0xab,
+				     0x58, 0xf0, 0xd9, 0x63, 0x63, 0x36, 0x01,
+				     0x3f, 0x95, 0xc3, 0xfa, 0xe1, 0xc7, 0x95,
+				     0x1f, 0x66, 0x1a, 0xd6, 0x8e, 0xec, 0x0e,
+				     0x4c, 0x00, 0xd0, 0x0e, 0x31, 0x1c, 0x87,
+				     0xee, 0x1c, 0xc3, 0x81, 0xb4, 0xb6, 0x09,
+				     0xb5, 0x3c, 0x85, 0xb9, 0xcc, 0x2d, 0x2e,
+				     0x9c, 0x85, 0x0b, 0xf7, 0x97, 0x5a, 0x56,
+				     0xab },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** aes-ctr + zuc **************************/
+
+	{
+		.test_idx = 63,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and ZUC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x78, 0xee, 0x01,
+				     0x4c, 0x79, 0xc7, 0x14, 0x79, 0x2c, 0x1b,
+				     0x8a, 0xd0, 0x17, 0xb4, 0xb4, 0xfe, 0xa7,
+				     0x17, 0x9a, 0x93, 0x5d, 0xad, 0x27, 0x8a,
+				     0x56, 0xd7, 0x36, 0xec, 0x8d, 0x74, 0xff,
+				     0x7c, 0x93, 0x4d, 0x89, 0x00, 0x30, 0x40,
+				     0x37, 0xfb, 0x98, 0x1b, 0x06, 0x1a, 0x76,
+				     0xf8, 0x07, 0x72, 0xe9, 0xa2, 0x89, 0x47,
+				     0x95, 0x8f, 0x8f, 0x4e, 0x45, 0x55, 0xd6,
+				     0x0e, 0xf4, 0xe7, 0xe8, 0x08, 0x68, 0xff,
+				     0x7c },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** aes-ctr + zuc **************************/
+
+	{
+		.test_idx = 64,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, AES-CTR_ENC and ZUC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_AES_CTR,
+			.auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xbf, 0x21, 0xc9,
+				     0x7d, 0x02, 0x8d, 0xf7, 0xf7, 0x80, 0x50,
+				     0x60, 0x32, 0x09, 0xb8, 0x69, 0x48, 0xab,
+				     0x58, 0xf0, 0xd9, 0x63, 0x63, 0x36, 0x01,
+				     0x3f, 0x95, 0xc3, 0xfa, 0xe1, 0xc7, 0x95,
+				     0x1f, 0x66, 0x1a, 0xd6, 0x8e, 0xec, 0x0e,
+				     0x4c, 0x00, 0xd0, 0x0e, 0x31, 0x1c, 0x87,
+				     0xee, 0x1c, 0xc3, 0x81, 0xb4, 0xb6, 0x09,
+				     0xb5, 0x3c, 0x85, 0xb9, 0xcc, 0x2d, 0x2e,
+				     0x9c, 0x85, 0x0b, 0xf7, 0x41, 0xdd, 0x19,
+				     0x32 },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 65,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, SNOW-f8_ENC and NULL_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x0c, 0xa8, 0x9d,
+				     0x9e, 0xcc, 0xf0, 0x1a, 0xc0, 0xf2, 0x9f,
+				     0x8c, 0xc9, 0x57, 0xc7, 0x99, 0x4d, 0xde,
+				     0xc5, 0x19, 0x69, 0x58, 0x5b, 0x1a, 0x51,
+				     0x40, 0xa8, 0xc4, 0x93, 0x4b, 0x47, 0xb8,
+				     0xc4, 0x2a, 0x19, 0x07, 0x80, 0x45, 0xbb,
+				     0xb3, 0x24, 0x88, 0x68, 0x5f, 0x78, 0x3a,
+				     0xd2, 0x6c, 0xcc, 0xa0, 0xb5, 0xf0, 0x95,
+				     0x3e, 0xf1, 0xf4, 0x3e, 0x43, 0x8f, 0x6c,
+				     0xae, 0x22, 0x59, 0x11, 0x86, 0xa9, 0x02,
+				     0xbc },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + null ****************************/
+
+	{
+		.test_idx = 66,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, SNOW-f8_ENC and NULL_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_NULL,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x5a, 0xa9, 0xb5,
+				     0x61, 0x8b, 0x8a, 0xb7, 0x6a, 0x98, 0x30,
+				     0x6c, 0xed, 0x84, 0x69, 0xff, 0x6b, 0x7e,
+				     0x30, 0x59, 0x55, 0x80, 0x32, 0xd0, 0x0f,
+				     0x73, 0x43, 0x7c, 0xc3, 0x2e, 0xf4, 0xc3,
+				     0x3a, 0x60, 0xe3, 0x7c, 0xf0, 0x31, 0xa2,
+				     0x0e, 0x2e, 0x33, 0xe6, 0xa4, 0xea, 0x17,
+				     0xd6, 0x56, 0xa2, 0x3b, 0x5f, 0x56, 0x3a,
+				     0xa7, 0x6f, 0x4c, 0xc1, 0xca, 0xbd, 0x5f,
+				     0xad, 0x3d, 0x99, 0x4a, 0xf6, 0x22, 0x36,
+				     0x2e },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 1,
+	},
+
+	/**************************** snow + aes-cmac ************************/
+
+	{
+		.test_idx = 67,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, SNOW-f8_ENC and AES-CMAC_AUTH Uplink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
+				     0x23, 0x82, 0x53, 0xfd, 0x37, 0xde, 0x88,
+				     0x63, 0x08, 0x4f, 0xD3, 0x71, 0xfb, 0xeb,
+				     0x35, 0xf3, 0x64, 0xd3, 0x5e, 0xaf, 0x3f,
+				     0x57, 0xc2, 0xe2, 0x91, 0x91, 0xa3, 0x9c,
+				     0xe6, 0x30, 0x69, 0x70, 0x33, 0x8a, 0x15,
+				     0xd0, 0x36, 0x47, 0x0e, 0x8f, 0xee, 0x2c,
+				     0x96, 0x0c, 0xd7, 0x7d, 0x70, 0x1b, 0x01,
+				     0x7f, 0x96, 0x46, 0x53, 0xb0, 0xa4, 0x7a,
+				     0xf9, 0xdd, 0xcc, 0x69 },
+		.in_len = 67,
+		.data_out =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0x0c, 0xa8, 0x9d,
+				     0x9e, 0xcc, 0xf0, 0x1a, 0xc0, 0xf2, 0x9f,
+				     0x8c, 0xc9, 0x57, 0xc7, 0x99, 0x4d, 0xde,
+				     0xc5, 0x19, 0x69, 0x58, 0x5b, 0x1a, 0x51,
+				     0x40, 0xa8, 0xc4, 0x93, 0x4b, 0x47, 0xb8,
+				     0xc4, 0x2a, 0x19, 0x07, 0x80, 0x45, 0xbb,
+				     0xb3, 0x24, 0x88, 0x68, 0x5f, 0x78, 0x3a,
+				     0xd2, 0x6c, 0xcc, 0xa0, 0xb5, 0xf0, 0x95,
+				     0x3e, 0xf1, 0xf4, 0x3e, 0x43, 0x8f, 0x6c,
+				     0xae, 0x22, 0x59, 0x11, 0xf6, 0x97, 0x0b,
+				     0x7b },
+		.sn_size = 18,
+		.hfn = 0x1,
+		.hfn_threshold = 0xfa558,
+		.bearer = 0x16,
+		.packet_direction = 0,
+	},
+
+	/**************************** snow + aes-cmac ************************/
+
+	{
+		.test_idx = 68,
+		.param = {.name =
+			"PDCP-SDAP Uplane: 18b SN, SNOW-f8_ENC and AES-CMAC_AUTH Downlink",
+			.cipher_alg = RTE_CRYPTO_CIPHER_SNOW3G_UEA2,
+			.auth_alg = RTE_CRYPTO_AUTH_AES_CMAC,
+			.domain = RTE_SECURITY_PDCP_MODE_DATA,
+			.cipher_key_len = 16,
+			.auth_key_len = 16,
+		},
+		.cipher_key = (uint8_t[]){ 0x60, 0x4c, 0x8a, 0x22, 0x89, 0x56,
+					   0x13, 0x51, 0x7d, 0x61, 0xe5, 0xe0,
+					   0x7b, 0x2b, 0xd0, 0x9e },
+		.auth_key = (uint8_t[]){ 0x1a, 0xef, 0xbb, 0xff, 0x00, 0xf5,
+					 0x4b, 0x32, 0x87, 0xf9, 0xdb, 0xe0,
+					 0x31, 0x5f, 0x3a, 0x15 },
+		.data_in =
+			(uint8_t[]){ 0xf8, 0x00, 0x00, 0xf8, 0xdb, 0x2d, 0x3f,
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.17.1

Part of the diff is not shown here. View the raw message.

#30 lore raw

PATCH v3 7/8 test/crypto: Modify test_pdcp_proto to take parameters

In reply to Akhil Goyal

From: Franck Lenormand <[email protected]>

The function test_pdcp_proto was relying to heavily on the structure of test vectors for PDCP making it difficult to be reusable.

The function is changed to take all the test parameters as input and does not need access to the tests vectors anymore.

---
 app/test/test_cryptodev.c | 183 ++++++++++++++++++++++----------------
 1 file changed, 104 insertions(+), 79 deletions(-)
app/test/test_cryptodev.c +104 -79
index ac2a36bc2..7cea914f9 100644
@@ -7121,14 +7121,18 @@ security_proto_supported(enum rte_security_session_action_type action,
  * on input_vec. Checks the output of the crypto operation against
  * output_vec.
  */
-static int
-test_pdcp_proto(int i, int oop,
-	enum rte_crypto_cipher_operation opc,
-	enum rte_crypto_auth_operation opa,
-	uint8_t *input_vec,
-	unsigned int input_vec_len,
-	uint8_t *output_vec,
-	unsigned int output_vec_len)
+static int test_pdcp_proto(int i, int oop, enum rte_crypto_cipher_operation opc,
+			   enum rte_crypto_auth_operation opa,
+			   const uint8_t *input_vec, unsigned int input_vec_len,
+			   const uint8_t *output_vec,
+			   unsigned int output_vec_len,
+			   enum rte_crypto_cipher_algorithm cipher_alg,
+			   const uint8_t *cipher_key, uint32_t cipher_key_len,
+			   enum rte_crypto_auth_algorithm auth_alg,
+			   const uint8_t *auth_key, uint32_t auth_key_len,
+			   uint8_t bearer, enum rte_security_pdcp_domain domain,
+			   uint8_t packet_direction, uint8_t sn_size,
+			   uint32_t hfn, uint32_t hfn_threshold, uint8_t sdap)
 {
 	struct crypto_testsuite_params *ts_params = &testsuite_params;
 	struct crypto_unittest_params *ut_params = &unittest_params;
@@ -7143,7 +7147,7 @@ test_pdcp_proto(int i, int oop,
 
 	sec_cap_idx.action = ut_params->type;
 	sec_cap_idx.protocol = RTE_SECURITY_PROTOCOL_PDCP;
-	sec_cap_idx.pdcp.domain = pdcp_test_params[i].domain;
+	sec_cap_idx.pdcp.domain = domain;
 	if (rte_security_capability_get(ctx, &sec_cap_idx) == NULL)
 		return -ENOTSUP;
 
@@ -7169,24 +7173,22 @@ test_pdcp_proto(int i, int oop,
 
 	/* Setup Cipher Parameters */
 	ut_params->cipher_xform.type = RTE_CRYPTO_SYM_XFORM_CIPHER;
-	ut_params->cipher_xform.cipher.algo = pdcp_test_params[i].cipher_alg;
+	ut_params->cipher_xform.cipher.algo = cipher_alg;
 	ut_params->cipher_xform.cipher.op = opc;
-	ut_params->cipher_xform.cipher.key.data = pdcp_test_crypto_key[i];
-	ut_params->cipher_xform.cipher.key.length =
-					pdcp_test_params[i].cipher_key_len;
+	ut_params->cipher_xform.cipher.key.data = cipher_key;
+	ut_params->cipher_xform.cipher.key.length = cipher_key_len;
 	ut_params->cipher_xform.cipher.iv.length =
-				pdcp_test_packet_direction[i] ? 4 : 0;
+				packet_direction ? 4 : 0;
 	ut_params->cipher_xform.cipher.iv.offset = IV_OFFSET;
 
 	/* Setup HMAC Parameters if ICV header is required */
-	if (pdcp_test_params[i].auth_alg != 0) {
+	if (auth_alg != 0) {
 		ut_params->auth_xform.type = RTE_CRYPTO_SYM_XFORM_AUTH;
 		ut_params->auth_xform.next = NULL;
-		ut_params->auth_xform.auth.algo = pdcp_test_params[i].auth_alg;
+		ut_params->auth_xform.auth.algo = auth_alg;
 		ut_params->auth_xform.auth.op = opa;
-		ut_params->auth_xform.auth.key.data = pdcp_test_auth_key[i];
-		ut_params->auth_xform.auth.key.length =
-					pdcp_test_params[i].auth_key_len;
+		ut_params->auth_xform.auth.key.data = auth_key;
+		ut_params->auth_xform.auth.key.length = auth_key_len;
 
 		ut_params->cipher_xform.next = &ut_params->auth_xform;
 	} else {
@@ -7197,22 +7199,22 @@ test_pdcp_proto(int i, int oop,
 		.action_type = ut_params->type,
 		.protocol = RTE_SECURITY_PROTOCOL_PDCP,
 		{.pdcp = {
-			.bearer = pdcp_test_bearer[i],
-			.domain = pdcp_test_params[i].domain,
-			.pkt_dir = pdcp_test_packet_direction[i],
-			.sn_size = pdcp_test_data_sn_size[i],
-			.hfn = pdcp_test_packet_direction[i] ?
-				0 : pdcp_test_hfn[i],
-				/**
-				 * hfn can be set as pdcp_test_hfn[i]
-				 * if hfn_ovrd is not set. Here, PDCP
-				 * packet direction is just used to
-				 * run half of the cases with session
-				 * HFN and other half with per packet
-				 * HFN.
-				 */
-			.hfn_threshold = pdcp_test_hfn_threshold[i],
-			.hfn_ovrd = pdcp_test_packet_direction[i] ? 1 : 0,
+			.bearer = bearer,
+			.domain = domain,
+			.pkt_dir = packet_direction,
+			.sn_size = sn_size,
+			.hfn = packet_direction ? 0 : hfn,
+			/**
+			 * hfn can be set as pdcp_test_hfn[i]
+			 * if hfn_ovrd is not set. Here, PDCP
+			 * packet direction is just used to
+			 * run half of the cases with session
+			 * HFN and other half with per packet
+			 * HFN.
+			 */
+			.hfn_threshold = hfn_threshold,
+			.hfn_ovrd = packet_direction ? 1 : 0,
+			.sdap_enabled = sdap,
 		} },
 		.crypto_xform = &ut_params->cipher_xform
 	};
@@ -7241,7 +7243,7 @@ test_pdcp_proto(int i, int oop,
 
 	uint32_t *per_pkt_hfn = rte_crypto_op_ctod_offset(ut_params->op,
 					uint32_t *, IV_OFFSET);
-	*per_pkt_hfn = pdcp_test_packet_direction[i] ? pdcp_test_hfn[i] : 0;
+	*per_pkt_hfn = packet_direction ? hfn : 0;
 
 	rte_security_attach_session(ut_params->op, ut_params->sec_session);
 
@@ -7582,74 +7584,97 @@ test_pdcp_proto_SGL(int i, int oop,
 int
 test_pdcp_proto_cplane_encap(int i)
 {
-	return test_pdcp_proto(i, 0,
-		RTE_CRYPTO_CIPHER_OP_ENCRYPT,
-		RTE_CRYPTO_AUTH_OP_GENERATE,
-		pdcp_test_data_in[i],
-		pdcp_test_data_in_len[i],
-		pdcp_test_data_out[i],
-		pdcp_test_data_in_len[i]+4);
+	return test_pdcp_proto(
+		i, 0, RTE_CRYPTO_CIPHER_OP_ENCRYPT, RTE_CRYPTO_AUTH_OP_GENERATE,
+		pdcp_test_data_in[i], pdcp_test_data_in_len[i],
+		pdcp_test_data_out[i], pdcp_test_data_in_len[i] + 4,
+		pdcp_test_params[i].cipher_alg, pdcp_test_crypto_key[i],
+		pdcp_test_params[i].cipher_key_len,
+		pdcp_test_params[i].auth_alg, pdcp_test_auth_key[i],
+		pdcp_test_params[i].auth_key_len, pdcp_test_bearer[i],
+		pdcp_test_params[i].domain, pdcp_test_packet_direction[i],
+		pdcp_test_data_sn_size[i], pdcp_test_hfn[i],
+		pdcp_test_hfn_threshold[i], SDAP_DISABLED);
 }
 
 int
 test_pdcp_proto_uplane_encap(int i)
 {
-	return test_pdcp_proto(i, 0,
-		RTE_CRYPTO_CIPHER_OP_ENCRYPT,
-		RTE_CRYPTO_AUTH_OP_GENERATE,
-		pdcp_test_data_in[i],
-		pdcp_test_data_in_len[i],
-		pdcp_test_data_out[i],
-		pdcp_test_data_in_len[i]);
-
+	return test_pdcp_proto(
+		i, 0, RTE_CRYPTO_CIPHER_OP_ENCRYPT, RTE_CRYPTO_AUTH_OP_GENERATE,
+		pdcp_test_data_in[i], pdcp_test_data_in_len[i],
+		pdcp_test_data_out[i], pdcp_test_data_in_len[i],
+		pdcp_test_params[i].cipher_alg, pdcp_test_crypto_key[i],
+		pdcp_test_params[i].cipher_key_len,
+		pdcp_test_params[i].auth_alg, pdcp_test_auth_key[i],
+		pdcp_test_params[i].auth_key_len, pdcp_test_bearer[i],
+		pdcp_test_params[i].domain, pdcp_test_packet_direction[i],
+		pdcp_test_data_sn_size[i], pdcp_test_hfn[i],
+		pdcp_test_hfn_threshold[i], SDAP_DISABLED);
 }
 
 int
 test_pdcp_proto_uplane_encap_with_int(int i)
 {
-	return test_pdcp_proto(i, 0,
-		RTE_CRYPTO_CIPHER_OP_ENCRYPT,
-		RTE_CRYPTO_AUTH_OP_GENERATE,
-		pdcp_test_data_in[i],
-		pdcp_test_data_in_len[i],
-		pdcp_test_data_out[i],
-		pdcp_test_data_in_len[i] + 4);
+	return test_pdcp_proto(
+		i, 0, RTE_CRYPTO_CIPHER_OP_ENCRYPT, RTE_CRYPTO_AUTH_OP_GENERATE,
+		pdcp_test_data_in[i], pdcp_test_data_in_len[i],
+		pdcp_test_data_out[i], pdcp_test_data_in_len[i] + 4,
+		pdcp_test_params[i].cipher_alg, pdcp_test_crypto_key[i],
+		pdcp_test_params[i].cipher_key_len,
+		pdcp_test_params[i].auth_alg, pdcp_test_auth_key[i],
+		pdcp_test_params[i].auth_key_len, pdcp_test_bearer[i],
+		pdcp_test_params[i].domain, pdcp_test_packet_direction[i],
+		pdcp_test_data_sn_size[i], pdcp_test_hfn[i],
+		pdcp_test_hfn_threshold[i], SDAP_DISABLED);
 }
 
 int
 test_pdcp_proto_cplane_decap(int i)
 {
-	return test_pdcp_proto(i, 0,
-		RTE_CRYPTO_CIPHER_OP_DECRYPT,
-		RTE_CRYPTO_AUTH_OP_VERIFY,
-		pdcp_test_data_out[i],
-		pdcp_test_data_in_len[i] + 4,
-		pdcp_test_data_in[i],
-		pdcp_test_data_in_len[i]);
+	return test_pdcp_proto(
+		i, 0, RTE_CRYPTO_CIPHER_OP_DECRYPT, RTE_CRYPTO_AUTH_OP_VERIFY,
+		pdcp_test_data_out[i], pdcp_test_data_in_len[i] + 4,
+		pdcp_test_data_in[i], pdcp_test_data_in_len[i],
+		pdcp_test_params[i].cipher_alg, pdcp_test_crypto_key[i],
+		pdcp_test_params[i].cipher_key_len,
+		pdcp_test_params[i].auth_alg, pdcp_test_auth_key[i],
+		pdcp_test_params[i].auth_key_len, pdcp_test_bearer[i],
+		pdcp_test_params[i].domain, pdcp_test_packet_direction[i],
+		pdcp_test_data_sn_size[i], pdcp_test_hfn[i],
+		pdcp_test_hfn_threshold[i], SDAP_DISABLED);
 }
 
 int
 test_pdcp_proto_uplane_decap(int i)
 {
-	return test_pdcp_proto(i, 0,
-		RTE_CRYPTO_CIPHER_OP_DECRYPT,
-		RTE_CRYPTO_AUTH_OP_VERIFY,
-		pdcp_test_data_out[i],
-		pdcp_test_data_in_len[i],
-		pdcp_test_data_in[i],
-		pdcp_test_data_in_len[i]);
+	return test_pdcp_proto(
+		i, 0, RTE_CRYPTO_CIPHER_OP_DECRYPT, RTE_CRYPTO_AUTH_OP_VERIFY,
+		pdcp_test_data_out[i], pdcp_test_data_in_len[i],
+		pdcp_test_data_in[i], pdcp_test_data_in_len[i],
+		pdcp_test_params[i].cipher_alg, pdcp_test_crypto_key[i],
+		pdcp_test_params[i].cipher_key_len,
+		pdcp_test_params[i].auth_alg, pdcp_test_auth_key[i],
+		pdcp_test_params[i].auth_key_len, pdcp_test_bearer[i],
+		pdcp_test_params[i].domain, pdcp_test_packet_direction[i],
+		pdcp_test_data_sn_size[i], pdcp_test_hfn[i],
+		pdcp_test_hfn_threshold[i], SDAP_DISABLED);
 }
 
 int
 test_pdcp_proto_uplane_decap_with_int(int i)
 {
-	return test_pdcp_proto(i, 0,
-		RTE_CRYPTO_CIPHER_OP_DECRYPT,
-		RTE_CRYPTO_AUTH_OP_VERIFY,
-		pdcp_test_data_out[i],
-		pdcp_test_data_in_len[i] + 4,
-		pdcp_test_data_in[i],
-		pdcp_test_data_in_len[i]);
+	return test_pdcp_proto(
+		i, 0, RTE_CRYPTO_CIPHER_OP_DECRYPT, RTE_CRYPTO_AUTH_OP_VERIFY,
+		pdcp_test_data_out[i], pdcp_test_data_in_len[i] + 4,
+		pdcp_test_data_in[i], pdcp_test_data_in_len[i],
+		pdcp_test_params[i].cipher_alg, pdcp_test_crypto_key[i],
+		pdcp_test_params[i].cipher_key_len,
+		pdcp_test_params[i].auth_alg, pdcp_test_auth_key[i],
+		pdcp_test_params[i].auth_key_len, pdcp_test_bearer[i],
+		pdcp_test_params[i].domain, pdcp_test_packet_direction[i],
+		pdcp_test_data_sn_size[i], pdcp_test_hfn[i],
+		pdcp_test_hfn_threshold[i], SDAP_DISABLED);
 }
 
 static int
Signature · 1 line
2.17.1
#31 lore raw

PATCH v3 8/8 test/crypto: Add PDCP-SDAP cases

In reply to Akhil Goyal

From: Franck Lenormand <[email protected]>

A new functions which uses the structure of the test vectors for SDAP is added and call a functions responsible to call the test_pdcp_proto with the test vector both for encapsulation and decapsulation.

---
 app/test/test_cryptodev.c | 95 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 95 insertions(+)
app/test/test_cryptodev.c +95 -0
index 7cea914f9..590691521 100644
@@ -1,5 +1,6 @@
 /* SPDX-License-Identifier: BSD-3-Clause
  * Copyright(c) 2015-2020 Intel Corporation
+ * Copyright 2020 NXP
  */
 
 #include <time.h>
@@ -42,8 +43,12 @@
 #include "test_cryptodev_mixed_test_vectors.h"
 #ifdef RTE_LIBRTE_SECURITY
 #include "test_cryptodev_security_pdcp_test_vectors.h"
+#include "test_cryptodev_security_pdcp_sdap_test_vectors.h"
 #include "test_cryptodev_security_pdcp_test_func.h"
 #include "test_cryptodev_security_docsis_test_vectors.h"
+
+#define SDAP_DISABLED	0
+#define SDAP_ENABLED	1
 #endif
 
 #define VDEV_ARGS_SIZE 100
@@ -52,6 +57,10 @@
 #define IN_PLACE 0
 #define OUT_OF_PLACE 1
 
+#ifndef ARRAY_SIZE
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+#endif
+
 static int gbl_driver_id;
 
 static enum rte_security_session_action_type gbl_action_type =
@@ -7743,6 +7752,90 @@ test_PDCP_PROTO_SGL_oop_128B_32B(void)
 			128, 32);
 }
 
+static int
+test_PDCP_SDAP_PROTO_encap_all(void)
+{
+	int i = 0, size = 0;
+	int err, all_err = TEST_SUCCESS;
+	const struct pdcp_sdap_test *cur_test;
+
+	size = ARRAY_SIZE(list_pdcp_sdap_tests);
+
+	for (i = 0; i < size; i++) {
+		cur_test = &list_pdcp_sdap_tests[i];
+		err = test_pdcp_proto(
+			i, 0, RTE_CRYPTO_CIPHER_OP_ENCRYPT,
+			RTE_CRYPTO_AUTH_OP_GENERATE, cur_test->data_in,
+			cur_test->in_len, cur_test->data_out,
+			cur_test->in_len + ((cur_test->auth_key) ? 4 : 0),
+			cur_test->param.cipher_alg, cur_test->cipher_key,
+			cur_test->param.cipher_key_len,
+			cur_test->param.auth_alg,
+			cur_test->auth_key, cur_test->param.auth_key_len,
+			cur_test->bearer, cur_test->param.domain,
+			cur_test->packet_direction, cur_test->sn_size,
+			cur_test->hfn,
+			cur_test->hfn_threshold, SDAP_ENABLED);
+		if (err) {
+			printf("\t%d) %s: Encapsulation failed\n",
+					cur_test->test_idx,
+					cur_test->param.name);
+			err = TEST_FAILED;
+		} else {
+			printf("\t%d) %s: Encap PASS\n", cur_test->test_idx,
+					cur_test->param.name);
+			err = TEST_SUCCESS;
+		}
+		all_err += err;
+	}
+
+	printf("Success: %d, Failure: %d\n", size + all_err, -all_err);
+
+	return (all_err == TEST_SUCCESS) ? TEST_SUCCESS : TEST_FAILED;
+}
+
+static int
+test_PDCP_SDAP_PROTO_decap_all(void)
+{
+	int i = 0, size = 0;
+	int err, all_err = TEST_SUCCESS;
+	const struct pdcp_sdap_test *cur_test;
+
+	size = ARRAY_SIZE(list_pdcp_sdap_tests);
+
+	for (i = 0; i < size; i++) {
+		cur_test = &list_pdcp_sdap_tests[i];
+		err = test_pdcp_proto(
+			i, 0, RTE_CRYPTO_CIPHER_OP_DECRYPT,
+			RTE_CRYPTO_AUTH_OP_VERIFY,
+			cur_test->data_out,
+			cur_test->in_len + ((cur_test->auth_key) ? 4 : 0),
+			cur_test->data_in, cur_test->in_len,
+			cur_test->param.cipher_alg,
+			cur_test->cipher_key, cur_test->param.cipher_key_len,
+			cur_test->param.auth_alg, cur_test->auth_key,
+			cur_test->param.auth_key_len, cur_test->bearer,
+			cur_test->param.domain, cur_test->packet_direction,
+			cur_test->sn_size, cur_test->hfn,
+			cur_test->hfn_threshold, SDAP_ENABLED);
+		if (err) {
+			printf("\t%d) %s: Decapsulation failed\n",
+					cur_test->test_idx,
+					cur_test->param.name);
+			err = TEST_FAILED;
+		} else {
+			printf("\t%d) %s: Decap PASS\n", cur_test->test_idx,
+					cur_test->param.name);
+			err = TEST_SUCCESS;
+		}
+		all_err += err;
+	}
+
+	printf("Success: %d, Failure: %d\n", size + all_err, -all_err);
+
+	return (all_err == TEST_SUCCESS) ? TEST_SUCCESS : TEST_FAILED;
+}
+
 static int
 test_PDCP_PROTO_all(void)
 {
@@ -7774,6 +7867,8 @@ test_PDCP_PROTO_all(void)
 	status += test_PDCP_PROTO_SGL_oop_32B_128B();
 	status += test_PDCP_PROTO_SGL_oop_32B_40B();
 	status += test_PDCP_PROTO_SGL_oop_128B_32B();
+	status += test_PDCP_SDAP_PROTO_encap_all();
+	status += test_PDCP_SDAP_PROTO_decap_all();
 
 	if (status)
 		return TEST_FAILED;
Signature · 1 line
2.17.1