des.h 503 B

1234567891011121314151617181920212223
  1. /*
  2. * DES & Triple DES EDE Cipher Algorithms.
  3. */
  4. #ifndef __CRYPTO_DES_H
  5. #define __CRYPTO_DES_H
  6. #define DES_KEY_SIZE 8
  7. #define DES_EXPKEY_WORDS 32
  8. #define DES_BLOCK_SIZE 8
  9. #define DES3_EDE_KEY_SIZE (3 * DES_KEY_SIZE)
  10. #define DES3_EDE_EXPKEY_WORDS (3 * DES_EXPKEY_WORDS)
  11. #define DES3_EDE_BLOCK_SIZE DES_BLOCK_SIZE
  12. extern unsigned long des_ekey(u32 *pe, const u8 *k);
  13. extern int __des3_ede_setkey(u32 *expkey, u32 *flags, const u8 *key,
  14. unsigned int keylen);
  15. #endif /* __CRYPTO_DES_H */