Lines Matching refs:context
74 PHP_HASH_API void PHP_FNV132Init(PHP_FNV132_CTX *context) in PHP_FNV132Init() argument
76 context->state = PHP_FNV1_32_INIT; in PHP_FNV132Init()
80 PHP_HASH_API void PHP_FNV132Update(PHP_FNV132_CTX *context, const unsigned char *input, in PHP_FNV132Update() argument
83 context->state = fnv_32_buf((void *)input, inputLen, context->state, 0); in PHP_FNV132Update()
86 PHP_HASH_API void PHP_FNV1a32Update(PHP_FNV132_CTX *context, const unsigned char *input, in PHP_FNV1a32Update() argument
89 context->state = fnv_32_buf((void *)input, inputLen, context->state, 1); in PHP_FNV1a32Update()
92 PHP_HASH_API void PHP_FNV132Final(unsigned char digest[4], PHP_FNV132_CTX * context) in PHP_FNV132Final() argument
95 memcpy(digest, &context->state, 4); in PHP_FNV132Final()
98 unsigned char *c = (unsigned char *) &context->state; in PHP_FNV132Final()
109 PHP_HASH_API void PHP_FNV164Init(PHP_FNV164_CTX *context) in PHP_FNV164Init() argument
111 context->state = PHP_FNV1_64_INIT; in PHP_FNV164Init()
115 PHP_HASH_API void PHP_FNV164Update(PHP_FNV164_CTX *context, const unsigned char *input, in PHP_FNV164Update() argument
118 context->state = fnv_64_buf((void *)input, inputLen, context->state, 0); in PHP_FNV164Update()
121 PHP_HASH_API void PHP_FNV1a64Update(PHP_FNV164_CTX *context, const unsigned char *input, in PHP_FNV1a64Update() argument
124 context->state = fnv_64_buf((void *)input, inputLen, context->state, 1); in PHP_FNV1a64Update()
127 PHP_HASH_API void PHP_FNV164Final(unsigned char digest[8], PHP_FNV164_CTX * context) in PHP_FNV164Final() argument
130 memcpy(digest, &context->state, 8); in PHP_FNV164Final()
133 unsigned char *c = (unsigned char *) &context->state; in PHP_FNV164Final()