/src/common/dist/zlib/contrib/minizip/ |
crypt.h | 30 #define CRC32(c, b) ((*(pcrc_32_tab+(((int)(c) ^ (b)) & 0xff))) ^ ((c) >> 8)) 35 static int decrypt_byte(unsigned long* pkeys, const z_crc_t* pcrc_32_tab) { 40 (void)pcrc_32_tab; 48 static int update_keys(unsigned long* pkeys, const z_crc_t* pcrc_32_tab, int c) { 64 static void init_keys(const char* passwd, unsigned long* pkeys, const z_crc_t* pcrc_32_tab) { 69 update_keys(pkeys,pcrc_32_tab,(int)*passwd); 74 #define zdecode(pkeys,pcrc_32_tab,c) \ 75 (update_keys(pkeys,pcrc_32_tab,c ^= decrypt_byte(pkeys,pcrc_32_tab))) 77 #define zencode(pkeys,pcrc_32_tab,c,t) [all...] |
unzip.c | 186 const z_crc_t* pcrc_32_tab; member in struct:__anon41b228de0208 1491 s->pcrc_32_tab = get_crc_table(); 1492 init_keys(password,s->keys,s->pcrc_32_tab); 1502 zdecode(s->keys,s->pcrc_32_tab,source[i]); 1616 zdecode(s->keys,s->pcrc_32_tab,
|
zip.c | 156 const z_crc_t* pcrc_32_tab; member in struct:__anonda15a5bb0108 1220 zi->ci.pcrc_32_tab = get_crc_table(); 1221 /*init_keys(password,zi->ci.keys,zi->ci.pcrc_32_tab);*/ 1223 sizeHead=crypthead(password,bufHead,RAND_HEAD_LEN,zi->ci.keys,zi->ci.pcrc_32_tab,crcForCrypting); 1336 zi->ci.buffered_data[i] = zencode(zi->ci.keys, zi->ci.pcrc_32_tab, zi->ci.buffered_data[i],t);
|