Lines Matching refs:state
26 context->state = ~0; in PHP_CRC32Init()
34 context->state = (context->state << 8) ^ crc32_table[(context->state >> 24) ^ (input[i] & 0xff)]; in PHP_CRC32Update()
43 context->state = (context->state >> 8) ^ crc32b_table[(context->state ^ input[i]) & 0xff]; in PHP_CRC32BUpdate()
49 context->state=~context->state; in PHP_CRC32Final()
50 digest[3] = (unsigned char) ((context->state >> 24) & 0xff); in PHP_CRC32Final()
51 digest[2] = (unsigned char) ((context->state >> 16) & 0xff); in PHP_CRC32Final()
52 digest[1] = (unsigned char) ((context->state >> 8) & 0xff); in PHP_CRC32Final()
53 digest[0] = (unsigned char) (context->state & 0xff); in PHP_CRC32Final()
54 context->state = 0; in PHP_CRC32Final()
59 context->state=~context->state; in PHP_CRC32BFinal()
60 digest[0] = (unsigned char) ((context->state >> 24) & 0xff); in PHP_CRC32BFinal()
61 digest[1] = (unsigned char) ((context->state >> 16) & 0xff); in PHP_CRC32BFinal()
62 digest[2] = (unsigned char) ((context->state >> 8) & 0xff); in PHP_CRC32BFinal()
63 digest[3] = (unsigned char) (context->state & 0xff); in PHP_CRC32BFinal()
64 context->state = 0; in PHP_CRC32BFinal()
69 copy_context->state = orig_context->state; in PHP_CRC32Copy()