Lines Matching refs:context
70 PHP_HASH_API void PHP_FNV132Init(PHP_FNV132_CTX *context) in PHP_FNV132Init() argument
72 context->state = PHP_FNV1_32_INIT; in PHP_FNV132Init()
76 PHP_HASH_API void PHP_FNV132Update(PHP_FNV132_CTX *context, const unsigned char *input, in PHP_FNV132Update() argument
79 context->state = fnv_32_buf((void *)input, inputLen, context->state, 0); in PHP_FNV132Update()
82 PHP_HASH_API void PHP_FNV1a32Update(PHP_FNV132_CTX *context, const unsigned char *input, in PHP_FNV1a32Update() argument
85 context->state = fnv_32_buf((void *)input, inputLen, context->state, 1); in PHP_FNV1a32Update()
88 PHP_HASH_API void PHP_FNV132Final(unsigned char digest[4], PHP_FNV132_CTX * context) in PHP_FNV132Final() argument
91 memcpy(digest, &context->state, 4); in PHP_FNV132Final()
94 unsigned char *c = (unsigned char *) &context->state; in PHP_FNV132Final()
105 PHP_HASH_API void PHP_FNV164Init(PHP_FNV164_CTX *context) in PHP_FNV164Init() argument
107 context->state = PHP_FNV1_64_INIT; in PHP_FNV164Init()
111 PHP_HASH_API void PHP_FNV164Update(PHP_FNV164_CTX *context, const unsigned char *input, in PHP_FNV164Update() argument
114 context->state = fnv_64_buf((void *)input, inputLen, context->state, 0); in PHP_FNV164Update()
117 PHP_HASH_API void PHP_FNV1a64Update(PHP_FNV164_CTX *context, const unsigned char *input, in PHP_FNV1a64Update() argument
120 context->state = fnv_64_buf((void *)input, inputLen, context->state, 1); in PHP_FNV1a64Update()
123 PHP_HASH_API void PHP_FNV164Final(unsigned char digest[8], PHP_FNV164_CTX * context) in PHP_FNV164Final() argument
126 memcpy(digest, &context->state, 8); in PHP_FNV164Final()
129 unsigned char *c = (unsigned char *) &context->state; in PHP_FNV164Final()