Annotation of OpenXM/src/ox_ntl/crypt/blowfish/blowfish.h, Revision 1.2
1.2 ! iwane 1: /* $OpenXM: OpenXM/src/ox_ntl/crypt/blowfish/blowfish.h,v 1.1 2004/07/22 12:12:05 iwane Exp $ */
1.1 iwane 2:
3: #ifndef __BLOWFISH_H__
4: #define __BLOWFISH_H__
5:
1.2 ! iwane 6: #include <inttypes.h>
1.1 iwane 7:
8: typedef struct __blowfish_key_t {
9: uint32_t p[18];
10: uint32_t s[4 * 256];
11: } blowfish_key;
12:
13:
1.2 ! iwane 14: #ifdef __cplusplus
! 15: extern "C" {
! 16: #endif /* __cplusplus */
! 17:
1.1 iwane 18: void blowfish_enc_i(const blowfish_key *, uint32_t, uint32_t, uint32_t *, uint32_t *);
19: void blowfish_dec_i(const blowfish_key *, uint32_t, uint32_t, uint32_t *, uint32_t *);
20:
21: void blowfish_setkey(const unsigned char *, int, blowfish_key *);
1.2 ! iwane 22:
! 23: #ifdef __cplusplus
! 24: }
! 25: #endif /* __cplusplus */
1.1 iwane 26:
27: #endif /* __BLOWFISH_H__ */
28:
29:
30:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>