home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / include / crypto / des.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-12-24  |  403 b   |  20 lines

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