1 //==========================================================================
3 // include/netinet/ip_cast.h
7 //==========================================================================
8 //####BSDCOPYRIGHTBEGIN####
10 // -------------------------------------------
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.
15 // -------------------------------------------
17 //####BSDCOPYRIGHTEND####
18 //==========================================================================
19 //#####DESCRIPTIONBEGIN####
22 // Contributors: gthomas
28 //####DESCRIPTIONEND####
30 //==========================================================================
33 /* $OpenBSD: ip_cast.h,v 1.3 1999/02/17 18:09:55 deraadt Exp $ */
37 * Written by Steve Reid <sreid@sea-to-sky.net>
38 * 100% Public Domain - no warranty
42 #ifndef _NETINET_IP_CAST_H_
43 #define _NETINET_IP_CAST_H_
46 u_int32_t xkey[32]; /* Key, after expansion */
47 int rounds; /* Number of rounds to use, 12 or 16 */
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));
54 #endif /* ifndef _NETINET_IP_CAST_H_ */