Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

# des.h

    00001 #ifndef DES_H
    00002 #define DES_H
    00003
    00004 /* $Id: des.h,v 1.11 2005/07/08 08:22:52 freddy77 Exp $ */
    00005
    00006 typedef unsigned char des_cblock[8];
    00007
    00008 typedef struct des_key
    00009 {
    00010         unsigned char kn[16][8];
    00011         TDS_UINT sp[8][64];
    00012         unsigned char iperm[16][16][8];
    00013         unsigned char fperm[16][16][8];
    00014 } DES_KEY;
    00015
    00016 void tds_des_set_odd_parity(des_cblock key);
    00017 int tds_des_ecb_encrypt(const void *plaintext, int len, DES_KEY * akey, des_cblock output);
    00018 int tds_des_set_key(DES_KEY * dkey, des_cblock user_key, int len);
    00019 void tds_des_encrypt(DES_KEY * key, des_cblock block);
    00020 void _mcrypt_decrypt(DES_KEY * key, unsigned char *block);
    00021
    00022 #endif /* !DES_H */