Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Evgeniy Polyakov | 16d004a | 2007-10-11 19:48:58 +0800 | [diff] [blame] | 2 | /* |
| 3 | * DES & Triple DES EDE Cipher Algorithms. |
| 4 | */ |
| 5 | |
| 6 | #ifndef __CRYPTO_DES_H |
| 7 | #define __CRYPTO_DES_H |
| 8 | |
| 9 | #define DES_KEY_SIZE 8 |
| 10 | #define DES_EXPKEY_WORDS 32 |
| 11 | #define DES_BLOCK_SIZE 8 |
| 12 | |
| 13 | #define DES3_EDE_KEY_SIZE (3 * DES_KEY_SIZE) |
| 14 | #define DES3_EDE_EXPKEY_WORDS (3 * DES_EXPKEY_WORDS) |
| 15 | #define DES3_EDE_BLOCK_SIZE DES_BLOCK_SIZE |
| 16 | |
| 17 | |
| 18 | extern unsigned long des_ekey(u32 *pe, const u8 *k); |
| 19 | |
Jussi Kivilinna | 6574e6c | 2014-06-09 20:59:54 +0300 | [diff] [blame] | 20 | extern int __des3_ede_setkey(u32 *expkey, u32 *flags, const u8 *key, |
| 21 | unsigned int keylen); |
| 22 | |
Evgeniy Polyakov | 16d004a | 2007-10-11 19:48:58 +0800 | [diff] [blame] | 23 | #endif /* __CRYPTO_DES_H */ |