X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcrypto%2Focteontx2%2Fotx2_security.h;h=9f1ba71b46ce20229378c3b96c3b6a200f9b446e;hb=e863fe3a13da89787fdf3b5c590101a3c0f10af6;hp=9790c709d605b171c1c3860f3d02e1c0e89a9ab0;hpb=858797bbcd9c6e36fb9d283a88edcd0bb89d5d67;p=dpdk.git diff --git a/drivers/crypto/octeontx2/otx2_security.h b/drivers/crypto/octeontx2/otx2_security.h index 9790c709d6..9f1ba71b46 100644 --- a/drivers/crypto/octeontx2/otx2_security.h +++ b/drivers/crypto/octeontx2/otx2_security.h @@ -5,10 +5,25 @@ #ifndef __OTX2_SECURITY_H__ #define __OTX2_SECURITY_H__ +#include + +#include "otx2_cryptodev_sec.h" #include "otx2_ethdev_sec.h" +#define OTX2_SEC_AH_HDR_LEN 12 +#define OTX2_SEC_AES_GCM_IV_LEN 8 +#define OTX2_SEC_AES_GCM_MAC_LEN 16 +#define OTX2_SEC_AES_CBC_IV_LEN 16 +#define OTX2_SEC_SHA1_HMAC_LEN 12 +#define OTX2_SEC_SHA2_HMAC_LEN 16 + +#define OTX2_SEC_AES_GCM_ROUNDUP_BYTE_LEN 4 +#define OTX2_SEC_AES_CBC_ROUNDUP_BYTE_LEN 16 + union otx2_sec_session_ipsec { struct otx2_sec_session_ipsec_ip ip; + struct otx2_sec_session_ipsec_lp lp; + enum rte_security_ipsec_sa_direction dir; }; struct otx2_sec_session {