Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | daniel-mar | 1 | |
2 | /* Crypt.h (full version) by Info-ZIP. Last revised: [see CR_VERSION_DATE] |
||
3 | * |
||
4 | * This header file is not copyrighted, and non-beta versions may be |
||
5 | * distributed without restriction. |
||
6 | * This version modified by Chris Vleghert for BCB/Delphi Zip. |
||
7 | ** distributed under LGPL license ** see license.txt for details |
||
8 | |||
9 | Copyright (c) 1990-2007 Info-ZIP. All rights reserved. |
||
10 | |||
11 | See the accompanying file LICENSE, version 2007-Mar-4 or later |
||
12 | (the contents of which are also included in zip.h) for terms of use. |
||
13 | If, for some reason, all these files are missing, the Info-ZIP license |
||
14 | also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html |
||
15 | |||
16 | parts Copyright (C) 1997 Mike White, Eric W. Engler |
||
17 | ************************************************************************ |
||
18 | Copyright (C) 2009, 2010 by Russell J. Peters, Roger Aelbrecht |
||
19 | |||
20 | This file is part of TZipMaster Version 1.9. |
||
21 | |||
22 | TZipMaster is free software: you can redistribute it and/or modify |
||
23 | it under the terms of the GNU Lesser General Public License as published by |
||
24 | the Free Software Foundation, either version 3 of the License, or |
||
25 | (at your option) any later version. |
||
26 | |||
27 | TZipMaster is distributed in the hope that it will be useful, |
||
28 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
29 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
30 | GNU Lesser General Public License for more details. |
||
31 | |||
32 | You should have received a copy of the GNU Lesser General Public License |
||
33 | along with TZipMaster. If not, see <http://www.gnu.org/licenses/>. |
||
34 | |||
35 | contact: problems@delphizip.org (include ZipMaster in the subject). |
||
36 | updates: http://www.delphizip.org |
||
37 | DelphiZip maillist subscribe at http://www.freelists.org/list/delphizip |
||
38 | ************************************************************************/ |
||
39 | |||
40 | #ifndef __crypt_h /* don't include more than once */ |
||
41 | #define __crypt_h |
||
42 | |||
43 | #define CR_MAJORVER 2 |
||
44 | #define CR_MINORVER 7 |
||
45 | #define CR_BETA_VER "" |
||
46 | #define CR_VERSION_DATE "22 April 1997" /* last public release date */ |
||
47 | #define CR_RELEASE |
||
48 | |||
49 | #define PWLEN 80 /* Input buffer size for reading encryption key. */ |
||
50 | #define RAND_HEAD_LEN 12 /* Length of encryption random header. */ |
||
51 | |||
52 | typedef unsigned long Keys[3]; |
||
53 | |||
54 | int _fastcall decrypt_byte(Keys keys); |
||
55 | int _fastcall update_keys(int c, Keys keys); |
||
56 | void _fastcall init_keys(const char *passwd, Keys keys); |
||
57 | int _fastcall zencode(int c, Keys keys); |
||
58 | int _fastcall zdecode(int c, Keys keys); |
||
59 | #endif /* !__crypt_h */ |
||
60 | |||
61 | |||
62 | |||
63 |