Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 52 lines (42 sloc) 1.938 kb
1511c27 @ckolivas header-mangling-part-2-move-all-function-prototypes
authored
1 /*
2 Copyright (C) 2006-2011 Con Kolivas
3 Copyright (C) 2011 Peter Hyman
4 Copyright (C) 1998 Andrew Tridgell
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19 #ifndef LRZIP_UTIL_H
20 #define LRZIP_UTIL_H
21
22 #include "lrzip_private.h"
23
cbff8fa move liblrzip.h contents to lrzip_private.h global variables-----
discomfitor authored
24 void register_infile(rzip_control *control, const char *name, char delete);
25 void register_outfile(rzip_control *control, const char *name, char delete);
26 void unlink_files(rzip_control *control);
27 void register_outputfile(rzip_control *control, FILE *f);
28 void fatal(const rzip_control *control, const char *format, ...);
29 void failure(const rzip_control *control, const char *format, ...);
e85e4df move compression overhead calcs out of main()
discomfitor authored
30 void setup_overhead(rzip_control *control);
1c64dcf more initialization stuff out of main(), remove weird coincidentally …
discomfitor authored
31 void setup_ram(rzip_control *control);
1511c27 @ckolivas header-mangling-part-2-move-all-function-prototypes
authored
32 void round_to_page(i64 *size);
cbff8fa move liblrzip.h contents to lrzip_private.h global variables-----
discomfitor authored
33 void get_rand(rzip_control *control, uchar *buf, int len);
8c8f5bd @ckolivas lrz_crypt tweaks courtesy of Serge Belyshev.
authored
34 void lrz_stretch(rzip_control *control);
35 void lrz_stretch2(rzip_control *control);
36 void lrz_crypt(const rzip_control *control, uchar *buf, i64 len, const uchar *salt, int encrypt);
37
38 #define LRZ_DECRYPT (0)
39 #define LRZ_ENCRYPT (1)
40
c533b03 @ckolivas Fix trivial compiler warnings.
authored
41 static inline void lrz_encrypt(const rzip_control *control, uchar *buf, i64 len, const uchar *salt)
8c8f5bd @ckolivas lrz_crypt tweaks courtesy of Serge Belyshev.
authored
42 {
43 lrz_crypt(control, buf, len, salt, LRZ_ENCRYPT);
44 }
45
c533b03 @ckolivas Fix trivial compiler warnings.
authored
46 static inline void lrz_decrypt(const rzip_control *control, uchar *buf, i64 len, const uchar *salt)
8c8f5bd @ckolivas lrz_crypt tweaks courtesy of Serge Belyshev.
authored
47 {
48 lrz_crypt(control, buf, len, salt, LRZ_DECRYPT);
49 }
1511c27 @ckolivas header-mangling-part-2-move-all-function-prototypes
authored
50
51 #endif
Something went wrong with that request. Please try again.