Searched refs:pcrc_32_tab (Results 1 - 3 of 3) sorted by relevance
/vbox/src/libs/zlib-1.2.6/contrib/minizip/ |
H A D | 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 unsigned long* pcrc_32_tab) argument 48 static int update_keys(unsigned long* pkeys,const unsigned long* pcrc_32_tab,int c) argument 65 static void init_keys(const char* passwd,unsigned long* pkeys,const unsigned long* pcrc_32_tab) argument 71 update_keys(pkeys,pcrc_32_tab,(int)*passwd); 76 #define zdecode(pkeys,pcrc_32_tab,c) \ 77 (update_keys(pkeys,pcrc_32_tab,c ^= decrypt_byte(pkeys,pcrc_32_tab))) 79 #define zencode(pkeys,pcrc_32_tab,c,t) \ 80 (t=decrypt_byte(pkeys,pcrc_32_tab), update_key 90 crypthead(const char* passwd, unsigned char* buf, int bufSize, unsigned long* pkeys, const unsigned long* pcrc_32_tab, unsigned long crcForCrypting) argument [all...] |
H A D | unzip.c | 191 const unsigned long* pcrc_32_tab; member in struct:__anon17362 1619 s->pcrc_32_tab = get_crc_table(); 1620 init_keys(password,s->keys,s->pcrc_32_tab); 1630 zdecode(s->keys,s->pcrc_32_tab,source[i]); 1749 zdecode(s->keys,s->pcrc_32_tab,
|
H A D | zip.c | 160 const unsigned long* pcrc_32_tab; member in struct:__anon17363 1249 zi->ci.pcrc_32_tab = get_crc_table(); 1250 /*init_keys(password,zi->ci.keys,zi->ci.pcrc_32_tab);*/ 1252 sizeHead=crypthead(password,bufHead,RAND_HEAD_LEN,zi->ci.keys,zi->ci.pcrc_32_tab,crcForCrypting); 1373 zi->ci.buffered_data[i] = zencode(zi->ci.keys, zi->ci.pcrc_32_tab, zi->ci.buffered_data[i],t);
|
Completed in 40 milliseconds