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()
47 context->state = s[0] + (s[1] << 16); in PHP_ADLER32Update()
50 PHP_HASH_API void PHP_ADLER32Final(unsigned char digest[4], PHP_ADLER32_CTX *context) in PHP_ADLER32Final() argument
52 digest[0] = (unsigned char) ((context->state >> 24) & 0xff); in PHP_ADLER32Final()
53 digest[1] = (unsigned char) ((context->state >> 16) & 0xff); in PHP_ADLER32Final()
54 digest[2] = (unsigned char) ((context->state >> 8) & 0xff); in PHP_ADLER32Final()
55 digest[3] = (unsigned char) (context->state & 0xff); in PHP_ADLER32Final()
56 context->state = 0; in PHP_ADLER32Final()