FreeTDS API: include/des.h Source File

FreeTDS API

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
des.h
1 #ifndef DES_H
2 #define DES_H
3
4 /* $Id: des.h,v 1.13 2010-01-25 23:05:58 freddy77 Exp $ */
5
6 #include <freetds/pushvis.h>
7
8 typedef unsigned char des_cblock[8];
9
10 typedef struct des_key
11 {
12 unsigned char kn[16][8];
13 TDS_UINT sp[8][64];
14 unsigned char iperm[16][16][8];
15 unsigned char fperm[16][16][8];
16 } DES_KEY;
17
18 void tds_des_set_odd_parity(des_cblock key);
19 int tds_des_ecb_encrypt(const void *plaintext, int len, DES_KEY * akey, des_cblock output);
20 int tds_des_set_key(DES_KEY * dkey, const des_cblock user_key, int len);
21 void tds_des_encrypt(DES_KEY * key, des_cblock block);
22 void _mcrypt_decrypt(DES_KEY * key, unsigned char *block);
23
24 #include <freetds/popvis.h>
25
26 #endif /* !DES_H */
des_key
Definition: des.h:10