1 /*      $OpenBSD: cast.h,v 1.2 1998/07/21 22:42:01 provos Exp $       */
2 /*
3  *	CAST-128 in C
4  *	Written by Steve Reid <sreid@sea-to-sky.net>
5  *	100% Public Domain - no warranty
6  *	Released 1997.10.11
7  */
8 
9 #ifndef _CAST_H_
10 #define _CAST_H_
11 
12 typedef struct {
13 	u_int32_t xkey[32];	/* Key, after expansion */
14 	int rounds;		/* Number of rounds to use, 12 or 16 */
15 } cast_key;
16 
17 void cast_setkey(cast_key* key, u_int8_t* rawkey, int keybytes);
18 void cast_encrypt(cast_key* key, u_int8_t* inblock, u_int8_t* outblock);
19 void cast_decrypt(cast_key* key, u_int8_t* inblock, u_int8_t* outblock);
20 
21 #endif /* ifndef _CAST_H_ */
22 
23