xref: /linux/include/crypto/des.h (revision 6574e6c64e971c9adb629e81e497afdb52b1c9df)
116d004a2SEvgeniy Polyakov /*
216d004a2SEvgeniy Polyakov  * DES & Triple DES EDE Cipher Algorithms.
316d004a2SEvgeniy Polyakov  */
416d004a2SEvgeniy Polyakov 
516d004a2SEvgeniy Polyakov #ifndef __CRYPTO_DES_H
616d004a2SEvgeniy Polyakov #define __CRYPTO_DES_H
716d004a2SEvgeniy Polyakov 
816d004a2SEvgeniy Polyakov #define DES_KEY_SIZE		8
916d004a2SEvgeniy Polyakov #define DES_EXPKEY_WORDS	32
1016d004a2SEvgeniy Polyakov #define DES_BLOCK_SIZE		8
1116d004a2SEvgeniy Polyakov 
1216d004a2SEvgeniy Polyakov #define DES3_EDE_KEY_SIZE	(3 * DES_KEY_SIZE)
1316d004a2SEvgeniy Polyakov #define DES3_EDE_EXPKEY_WORDS	(3 * DES_EXPKEY_WORDS)
1416d004a2SEvgeniy Polyakov #define DES3_EDE_BLOCK_SIZE	DES_BLOCK_SIZE
1516d004a2SEvgeniy Polyakov 
1616d004a2SEvgeniy Polyakov 
1716d004a2SEvgeniy Polyakov extern unsigned long des_ekey(u32 *pe, const u8 *k);
1816d004a2SEvgeniy Polyakov 
19*6574e6c6SJussi Kivilinna extern int __des3_ede_setkey(u32 *expkey, u32 *flags, const u8 *key,
20*6574e6c6SJussi Kivilinna 			     unsigned int keylen);
21*6574e6c6SJussi Kivilinna 
2216d004a2SEvgeniy Polyakov #endif /* __CRYPTO_DES_H */
23