Lines Matching refs:context
21 PHP_HASH_API void PHP_ADLER32Init(PHP_ADLER32_CTX *context, ZEND_ATTRIBUTE_UNUSED HashTable *args) in PHP_ADLER32Init() argument
23 context->state = 1; in PHP_ADLER32Init()
26 PHP_HASH_API void PHP_ADLER32Update(PHP_ADLER32_CTX *context, const unsigned char *input, size_t le… in PHP_ADLER32Update() argument
30 s[0] = context->state & 0xffff; in PHP_ADLER32Update()
31 s[1] = (context->state >> 16) & 0xffff; in PHP_ADLER32Update()
43 context->state = s[0] + (s[1] << 16); in PHP_ADLER32Update()
46 PHP_HASH_API void PHP_ADLER32Final(unsigned char digest[4], PHP_ADLER32_CTX *context) in PHP_ADLER32Final() argument
48 digest[0] = (unsigned char) ((context->state >> 24) & 0xff); in PHP_ADLER32Final()
49 digest[1] = (unsigned char) ((context->state >> 16) & 0xff); in PHP_ADLER32Final()
50 digest[2] = (unsigned char) ((context->state >> 8) & 0xff); in PHP_ADLER32Final()
51 digest[3] = (unsigned char) (context->state & 0xff); in PHP_ADLER32Final()
52 context->state = 0; in PHP_ADLER32Final()