Main Page Modules Compound List File List Compound Members File Members Related Pages

# des.h

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