]> git.proxmox.com Git - ceph.git/blame - ceph/src/spdk/dpdk/app/test/test_cryptodev_security_pdcp_test_func.h
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / dpdk / app / test / test_cryptodev_security_pdcp_test_func.h
CommitLineData
f67539c2
TL
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
23enum enc_alg_off {
24 NULL_ENC = 0,
25 SNOW_ENC = 8,
26 AES_ENC = 16,
27 ZUC_ENC = 24
28};
29enum auth_alg_off {
30 NULL_AUTH = 0,
31 SNOW_AUTH = 2,
32 AES_AUTH = 4,
33 ZUC_AUTH = 6
34};
35
36int test_pdcp_proto_cplane_encap(int i);
37int test_pdcp_proto_uplane_encap(int i);
38int test_pdcp_proto_uplane_encap_with_int(int i);
39int test_pdcp_proto_cplane_decap(int i);
40int test_pdcp_proto_uplane_decap(int i);
41int test_pdcp_proto_uplane_decap_with_int(int i);
42
43int test_PDCP_PROTO_cplane_encap_all(void);
44int test_PDCP_PROTO_cplane_decap_all(void);
45int test_PDCP_PROTO_uplane_encap_all(void);
46int test_PDCP_PROTO_uplane_decap_all(void);
47
48#endif /* SECURITY_PDCP_TEST_FUNC_H_ */