Lines Matching refs:context
25 PHP_HASH_API void PHP_ADLER32Init(PHP_ADLER32_CTX *context) in PHP_ADLER32Init() argument
27 context->state = 1; in PHP_ADLER32Init()
30 PHP_HASH_API void PHP_ADLER32Update(PHP_ADLER32_CTX *context, const unsigned char *input, size_t le… in PHP_ADLER32Update() argument
34 s[0] = context->state & 0xffff; in PHP_ADLER32Update()
35 s[1] = (context->state >> 16) & 0xffff; in PHP_ADLER32Update()
40 context->state = s[0] + (s[1] << 16); in PHP_ADLER32Update()
43 PHP_HASH_API void PHP_ADLER32Final(unsigned char digest[4], PHP_ADLER32_CTX *context) in PHP_ADLER32Final() argument
45 digest[0] = (unsigned char) ((context->state >> 24) & 0xff); in PHP_ADLER32Final()
46 digest[1] = (unsigned char) ((context->state >> 16) & 0xff); in PHP_ADLER32Final()
47 digest[2] = (unsigned char) ((context->state >> 8) & 0xff); in PHP_ADLER32Final()
48 digest[3] = (unsigned char) (context->state & 0xff); in PHP_ADLER32Final()
49 context->state = 0; in PHP_ADLER32Final()