Annotation of OpenXM/src/ox_ntl/crypt/cast5/cast5.h, Revision 1.2
1.2 ! iwane 1: /* $OpenXM: OpenXM/src/ox_ntl/crypt/cast5/cast5.h,v 1.1 2004/07/15 14:51:42 iwane Exp $ */
1.1 iwane 2: /*
3: * rfc 2144
4: * The CAST-128 Encryption Algorithm
5: */
6:
7: #ifndef __CAST_128_H__
8: #define __CAST_128_H__
9:
1.2 ! iwane 10: #include <inttypes.h>
1.1 iwane 11:
12:
13: typedef struct __cast128_key_t {
14: int len;
15: int loop;
16:
17: uint32_t key[4];
18:
19: uint32_t km[16];
20: uint32_t kr[16];
21: } cast128_key;
22:
23:
24: void cast128_keyset(const unsigned char *, int, cast128_key *);
25:
26: void cast128_enc_i(cast128_key *, uint32_t ml, uint32_t mr, uint32_t *el, uint32_t *er);
27: void cast128_enc_c(cast128_key *, const unsigned char *, unsigned char *);
28:
29: void cast128_dec_i(cast128_key *, uint32_t ml, uint32_t mr, uint32_t *el, uint32_t *er);
30: void cast128_dec_c(cast128_key *, const unsigned char *, unsigned char *);
31:
32:
33: #endif /* __CAST_128_H__ */
34:
35:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>