1*16d004a2SEvgeniy Polyakov /* 2*16d004a2SEvgeniy Polyakov * DES & Triple DES EDE Cipher Algorithms. 3*16d004a2SEvgeniy Polyakov */ 4*16d004a2SEvgeniy Polyakov 5*16d004a2SEvgeniy Polyakov #ifndef __CRYPTO_DES_H 6*16d004a2SEvgeniy Polyakov #define __CRYPTO_DES_H 7*16d004a2SEvgeniy Polyakov 8*16d004a2SEvgeniy Polyakov #define DES_KEY_SIZE 8 9*16d004a2SEvgeniy Polyakov #define DES_EXPKEY_WORDS 32 10*16d004a2SEvgeniy Polyakov #define DES_BLOCK_SIZE 8 11*16d004a2SEvgeniy Polyakov 12*16d004a2SEvgeniy Polyakov #define DES3_EDE_KEY_SIZE (3 * DES_KEY_SIZE) 13*16d004a2SEvgeniy Polyakov #define DES3_EDE_EXPKEY_WORDS (3 * DES_EXPKEY_WORDS) 14*16d004a2SEvgeniy Polyakov #define DES3_EDE_BLOCK_SIZE DES_BLOCK_SIZE 15*16d004a2SEvgeniy Polyakov 16*16d004a2SEvgeniy Polyakov 17*16d004a2SEvgeniy Polyakov extern unsigned long des_ekey(u32 *pe, const u8 *k); 18*16d004a2SEvgeniy Polyakov 19*16d004a2SEvgeniy Polyakov #endif /* __CRYPTO_DES_H */ 20