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