blowfish.h 376 B

1234567891011121314151617181920212223
  1. /*
  2. * Common values for blowfish algorithms
  3. */
  4. #ifndef _CRYPTO_BLOWFISH_H
  5. #define _CRYPTO_BLOWFISH_H
  6. #include <linux/types.h>
  7. #include <linux/crypto.h>
  8. #define BF_BLOCK_SIZE 8
  9. #define BF_MIN_KEY_SIZE 4
  10. #define BF_MAX_KEY_SIZE 56
  11. struct bf_ctx {
  12. u32 p[18];
  13. u32 s[1024];
  14. };
  15. int blowfish_setkey(struct crypto_tfm *tfm, const u8 *key,
  16. unsigned int key_len);
  17. #endif