Home
last modified time | relevance | path

Searched refs:pcrc_32_tab (Results 1 – 5 of 5) sorted by relevance

/AliOS-Things-master/components/py_engine/external/unzip/internal/
A Dcrypt.h30 #define CRC32(c, b) ((*(pcrc_32_tab + (((int)(c) ^ (b)) & 0xff))) ^ ((c) >> 8))
70 update_keys(pkeys, pcrc_32_tab, (int)*passwd); in init_keys()
75 #define zdecode(pkeys, pcrc_32_tab, c) \ argument
76 (update_keys(pkeys, pcrc_32_tab, c ^= decrypt_byte(pkeys, pcrc_32_tab)))
78 #define zencode(pkeys, pcrc_32_tab, c, t) \ argument
79 (t = decrypt_byte(pkeys, pcrc_32_tab), update_keys(pkeys, pcrc_32_tab, c), t ^ (c))
94 const unsigned long* pcrc_32_tab;
113 init_keys(passwd, pkeys, pcrc_32_tab);
116 header[n] = (unsigned char)zencode(pkeys, pcrc_32_tab, c, t);
119 init_keys(passwd, pkeys, pcrc_32_tab);
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/contrib/minizip/
A Dcrypt.h30 #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) in decrypt_byte() argument
71 update_keys(pkeys,pcrc_32_tab,(int)*passwd); in init_keys()
76 #define zdecode(pkeys,pcrc_32_tab,c) \ argument
77 (update_keys(pkeys,pcrc_32_tab,c ^= decrypt_byte(pkeys,pcrc_32_tab)))
79 #define zencode(pkeys,pcrc_32_tab,c,t) \ argument
80 (t=decrypt_byte(pkeys,pcrc_32_tab), update_keys(pkeys,pcrc_32_tab,c), t^(c))
94 const z_crc_t* pcrc_32_tab, in crypthead() argument
114 init_keys(passwd, pkeys, pcrc_32_tab); in crypthead()
118 header[n] = (unsigned char)zencode(pkeys, pcrc_32_tab, c, t); in crypthead()
[all …]
A Dunzip.c191 const z_crc_t* pcrc_32_tab; member
1619 s->pcrc_32_tab = get_crc_table(); in unzOpenCurrentFile3()
1620 init_keys(password,s->keys,s->pcrc_32_tab); in unzOpenCurrentFile3()
1630 zdecode(s->keys,s->pcrc_32_tab,source[i]); in unzOpenCurrentFile3()
1749 zdecode(s->keys,s->pcrc_32_tab, in unzReadCurrentFile()
A Dzip.c160 const z_crc_t* pcrc_32_tab; member
1249 zi->ci.pcrc_32_tab = get_crc_table(); in zipOpenNewFileInZip4_64()
1252 … sizeHead=crypthead(password,bufHead,RAND_HEAD_LEN,zi->ci.keys,zi->ci.pcrc_32_tab,crcForCrypting); in zipOpenNewFileInZip4_64()
1373 … zi->ci.buffered_data[i] = zencode(zi->ci.keys, zi->ci.pcrc_32_tab, zi->ci.buffered_data[i],t); in zip64FlushWriteBuffer()
/AliOS-Things-master/components/py_engine/external/unzip/src/
A Dunzip.c144 const unsigned long* pcrc_32_tab; member
1168 s->pcrc_32_tab = get_crc_table();
1169 init_keys(password, s->keys, s->pcrc_32_tab);
1179 zdecode(s->keys, s->pcrc_32_tab, source[i]);
1288 zdecode(s->keys, s->pcrc_32_tab,

Completed in 17 milliseconds