Lines Matching refs:context
23 PHP_HASH_API void PHP_ADLER32Init(PHP_ADLER32_CTX *context) in PHP_ADLER32Init() argument
25 context->state = 1; in PHP_ADLER32Init()
28 PHP_HASH_API void PHP_ADLER32Update(PHP_ADLER32_CTX *context, const unsigned char *input, size_t le… in PHP_ADLER32Update() argument
32 s[0] = context->state & 0xffff; in PHP_ADLER32Update()
33 s[1] = (context->state >> 16) & 0xffff; in PHP_ADLER32Update()
45 context->state = s[0] + (s[1] << 16); in PHP_ADLER32Update()
48 PHP_HASH_API void PHP_ADLER32Final(unsigned char digest[4], PHP_ADLER32_CTX *context) in PHP_ADLER32Final() argument
50 digest[0] = (unsigned char) ((context->state >> 24) & 0xff); in PHP_ADLER32Final()
51 digest[1] = (unsigned char) ((context->state >> 16) & 0xff); in PHP_ADLER32Final()
52 digest[2] = (unsigned char) ((context->state >> 8) & 0xff); in PHP_ADLER32Final()
53 digest[3] = (unsigned char) (context->state & 0xff); in PHP_ADLER32Final()
54 context->state = 0; in PHP_ADLER32Final()