Lines Matching refs:context
86 PHP_HASH_API void PHP_FNV132Init(PHP_FNV132_CTX *context, ZEND_ATTRIBUTE_UNUSED HashTable *args) in PHP_FNV132Init() argument
88 context->state = PHP_FNV1_32_INIT; in PHP_FNV132Init()
92 PHP_HASH_API void PHP_FNV132Update(PHP_FNV132_CTX *context, const unsigned char *input, in PHP_FNV132Update() argument
95 context->state = fnv_32_buf((void *)input, inputLen, context->state, 0); in PHP_FNV132Update()
98 PHP_HASH_API void PHP_FNV1a32Update(PHP_FNV132_CTX *context, const unsigned char *input, in PHP_FNV1a32Update() argument
101 context->state = fnv_32_buf((void *)input, inputLen, context->state, 1); in PHP_FNV1a32Update()
104 PHP_HASH_API void PHP_FNV132Final(unsigned char digest[4], PHP_FNV132_CTX * context) in PHP_FNV132Final() argument
107 memcpy(digest, &context->state, 4); in PHP_FNV132Final()
110 unsigned char *c = (unsigned char *) &context->state; in PHP_FNV132Final()
121 PHP_HASH_API void PHP_FNV164Init(PHP_FNV164_CTX *context, ZEND_ATTRIBUTE_UNUSED HashTable *args) in PHP_FNV164Init() argument
123 context->state = PHP_FNV1_64_INIT; in PHP_FNV164Init()
127 PHP_HASH_API void PHP_FNV164Update(PHP_FNV164_CTX *context, const unsigned char *input, in PHP_FNV164Update() argument
130 context->state = fnv_64_buf((void *)input, inputLen, context->state, 0); in PHP_FNV164Update()
133 PHP_HASH_API void PHP_FNV1a64Update(PHP_FNV164_CTX *context, const unsigned char *input, in PHP_FNV1a64Update() argument
136 context->state = fnv_64_buf((void *)input, inputLen, context->state, 1); in PHP_FNV1a64Update()
139 PHP_HASH_API void PHP_FNV164Final(unsigned char digest[8], PHP_FNV164_CTX * context) in PHP_FNV164Final() argument
142 memcpy(digest, &context->state, 8); in PHP_FNV164Final()
145 unsigned char *c = (unsigned char *) &context->state; in PHP_FNV164Final()