|
1 | 1 | /* crypt.h -- base code for traditional PKWARE encryption |
2 | | - Version 1.01e, February 12th, 2005 |
| 2 | + Version 1.2.0, September 16th, 2017 |
3 | 3 |
|
| 4 | + Copyright (C) 2012-2017 Nathan Moinvaziri |
| 5 | + https://github.com/nmoinvaz/minizip |
4 | 6 | Copyright (C) 1998-2005 Gilles Vollant |
5 | | - Modifications for Info-ZIP crypting |
6 | | - Copyright (C) 2003 Terry Thorsen |
| 7 | + Modifications for Info-ZIP crypting |
| 8 | + http://www.winimage.com/zLibDll/minizip.html |
| 9 | + Copyright (C) 2003 Terry Thorsen |
7 | 10 |
|
8 | 11 | This code is a modified version of crypting code in Info-ZIP distribution |
9 | 12 |
|
@@ -49,7 +52,7 @@ void init_keys(const char *passwd, uint32_t *pkeys, const z_crc_t *pcrc_32_tab); |
49 | 52 | int cryptrand(unsigned char *buf, unsigned int len); |
50 | 53 |
|
51 | 54 | /* Create encryption header */ |
52 | | -int crypthead(const char *passwd, uint8_t *buf, int buf_size, uint32_t *pkeys, |
| 55 | +int crypthead(const char *passwd, uint8_t *buf, int buf_size, uint32_t *pkeys, |
53 | 56 | const z_crc_t *pcrc_32_tab, uint8_t verify1, uint8_t verify2); |
54 | 57 |
|
55 | 58 | /***************************************************************************/ |
|
0 commit comments