]> asedeno.scripts.mit.edu Git - PuTTY.git/blob - sshblowf.h
first pass
[PuTTY.git] / sshblowf.h
1 /*
2  * Header file shared between sshblowf.c and sshbcrypt.c. Exposes the
3  * internal Blowfish routines needed by bcrypt.
4  */
5
6 typedef struct BlowfishContext BlowfishContext;
7
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);