blowfish.h 415 B

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