Lines Matching refs:cx
45 SHA1Context cx; /* SHA1 hash context */ member
160 g.cx.state[0] = 0x67452301; in hash_init()
161 g.cx.state[1] = 0xEFCDAB89; in hash_init()
162 g.cx.state[2] = 0x98BADCFE; in hash_init()
163 g.cx.state[3] = 0x10325476; in hash_init()
164 g.cx.state[4] = 0xC3D2E1F0; in hash_init()
165 g.cx.count[0] = g.cx.count[1] = 0; in hash_init()
172 j = g.cx.count[0]; in hash_step()
173 if( (g.cx.count[0] += len << 3) < j ){ in hash_step()
174 g.cx.count[1] += (len>>29)+1; in hash_step()
178 (void)memcpy(&g.cx.buffer[j], data, (i = 64-j)); in hash_step()
179 SHA1Transform(g.cx.state, g.cx.buffer); in hash_step()
181 SHA1Transform(g.cx.state, &data[i]); in hash_step()
187 (void)memcpy(&g.cx.buffer[j], &data[i], len - i); in hash_step()
200 finalcount[i] = (unsigned char)((g.cx.count[(i >= 4 ? 0 : 1)] in hash_finish()
204 while ((g.cx.count[0] & 504) != 448){ in hash_finish()
209 digest[i] = (unsigned char)((g.cx.state[i>>2] >> ((3-(i & 3)) * 8) ) & 255); in hash_finish()