]> icculus.org git repositories - taylor/freespace2.git/blob - include/encrypt.h
Initial revision
[taylor/freespace2.git] / include / encrypt.h
1 /*
2  * $Logfile: /Freespace2/code/parse/Encrypt.h $
3  * $Revision$
4  * $Date$
5  * $Author$
6  *
7  * Header for encryption code common to FreeSpace and related tools
8  *
9  * $Log$
10  * Revision 1.1  2002/05/03 03:28:12  root
11  * Initial revision
12  *
13  * 
14  * 3     3/25/99 11:26a Dave
15  * Beefed up encryption scheme so that even someone viewing the
16  * disassembly would have a hard time cracking it.
17  * 
18  * 2     10/07/98 10:53a Dave
19  * Initial checkin.
20  * 
21  * 1     10/07/98 10:50a Dave
22  * 
23  * 4     8/09/98 4:44p Lawrance
24  * support alternate encryption scheme (doesn't pack chars into 7 bits)
25  * 
26  * 3     3/31/98 4:57p Lawrance
27  * Add signature at the beginning of encrypted files
28  * 
29  * 2     3/31/98 1:14a Lawrance
30  * Get .tbl and mission file encryption working.
31  * 
32  * 1     3/30/98 11:02p Lawrance
33  *
34  * $NoKeywords: $
35  */
36
37 #ifndef __ENCRYPT_H__
38 #define __ENCRYPT_H__
39
40 // initialize encryption
41 void encrypt_init();
42
43 // Return 1 if the file is encrypted, otherwise return 0
44 int is_encrpyted(char *scrambled_text);
45
46 // Encrpyt text data
47 void encrypt(char *text, int text_len, char *scrambled_text, int *scrambled_len, int use_8bit);
48
49 // Decrypt scrambled_text
50 void unencrypt(char *scrambled_text, int scrambled_len, char *text, int *text_len);
51
52 #endif
53