summaryrefslogtreecommitdiffstats
path: root/generic/blowfish.h
blob: c6b4396a746e16231567dd935e4bf896fb52af56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
typedef	unsigned int	u32;
typedef	unsigned char	u8;

typedef struct {
	u32	S[4][256];
	u32	P[18];
} blf_ctx;

void blf_enc(blf_ctx *c, u32 *data, int blocks);
void blf_dec(blf_ctx *c, u32 *data, int blocks);
void blf_key(blf_ctx *c, unsigned char *key, int len);