embedded IPsec source code documentation


ipsec.h File Reference


Detailed Description

Header of embedded IPsec implementation.

Author:
Christian Scheurer <http://www.christianscheurer.ch>
This document is part of embedded IPsec
Copyright (c) 2003 Niklaus Schild and Christian Scheurer, HTI Biel/Bienne
All rights reserved.

Definition in file ipsec.h.

#include "ipsec/types.h"
#include "netif/ipsecdev.h"

Go to the source code of this file.

Defines

#define IPSEC_DES_KEY_LEN   (8)
#define IPSEC_3DES_KEY_LEN   (IPSEC_DES_KEY_LEN*3)
#define IPSEC_MAX_ENCKEY_LEN   (IPSEC_3DES_KEY_LEN)
#define IPSEC_AUTH_ICV   (12)
#define IPSEC_AUTH_MD5_KEY_LEN   (16)
#define IPSEC_AUTH_SHA1_KEY_LEN   (20)
#define IPSEC_MAX_AUTHKEY_LEN   (IPSEC_AUTH_SHA1_KEY_LEN)
#define IPSEC_MIN_IPHDR_SIZE   (20)
#define IPSEC_SEQ_MAX_WINDOW   (32)

Functions

int ipsec_input (unsigned char *, int, int *, int *, void *)
int ipsec_output (unsigned char *, int, int *, int *, __u32, __u32, void *)


Define Documentation

#define IPSEC_3DES_KEY_LEN   (IPSEC_DES_KEY_LEN*3)
 

Defines the length of a 3DES key in bytes

Definition at line 50 of file ipsec.h.

#define IPSEC_AUTH_ICV   (12)
 

Defines the authentication key length in bytes (12 bytes for 96bit keys)

Definition at line 53 of file ipsec.h.

#define IPSEC_AUTH_MD5_KEY_LEN   (16)
 

Length of MD5 secret key

Definition at line 54 of file ipsec.h.

#define IPSEC_AUTH_SHA1_KEY_LEN   (20)
 

Length of SHA1 secret key

Definition at line 55 of file ipsec.h.

#define IPSEC_DES_KEY_LEN   (8)
 

Defines the size of a DES key in bytes

Definition at line 49 of file ipsec.h.

#define IPSEC_MAX_AUTHKEY_LEN   (IPSEC_AUTH_SHA1_KEY_LEN)
 

Maximum length of authentication keys

Definition at line 56 of file ipsec.h.

#define IPSEC_MAX_ENCKEY_LEN   (IPSEC_3DES_KEY_LEN)
 

Defines the maximum encryption key length of our IPsec system

Definition at line 51 of file ipsec.h.

#define IPSEC_MIN_IPHDR_SIZE   (20)
 

Defines the minimum IP header size (in bytes).

Definition at line 58 of file ipsec.h.

#define IPSEC_SEQ_MAX_WINDOW   (32)
 

Defines the maximum window for Sequence Number checks (used as anti-replay protection)

Definition at line 59 of file ipsec.h.


Function Documentation

int ipsec_input unsigned char *  ,
int  ,
int *  ,
int *  ,
void * 
 

int ipsec_output unsigned char *  ,
int  ,
int *  ,
int *  ,
__u32  ,
__u32  ,
void * 
 


Copyright 2003 by Christian Scheurer and Niklaus Schild