]> git.karo-electronics.de Git - karo-tx-redboot.git/blob - packages/net/tcpip/v2_0/include/netinet/ip_cast.h
Initial revision
[karo-tx-redboot.git] / packages / net / tcpip / v2_0 / include / netinet / ip_cast.h
1 //==========================================================================
2 //
3 //      include/netinet/ip_cast.h
4 //
5 //      
6 //
7 //==========================================================================
8 //####BSDCOPYRIGHTBEGIN####
9 //
10 // -------------------------------------------
11 //
12 // Portions of this software may have been derived from OpenBSD or other sources,
13 // and are covered by the appropriate copyright disclaimers included herein.
14 //
15 // -------------------------------------------
16 //
17 //####BSDCOPYRIGHTEND####
18 //==========================================================================
19 //#####DESCRIPTIONBEGIN####
20 //
21 // Author(s):    gthomas
22 // Contributors: gthomas
23 // Date:         2000-01-10
24 // Purpose:      
25 // Description:  
26 //              
27 //
28 //####DESCRIPTIONEND####
29 //
30 //==========================================================================
31
32
33 /*      $OpenBSD: ip_cast.h,v 1.3 1999/02/17 18:09:55 deraadt Exp $       */
34
35 /*
36  *      CAST-128 in C
37  *      Written by Steve Reid <sreid@sea-to-sky.net>
38  *      100% Public Domain - no warranty
39  *      Released 1997.10.11
40  */
41
42 #ifndef _NETINET_IP_CAST_H_
43 #define _NETINET_IP_CAST_H_
44
45 typedef struct {
46         u_int32_t       xkey[32];       /* Key, after expansion */
47         int             rounds;         /* Number of rounds to use, 12 or 16 */
48 } cast_key;
49
50 void cast_setkey __P((cast_key * key, u_int8_t * rawkey, int keybytes));
51 void cast_encrypt __P((cast_key * key, u_int8_t * inblock, u_int8_t * outblock));
52 void cast_decrypt __P((cast_key * key, u_int8_t * inblock, u_int8_t * outblock));
53
54 #endif /* ifndef _NETINET_IP_CAST_H_ */