1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00
putty-source/crypto/blowfish.h

15 lines
549 B
C
Raw Permalink Normal View History

/*
* Header file shared between blowfish.c and bcrypt.c. Exposes the
* internal Blowfish routines needed by bcrypt.
*/
typedef struct BlowfishContext BlowfishContext;
BlowfishContext *blowfish_make_context(void);
void blowfish_free_context(BlowfishContext *ctx);
void blowfish_initkey(BlowfishContext *ctx);
void blowfish_expandkey(BlowfishContext *ctx,
const void *key, short keybytes,
const void *salt, short saltbytes);
void blowfish_lsb_encrypt_ecb(void *blk, int len, BlowfishContext *ctx);