f-stack/dpdk/lib/pdcp/pdcp_crypto.h

21 lines
510 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(C) 2023 Marvell.
*/
#ifndef PDCP_CRYPTO_H
#define PDCP_CRYPTO_H
#include <rte_crypto.h>
#include <rte_crypto_sym.h>
#include <rte_pdcp.h>
#define PDCP_IV_OFFSET (sizeof(struct rte_crypto_op) + sizeof(struct rte_crypto_sym_op))
#define PDCP_IV_LEN 16
int pdcp_crypto_sess_create(struct rte_pdcp_entity *entity,
const struct rte_pdcp_entity_conf *conf);
void pdcp_crypto_sess_destroy(struct rte_pdcp_entity *entity);
#endif /* PDCP_CRYPTO_H */