mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-08 08:58:00 +00:00
229af2b5bf
This is more or less the same job as the SSH-1 case, only more extensive, because we have a wider range of ciphers. I'm a bit disappointed about the AES case, in particular, because I feel as if it ought to have been possible to arrange to combine this layer of vtable dispatch with the subsidiary one that selects between hardware and software implementations of the underlying cipher. I may come back later and have another try at that, in fact.
15 lines
552 B
C
15 lines
552 B
C
/*
|
|
* Header file shared between sshblowf.c and sshbcrypt.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);
|