2 * Header file shared between sshblowf.c and sshbcrypt.c. Exposes the
3 * internal Blowfish routines needed by bcrypt.
6 typedef struct BlowfishContext BlowfishContext
;
8 void *blowfish_make_context(void);
9 void blowfish_free_context(void *handle
);
10 void blowfish_initkey(BlowfishContext
*ctx
);
11 void blowfish_expandkey(BlowfishContext
*ctx
,
12 const unsigned char *key
, short keybytes
,
13 const unsigned char *salt
, short saltbytes
);
14 void blowfish_lsb_encrypt_ecb(unsigned char *blk
, int len
,
15 BlowfishContext
*ctx
);