1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(C) 2023 Marvell. 3 */ 4 5 #ifndef PDCP_CRYPTO_H 6 #define PDCP_CRYPTO_H 7 8 #include <rte_crypto.h> 9 #include <rte_crypto_sym.h> 10 #include <rte_pdcp.h> 11 12 #define PDCP_IV_OFFSET (sizeof(struct rte_crypto_op) + sizeof(struct rte_crypto_sym_op)) 13 #define PDCP_IV_LEN 16 14 15 int pdcp_crypto_sess_create(struct rte_pdcp_entity *entity, 16 const struct rte_pdcp_entity_conf *conf); 17 18 void pdcp_crypto_sess_destroy(struct rte_pdcp_entity *entity); 19 20 #endif /* PDCP_CRYPTO_H */ 21