Lines Matching refs:pcrc_32_tab
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) in decrypt_byte() argument
41 (void)pcrc_32_tab; in decrypt_byte()
49 static int update_keys(unsigned long* pkeys,const z_crc_t* pcrc_32_tab,int c) in update_keys() argument
66 static void init_keys(const char* passwd,unsigned long* pkeys,const z_crc_t* pcrc_32_tab) in init_keys() argument
72 update_keys(pkeys,pcrc_32_tab,(int)*passwd); in init_keys()
77 #define zdecode(pkeys,pcrc_32_tab,c) \ argument
78 (update_keys(pkeys,pcrc_32_tab,c ^= decrypt_byte(pkeys,pcrc_32_tab)))
80 #define zencode(pkeys,pcrc_32_tab,c,t) \ argument
81 (t=decrypt_byte(pkeys,pcrc_32_tab), update_keys(pkeys,pcrc_32_tab,c), (Byte)t^(c))
95 const z_crc_t* pcrc_32_tab, in crypthead() argument
115 init_keys(passwd, pkeys, pcrc_32_tab); in crypthead()
119 header[n] = (unsigned char)zencode(pkeys, pcrc_32_tab, c, t); in crypthead()
122 init_keys(passwd, pkeys, pcrc_32_tab); in crypthead()
125 buf[n] = (unsigned char)zencode(pkeys, pcrc_32_tab, header[n], t); in crypthead()
127 buf[n++] = (unsigned char)zencode(pkeys, pcrc_32_tab, (int)(crcForCrypting >> 16) & 0xff, t); in crypthead()
128 buf[n++] = (unsigned char)zencode(pkeys, pcrc_32_tab, (int)(crcForCrypting >> 24) & 0xff, t); in crypthead()