Annotation of src/include/cast.h, Revision 1.2
1.2 ! provos 1: /* $OpenBSD: cast.h,v 1.1 1998/07/21 22:23:17 provos Exp $ */
1.1 provos 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 {
1.2 ! provos 13: u_int32_t xkey[32]; /* Key, after expansion */
1.1 provos 14: int rounds; /* Number of rounds to use, 12 or 16 */
15: } cast_key;
16:
1.2 ! provos 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);
1.1 provos 20:
21: #endif /* ifndef _CAST_H_ */
22: