1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (C) 2020 Marvell International Ltd.
5 #ifndef __OTX2_CRYPTODEV_SEC_H__
6 #define __OTX2_CRYPTODEV_SEC_H__
8 #include <rte_cryptodev.h>
10 #include "otx2_ipsec_po.h"
12 struct otx2_sec_session_ipsec_lp {
16 struct otx2_ipsec_po_in_sa in_sa;
18 struct otx2_ipsec_po_out_sa out_sa;
44 /** Context length in 8-byte words */
46 /** Auth IV offset in bytes */
47 uint16_t auth_iv_offset;
48 /** IV offset in bytes */
52 /** MAC len in bytes */
54 /** IV length in bytes */
56 /** Auth IV length in bytes */
57 uint8_t auth_iv_length;
60 int otx2_crypto_sec_ctx_create(struct rte_cryptodev *crypto_dev);
62 void otx2_crypto_sec_ctx_destroy(struct rte_cryptodev *crypto_dev);
64 #endif /* __OTX2_CRYPTODEV_SEC_H__ */