1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (C) 2020 Marvell International Ltd.
5 #ifndef __OTX2_SECURITY_H__
6 #define __OTX2_SECURITY_H__
8 #include "otx2_cryptodev_sec.h"
9 #include "otx2_ethdev_sec.h"
11 #define OTX2_SEC_AH_HDR_LEN 12
12 #define OTX2_SEC_AES_GCM_IV_LEN 8
13 #define OTX2_SEC_AES_GCM_MAC_LEN 16
14 #define OTX2_SEC_AES_CBC_IV_LEN 16
15 #define OTX2_SEC_SHA1_HMAC_LEN 12
17 #define OTX2_SEC_AES_GCM_ROUNDUP_BYTE_LEN 4
18 #define OTX2_SEC_AES_CBC_ROUNDUP_BYTE_LEN 16
20 union otx2_sec_session_ipsec {
21 struct otx2_sec_session_ipsec_ip ip;
22 struct otx2_sec_session_ipsec_lp lp;
25 struct otx2_sec_session {
26 union otx2_sec_session_ipsec ipsec;
28 /**< Userdata registered by the application */
29 } __rte_cache_aligned;
31 #endif /* __OTX2_SECURITY_H__ */