Lines Matching refs:context
72 PHP_HASH_API void PHP_FNV132Init(PHP_FNV132_CTX *context) in PHP_FNV132Init() argument
74 context->state = PHP_FNV1_32_INIT; in PHP_FNV132Init()
78 PHP_HASH_API void PHP_FNV132Update(PHP_FNV132_CTX *context, const unsigned char *input, in PHP_FNV132Update() argument
81 context->state = fnv_32_buf((void *)input, inputLen, context->state, 0); in PHP_FNV132Update()
84 PHP_HASH_API void PHP_FNV1a32Update(PHP_FNV132_CTX *context, const unsigned char *input, in PHP_FNV1a32Update() argument
87 context->state = fnv_32_buf((void *)input, inputLen, context->state, 1); in PHP_FNV1a32Update()
90 PHP_HASH_API void PHP_FNV132Final(unsigned char digest[4], PHP_FNV132_CTX * context) in PHP_FNV132Final() argument
93 memcpy(digest, &context->state, 4); in PHP_FNV132Final()
96 unsigned char *c = (unsigned char *) &context->state; in PHP_FNV132Final()
107 PHP_HASH_API void PHP_FNV164Init(PHP_FNV164_CTX *context) in PHP_FNV164Init() argument
109 context->state = PHP_FNV1_64_INIT; in PHP_FNV164Init()
113 PHP_HASH_API void PHP_FNV164Update(PHP_FNV164_CTX *context, const unsigned char *input, in PHP_FNV164Update() argument
116 context->state = fnv_64_buf((void *)input, inputLen, context->state, 0); in PHP_FNV164Update()
119 PHP_HASH_API void PHP_FNV1a64Update(PHP_FNV164_CTX *context, const unsigned char *input, in PHP_FNV1a64Update() argument
122 context->state = fnv_64_buf((void *)input, inputLen, context->state, 1); in PHP_FNV1a64Update()
125 PHP_HASH_API void PHP_FNV164Final(unsigned char digest[8], PHP_FNV164_CTX * context) in PHP_FNV164Final() argument
128 memcpy(digest, &context->state, 8); in PHP_FNV164Final()
131 unsigned char *c = (unsigned char *) &context->state; in PHP_FNV164Final()