diff options
Diffstat (limited to 'sys/netinet/ip_cast.h')
-rw-r--r-- | sys/netinet/ip_cast.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/sys/netinet/ip_cast.h b/sys/netinet/ip_cast.h index ea50b5fe207..e0328affb56 100644 --- a/sys/netinet/ip_cast.h +++ b/sys/netinet/ip_cast.h @@ -1,4 +1,5 @@ -/* $OpenBSD: ip_cast.h,v 1.2 1998/11/24 10:04:06 niklas Exp $ */ +/* $OpenBSD: ip_cast.h,v 1.3 1999/02/17 18:09:55 deraadt Exp $ */ + /* * CAST-128 in C * Written by Steve Reid <sreid@sea-to-sky.net> @@ -9,17 +10,13 @@ #ifndef _CAST_H_ #define _CAST_H_ -typedef u_int8_t u8; /* 8-bit unsigned */ -typedef u_int32_t u32; /* 32-bit unsigned */ - typedef struct { - u32 xkey[32]; /* Key, after expansion */ - int rounds; /* Number of rounds to use, 12 or 16 */ + u_int32_t xkey[32]; /* Key, after expansion */ + int rounds; /* Number of rounds to use, 12 or 16 */ } cast_key; -void cast_setkey(cast_key* key, u8* rawkey, int keybytes); -void cast_encrypt(cast_key* key, u8* inblock, u8* outblock); -void cast_decrypt(cast_key* key, u8* inblock, u8* outblock); +void cast_setkey __P((cast_key * key, u_int8_t * rawkey, int keybytes)); +void cast_encrypt __P((cast_key * key, u_int8_t * inblock, u_int8_t * outblock)); +void cast_decrypt __P((cast_key * key, u_int8_t * inblock, u_int8_t * outblock)); #endif /* ifndef _CAST_H_ */ - |