Lines Matching refs:state
28 context->state = ~0; in PHP_CRC32Init()
36 context->state = (context->state << 8) ^ crc32_table[(context->state >> 24) ^ (input[i] & 0xff)]; in PHP_CRC32Update()
45 context->state = (context->state >> 8) ^ crc32b_table[(context->state ^ input[i]) & 0xff]; in PHP_CRC32BUpdate()
51 context->state=~context->state; in PHP_CRC32Final()
52 digest[3] = (unsigned char) ((context->state >> 24) & 0xff); in PHP_CRC32Final()
53 digest[2] = (unsigned char) ((context->state >> 16) & 0xff); in PHP_CRC32Final()
54 digest[1] = (unsigned char) ((context->state >> 8) & 0xff); in PHP_CRC32Final()
55 digest[0] = (unsigned char) (context->state & 0xff); in PHP_CRC32Final()
56 context->state = 0; in PHP_CRC32Final()
61 context->state=~context->state; in PHP_CRC32BFinal()
62 digest[0] = (unsigned char) ((context->state >> 24) & 0xff); in PHP_CRC32BFinal()
63 digest[1] = (unsigned char) ((context->state >> 16) & 0xff); in PHP_CRC32BFinal()
64 digest[2] = (unsigned char) ((context->state >> 8) & 0xff); in PHP_CRC32BFinal()
65 digest[3] = (unsigned char) (context->state & 0xff); in PHP_CRC32BFinal()
66 context->state = 0; in PHP_CRC32BFinal()
71 copy_context->state = orig_context->state; in PHP_CRC32Copy()