75 #ifdef POK_NEEDS_PROTOCOLS_BLOWFISH
77 #ifndef HEADER_BLOWFISH_H
78 #define HEADER_BLOWFISH_H
93 #define BF_LONG uint32_t
102 BF_LONG P[BF_ROUNDS+2];
107 void private_BF_set_key(
BF_KEY *key,
int len,
const unsigned char *data);
109 void BF_set_key(
BF_KEY *key,
int len,
const unsigned char *data);
111 void BF_encrypt(BF_LONG *data,
const BF_KEY *key);
112 void BF_decrypt(BF_LONG *data,
const BF_KEY *key);
114 void BF_ecb_encrypt(
const unsigned char *in,
unsigned char *out,
115 const BF_KEY *key,
int enc);
116 void BF_cbc_encrypt(
const unsigned char *in,
unsigned char *out,
long length,
117 const BF_KEY *schedule,
unsigned char *ivec,
int enc);
118 void BF_cfb64_encrypt(
const unsigned char *in,
unsigned char *out,
long length,
119 const BF_KEY *schedule,
unsigned char *ivec,
int *num,
int enc);
120 void BF_ofb64_encrypt(
const unsigned char *in,
unsigned char *out,
long length,
121 const BF_KEY *schedule,
unsigned char *ivec,
int *num);
122 const char *BF_options(
void);