39 #if !defined(HAVE_BCRYPT_PBKDF) && !defined(HAVE_BLH_H)
49 #define BLF_MAXKEYLEN ((BLF_N-2)*4)
50 #define BLF_MAXUTILIZED ((BLF_N+2)*4)
53 typedef struct BlowfishContext {
55 uint32_t P[BLF_N + 2];
64 void Blowfish_encipher(blf_ctx *, uint32_t *, uint32_t *);
65 void Blowfish_decipher(blf_ctx *, uint32_t *, uint32_t *);
66 void Blowfish_initstate(blf_ctx *);
67 void Blowfish_expand0state(blf_ctx *,
const uint8_t *, uint16_t);
68 void Blowfish_expandstate
69 (blf_ctx *,
const uint8_t *, uint16_t,
const uint8_t *, uint16_t);
73 void blf_key(blf_ctx *,
const uint8_t *, uint16_t);
74 void blf_enc(blf_ctx *, uint32_t *, uint16_t);
75 void blf_dec(blf_ctx *, uint32_t *, uint16_t);
77 void blf_ecb_encrypt(blf_ctx *, uint8_t *, uint32_t);
78 void blf_ecb_decrypt(blf_ctx *, uint8_t *, uint32_t);
80 void blf_cbc_encrypt(blf_ctx *, uint8_t *, uint8_t *, uint32_t);
81 void blf_cbc_decrypt(blf_ctx *, uint8_t *, uint8_t *, uint32_t);
84 uint32_t Blowfish_stream2word(
const uint8_t *, uint16_t , uint16_t *);