sshblowf.h 590 B

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