Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Jussi Kivilinna | 52ba867 | 2011-09-02 01:45:07 +0300 | [diff] [blame] | 2 | /* |
| 3 | * Common values for blowfish algorithms |
| 4 | */ |
| 5 | |
| 6 | #ifndef _CRYPTO_BLOWFISH_H |
| 7 | #define _CRYPTO_BLOWFISH_H |
| 8 | |
| 9 | #include <linux/types.h> |
| 10 | #include <linux/crypto.h> |
| 11 | |
| 12 | #define BF_BLOCK_SIZE 8 |
| 13 | #define BF_MIN_KEY_SIZE 4 |
| 14 | #define BF_MAX_KEY_SIZE 56 |
| 15 | |
| 16 | struct bf_ctx { |
| 17 | u32 p[18]; |
| 18 | u32 s[1024]; |
| 19 | }; |
| 20 | |
| 21 | int blowfish_setkey(struct crypto_tfm *tfm, const u8 *key, |
| 22 | unsigned int key_len); |
| 23 | |
| 24 | #endif |