]> icculus.org git repositories - taylor/freespace2.git/blob - include/encrypt.h
rendering functions mostly done; more complete shader setup
[taylor/freespace2.git] / include / encrypt.h
1 /*
2  * Copyright (C) Volition, Inc. 1999.  All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell 
5  * or otherwise commercially exploit the source or things you created based on
6  * the source.
7  */
8
9 /*
10  * $Logfile: /Freespace2/code/parse/Encrypt.h $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  * Header for encryption code common to FreeSpace and related tools
16  *
17  * $Log$
18  * Revision 1.2  2002/06/09 04:41:12  relnev
19  * added copyright header
20  *
21  * Revision 1.1.1.1  2002/05/03 03:28:12  root
22  * Initial import.
23  *
24  * 
25  * 3     3/25/99 11:26a Dave
26  * Beefed up encryption scheme so that even someone viewing the
27  * disassembly would have a hard time cracking it.
28  * 
29  * 2     10/07/98 10:53a Dave
30  * Initial checkin.
31  * 
32  * 1     10/07/98 10:50a Dave
33  * 
34  * 4     8/09/98 4:44p Lawrance
35  * support alternate encryption scheme (doesn't pack chars into 7 bits)
36  * 
37  * 3     3/31/98 4:57p Lawrance
38  * Add signature at the beginning of encrypted files
39  * 
40  * 2     3/31/98 1:14a Lawrance
41  * Get .tbl and mission file encryption working.
42  * 
43  * 1     3/30/98 11:02p Lawrance
44  *
45  * $NoKeywords: $
46  */
47
48 #ifndef __ENCRYPT_H__
49 #define __ENCRYPT_H__
50
51 // initialize encryption
52 void encrypt_init();
53
54 // Return 1 if the file is encrypted, otherwise return 0
55 int is_encrpyted(char *scrambled_text);
56
57 // Encrpyt text data
58 void encrypt(char *text, int text_len, char *scrambled_text, int *scrambled_len, int use_8bit);
59
60 // Decrypt scrambled_text
61 void unencrypt(char *scrambled_text, int scrambled_len, char *text, int *text_len);
62
63 #endif
64