blowfish.h 549 B

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