00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00042 #ifndef __IPSEC_H__
00043 #define __IPSEC_H__
00044
00045 #include "ipsec/types.h"
00046 #include "netif/ipsecdev.h"
00047
00048
00049 #define IPSEC_DES_KEY_LEN (8)
00050 #define IPSEC_3DES_KEY_LEN (IPSEC_DES_KEY_LEN*3)
00051 #define IPSEC_MAX_ENCKEY_LEN (IPSEC_3DES_KEY_LEN)
00053 #define IPSEC_AUTH_ICV (12)
00054 #define IPSEC_AUTH_MD5_KEY_LEN (16)
00055 #define IPSEC_AUTH_SHA1_KEY_LEN (20)
00056 #define IPSEC_MAX_AUTHKEY_LEN (IPSEC_AUTH_SHA1_KEY_LEN)
00058 #define IPSEC_MIN_IPHDR_SIZE (20)
00059 #define IPSEC_SEQ_MAX_WINDOW (32)
00062 int ipsec_input(unsigned char *, int, int *, int *, void *);
00063 int ipsec_output(unsigned char *, int , int *, int *, __u32, __u32, void *);
00064
00065 #endif