1/* blowfish.h */ 2 3#define UWORD32 unsigned long 4#define UBYTE08 unsigned char 5 6#define MAXKEYBYTES 56 /* 448 bits */ 7 8typedef struct 9{ 10 unsigned long S[4][256], P[18]; 11} blf_ctx; 12 13unsigned long F(blf_ctx *, unsigned long x); 14void Blowfish_encipher(blf_ctx *, unsigned long *xl, unsigned long *xr); 15void Blowfish_decipher(blf_ctx *, unsigned long *xl, unsigned long *xr); 16short InitializeBlowfish(blf_ctx *, unsigned char key[], int keybytes); 17void blf_enc(blf_ctx *c, unsigned long *data, int blocks); 18void blf_dec(blf_ctx *c, unsigned long *data, int blocks); 19void blf_key(blf_ctx *c, unsigned char *key, int len); 20