2015-04-27 19:48:29 +00:00
|
|
|
/*
|
2022-01-22 15:38:53 +00:00
|
|
|
* Header file shared between blowfish.c and bcrypt.c. Exposes the
|
2015-04-27 19:48:29 +00:00
|
|
|
* internal Blowfish routines needed by bcrypt.
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct BlowfishContext BlowfishContext;
|
|
|
|
|
2018-09-13 13:43:04 +00:00
|
|
|
BlowfishContext *blowfish_make_context(void);
|
|
|
|
void blowfish_free_context(BlowfishContext *ctx);
|
2015-04-27 19:48:29 +00:00
|
|
|
void blowfish_initkey(BlowfishContext *ctx);
|
|
|
|
void blowfish_expandkey(BlowfishContext *ctx,
|
2018-05-26 07:31:34 +00:00
|
|
|
const void *key, short keybytes,
|
|
|
|
const void *salt, short saltbytes);
|
|
|
|
void blowfish_lsb_encrypt_ecb(void *blk, int len, BlowfishContext *ctx);
|