mbuf: add a copy routine
[dpdk.git] / app / test / test_cryptodev_security_pdcp_test_func.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2019 NXP
3  */
4
5 #ifndef SECURITY_PDCP_TEST_FUNC_H_
6 #define SECURITY_PDCP_TEST_FUNC_H_
7
8 #define PDCP_CPLANE_OFFSET              0
9 #define PDCP_CPLANE_LONG_SN_OFFSET      32
10 #define PDCP_UPLANE_OFFSET              64
11 #define LONG_SEQ_NUM_OFFSET             0
12 #define SHORT_SEQ_NUM_OFFSET            2
13 #define FIFTEEN_BIT_SEQ_NUM_OFFSET      4
14 #define EIGHTEEN_BIT_SEQ_NUM_OFFSET     6
15 #define UPLINK                          0
16 #define DOWNLINK                        1
17 /* key length(in bytes) for F8 */
18 #define F8_KEY_LEN                      16
19
20 #define PDCP_UPLANE_12BIT_OFFSET        (PDCP_UPLANE_OFFSET + 32)
21 #define PDCP_UPLANE_18BIT_OFFSET        (PDCP_UPLANE_12BIT_OFFSET + 32)
22
23 enum enc_alg_off {
24         NULL_ENC = 0,
25         SNOW_ENC = 8,
26         AES_ENC = 16,
27         ZUC_ENC = 24
28 };
29 enum auth_alg_off {
30         NULL_AUTH = 0,
31         SNOW_AUTH = 2,
32         AES_AUTH = 4,
33         ZUC_AUTH = 6
34 };
35
36 int test_pdcp_proto_cplane_encap(int i);
37 int test_pdcp_proto_uplane_encap(int i);
38 int test_pdcp_proto_uplane_encap_with_int(int i);
39 int test_pdcp_proto_cplane_decap(int i);
40 int test_pdcp_proto_uplane_decap(int i);
41 int test_pdcp_proto_uplane_decap_with_int(int i);
42
43 int test_PDCP_PROTO_cplane_encap_all(void);
44 int test_PDCP_PROTO_cplane_decap_all(void);
45 int test_PDCP_PROTO_uplane_encap_all(void);
46 int test_PDCP_PROTO_uplane_decap_all(void);
47
48 #endif /* SECURITY_PDCP_TEST_FUNC_H_ */