1104476Ssam/*	$FreeBSD$	*/
2104476Ssam/*      $OpenBSD: cast.h,v 1.2 2002/03/14 01:26:51 millert Exp $       */
3104476Ssam
4139825Simp/*-
5104476Ssam *	CAST-128 in C
6104476Ssam *	Written by Steve Reid <sreid@sea-to-sky.net>
7104476Ssam *	100% Public Domain - no warranty
8104476Ssam *	Released 1997.10.11
9104476Ssam */
10104476Ssam
11104476Ssam#ifndef _CAST_H_
12104476Ssam#define _CAST_H_
13104476Ssam
14104476Ssamtypedef struct {
15104476Ssam	u_int32_t	xkey[32];	/* Key, after expansion */
16104476Ssam	int		rounds;		/* Number of rounds to use, 12 or 16 */
17104476Ssam} cast_key;
18104476Ssam
19104476Ssamvoid cast_setkey(cast_key * key, u_int8_t * rawkey, int keybytes);
20104476Ssamvoid cast_encrypt(cast_key * key, u_int8_t * inblock, u_int8_t * outblock);
21104476Ssamvoid cast_decrypt(cast_key * key, u_int8_t * inblock, u_int8_t * outblock);
22104476Ssam
23104476Ssam#endif /* ifndef _CAST_H_ */
24