test/crypto: add PDCP C-Plane decap cases
[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 LONG_SEQ_NUM_OFFSET             0
11 #define SHORT_SEQ_NUM_OFFSET            2
12 #define FIFTEEN_BIT_SEQ_NUM_OFFSET      4
13 #define EIGHTEEN_BIT_SEQ_NUM_OFFSET     6
14 #define UPLINK                          0
15 #define DOWNLINK                        1
16 /* key length(in bytes) for F8 */
17 #define F8_KEY_LEN                      16
18
19 enum enc_alg_off {
20         NULL_ENC = 0,
21         SNOW_ENC = 8,
22         AES_ENC = 16,
23         ZUC_ENC = 24
24 };
25 enum auth_alg_off {
26         NULL_AUTH = 0,
27         SNOW_AUTH = 2,
28         AES_AUTH = 4,
29         ZUC_AUTH = 6
30 };
31
32 int test_pdcp_proto_cplane_encap(int i);
33 int test_pdcp_proto_cplane_decap(int i);
34
35 int test_PDCP_PROTO_cplane_encap_all(void);
36 int test_PDCP_PROTO_cplane_decap_all(void);
37
38 #endif /* SECURITY_PDCP_TEST_FUNC_H_ */