📄 ipsec_ah_message.h
字号:
/* ipsec_ah_message.h - WindNet IPsec/IKE AH message definitions *//* * Copyright (c) 2000-2006 Wind River Systems, Inc. * * The right to copy, distribute, modify or otherwise make use * of this software may be licensed only pursuant to the terms * of an applicable Wind River license agreement. *//************************************************************************//*modification history--------------------04c,14feb06,rma IPVI_ADDRESS_SELECTOR optimizations.04b,12jan06,djp removed rwos dependencies04a,20dec05,djp added required includes03a,14Nov2002,rks(teamf1) changes for CCI intergration02b,27mar02,rpt changed AH "sign" and "verify" function declarations to integrate with enhanced crypto interface "crypto_if.h"02a,19mar02,rpt changed func declarations to use IP_VI_MESSAGE instead of IP_MESSAGE. 01a,19mar02,rpt extracted from WindNet IPSec 1.1, added modification history*//******************************************************************************/#if !defined (__IPSEC_AH_MESSAGE_H__)#define __IPSEC_AH_MESSAGE_H__#include <vxWorks.h>#include <wrn/cci/cci.h>#include "../crypto/ipsecDOItoCCI.h"#include "packetBuf.h"#include "ipsec_if.h" /******************************************************************************/typedef struct IPSEC_AH_MESSAGE { IP_TRANSPORT_PROTOCOL next_header; UINT spi; UINT sequence_number; UCHAR bptr_authentication_data[IPSEC_AUTH_DIGEST_TRUNC]; /* The following variables are private variable */ UINT authentication_data_length_in_words; IPSEC_AUTH_ALGORITHM_ID ah_authentication_type; /* this field contains the payload length as defined by RFC 2402 sec 2.2*/ UINT payload_length; } IPSEC_AH_MESSAGE;/******************************************************************************/IPSEC_AH_MESSAGE *ipsec_ah_message_create ( void );BOOL ipsec_ah_message_construct ( IPSEC_AH_MESSAGE *sptr_ipsec_ah_message, IPSEC_AUTH_ALGORITHM_ID authentication_type );void ipsec_ah_message_destruct ( IPSEC_AH_MESSAGE *sptr_ipsec_ah_message );void ipsec_ah_message_delete ( IPSEC_AH_MESSAGE *sptr_ipsec_ah_message );UINT ipsec_ah_message_get_serialization_length ( IPSEC_AH_MESSAGE *sptr_ipsec_ah_message );BOOL ipsec_ah_message_deserialize ( IPSEC_AH_MESSAGE * sptr_ipsec_ah_message, PACKETBUF * pPacket );UINT ipsec_ah_message_serialize ( IPSEC_AH_MESSAGE * sptr_ipsec_ah_message, PACKETBUF * pPacket );BOOL ipsec_ah_message_sign ( IPSEC_AH_MESSAGE *sptr_ipsec_ah_message, IP_VI_MESSAGE *p_ip_message, CCIContext context );BOOL ipsec_ah_message_verify ( IPSEC_AH_MESSAGE *sptr_ipsec_ah_message, IP_VI_MESSAGE *p_ip_message, CCIContext context );UINT ipsec_ah_peek_at_security_parameters_index ( IP_VI_MESSAGE *p_ip_message );#endif /* __IPSEC_AH_MESSAGE_H__*//******************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -