36 #if !defined(HAVE_BCRYPT_PBKDF) && !defined(HAVE_BLH_H)
46 #define BLF_MAXKEYLEN ((BLF_N-2)*4)
47 #define BLF_MAXUTILIZED ((BLF_N+2)*4)
50 typedef struct BlowfishContext {
52 u_int32_t P[BLF_N + 2];
61 void Blowfish_encipher(blf_ctx *, u_int32_t *, u_int32_t *);
62 void Blowfish_decipher(blf_ctx *, u_int32_t *, u_int32_t *);
63 void Blowfish_initstate(blf_ctx *);
64 void Blowfish_expand0state(blf_ctx *,
const u_int8_t *, u_int16_t);
65 void Blowfish_expandstate
66 (blf_ctx *,
const u_int8_t *, u_int16_t,
const u_int8_t *, u_int16_t);
70 void blf_key(blf_ctx *,
const u_int8_t *, u_int16_t);
71 void blf_enc(blf_ctx *, u_int32_t *, u_int16_t);
72 void blf_dec(blf_ctx *, u_int32_t *, u_int16_t);
74 void blf_ecb_encrypt(blf_ctx *, u_int8_t *, u_int32_t);
75 void blf_ecb_decrypt(blf_ctx *, u_int8_t *, u_int32_t);
77 void blf_cbc_encrypt(blf_ctx *, u_int8_t *, u_int8_t *, u_int32_t);
78 void blf_cbc_decrypt(blf_ctx *, u_int8_t *, u_int8_t *, u_int32_t);
81 u_int32_t Blowfish_stream2word(
const u_int8_t *, u_int16_t , u_int16_t *);