Lines Matching refs:context

131 	void *context;  in php_hash_do_hash()  local
155 context = emalloc(ops->context_size); in php_hash_do_hash()
156 ops->hash_init(context); in php_hash_do_hash()
163 ops->hash_update(context, (unsigned char *) buf, n); in php_hash_do_hash()
167 ops->hash_update(context, (unsigned char *) data, data_len); in php_hash_do_hash()
171 ops->hash_final((unsigned char *) digest, context); in php_hash_do_hash()
172 efree(context); in php_hash_do_hash()
212 void *context; in php_hash_do_hash_hmac() local
237 context = emalloc(ops->context_size); in php_hash_do_hash_hmac()
238 ops->hash_init(context); in php_hash_do_hash_hmac()
245 ops->hash_update(context, (unsigned char *) key, key_len); in php_hash_do_hash_hmac()
246 ops->hash_final((unsigned char *) K, context); in php_hash_do_hash_hmac()
248 ops->hash_init(context); in php_hash_do_hash_hmac()
257 ops->hash_update(context, (unsigned char *) K, ops->block_size); in php_hash_do_hash_hmac()
264 ops->hash_update(context, (unsigned char *) buf, n); in php_hash_do_hash_hmac()
268 ops->hash_update(context, (unsigned char *) data, data_len); in php_hash_do_hash_hmac()
272 ops->hash_final((unsigned char *) digest, context); in php_hash_do_hash_hmac()
280 ops->hash_init(context); in php_hash_do_hash_hmac()
281 ops->hash_update(context, (unsigned char *) K, ops->block_size); in php_hash_do_hash_hmac()
282 ops->hash_update(context, (unsigned char *) digest, ops->digest_size); in php_hash_do_hash_hmac()
283 ops->hash_final((unsigned char *) digest, context); in php_hash_do_hash_hmac()
288 efree(context); in php_hash_do_hash_hmac()
330 void *context; in PHP_FUNCTION() local
351 context = emalloc(ops->context_size); in PHP_FUNCTION()
352 ops->hash_init(context); in PHP_FUNCTION()
356 hash->context = context; in PHP_FUNCTION()
368 ops->hash_update(context, (unsigned char *) key, key_len); in PHP_FUNCTION()
369 ops->hash_final((unsigned char *) K, context); in PHP_FUNCTION()
371 ops->hash_init(context); in PHP_FUNCTION()
380 ops->hash_update(context, (unsigned char *) K, ops->block_size); in PHP_FUNCTION()
403 hash->ops->hash_update(hash->context, (unsigned char *) data, data_len); in PHP_FUNCTION()
437 hash->ops->hash_update(hash->context, (unsigned char *) buf, n); in PHP_FUNCTION()
452 php_stream_context *context; in PHP_FUNCTION() local
462 context = php_stream_context_from_zval(zcontext, 0); in PHP_FUNCTION()
464 stream = php_stream_open_wrapper_ex(filename, "rb", REPORT_ERRORS, NULL, context); in PHP_FUNCTION()
471 hash->ops->hash_update(hash->context, (unsigned char *) buf, n); in PHP_FUNCTION()
498 hash->ops->hash_final((unsigned char *) digest, hash->context); in PHP_FUNCTION()
508 hash->ops->hash_init(hash->context); in PHP_FUNCTION()
509 hash->ops->hash_update(hash->context, (unsigned char *) hash->key, hash->ops->block_size); in PHP_FUNCTION()
510 hash->ops->hash_update(hash->context, (unsigned char *) digest, hash->ops->digest_size); in PHP_FUNCTION()
511 hash->ops->hash_final((unsigned char *) digest, hash->context); in PHP_FUNCTION()
519 efree(hash->context); in PHP_FUNCTION()
520 hash->context = NULL; in PHP_FUNCTION()
549 void *context; in PHP_FUNCTION() local
559 context = emalloc(hash->ops->context_size); in PHP_FUNCTION()
560 hash->ops->hash_init(context); in PHP_FUNCTION()
562 res = hash->ops->hash_copy(hash->ops, hash->context, context); in PHP_FUNCTION()
564 efree(context); in PHP_FUNCTION()
570 copy_hash->context = context; in PHP_FUNCTION()
606 if (hash->context) { in php_hash_dtor()
608 hash->ops->hash_final(dummy, hash->context); in php_hash_dtor()
610 efree(hash->context); in php_hash_dtor()
788 void *context; in PHP_FUNCTION() local
795 context = emalloc(ops->context_size); in PHP_FUNCTION()
796 ops->hash_init(context); in PHP_FUNCTION()
802 ops->hash_init(context); in PHP_FUNCTION()
805 ops->hash_update(context, &null, 1); in PHP_FUNCTION()
807 ops->hash_update(context, (unsigned char *)padded_salt, salt_len); in PHP_FUNCTION()
808 ops->hash_update(context, (unsigned char *)password, password_len); in PHP_FUNCTION()
809 ops->hash_final((unsigned char *)digest, context); in PHP_FUNCTION()
816 efree(context); in PHP_FUNCTION()
983 ZEND_ARG_INFO(0, context)
988 ZEND_ARG_INFO(0, context)
994 ZEND_ARG_INFO(0, context)
996 ZEND_ARG_INFO(0, context)
1000 ZEND_ARG_INFO(0, context)
1005 ZEND_ARG_INFO(0, context)