Lines Matching refs:context
126 void *context; in php_hash_do_hash() local
146 context = emalloc(ops->context_size); in php_hash_do_hash()
147 ops->hash_init(context); in php_hash_do_hash()
154 ops->hash_update(context, (unsigned char *) buf, n); in php_hash_do_hash()
158 ops->hash_update(context, (unsigned char *) data, data_len); in php_hash_do_hash()
162 ops->hash_final((unsigned char *) digest, context); in php_hash_do_hash()
163 efree(context); in php_hash_do_hash()
203 void *context; in php_hash_do_hash_hmac() local
224 context = emalloc(ops->context_size); in php_hash_do_hash_hmac()
225 ops->hash_init(context); in php_hash_do_hash_hmac()
232 ops->hash_update(context, (unsigned char *) key, key_len); in php_hash_do_hash_hmac()
233 ops->hash_final((unsigned char *) K, context); in php_hash_do_hash_hmac()
235 ops->hash_init(context); in php_hash_do_hash_hmac()
244 ops->hash_update(context, (unsigned char *) K, ops->block_size); in php_hash_do_hash_hmac()
251 ops->hash_update(context, (unsigned char *) buf, n); in php_hash_do_hash_hmac()
255 ops->hash_update(context, (unsigned char *) data, data_len); in php_hash_do_hash_hmac()
259 ops->hash_final((unsigned char *) digest, context); in php_hash_do_hash_hmac()
267 ops->hash_init(context); in php_hash_do_hash_hmac()
268 ops->hash_update(context, (unsigned char *) K, ops->block_size); in php_hash_do_hash_hmac()
269 ops->hash_update(context, (unsigned char *) digest, ops->digest_size); in php_hash_do_hash_hmac()
270 ops->hash_final((unsigned char *) digest, context); in php_hash_do_hash_hmac()
275 efree(context); in php_hash_do_hash_hmac()
317 void *context; in PHP_FUNCTION() local
338 context = emalloc(ops->context_size); in PHP_FUNCTION()
339 ops->hash_init(context); in PHP_FUNCTION()
343 hash->context = context; in PHP_FUNCTION()
355 ops->hash_update(context, (unsigned char *) key, key_len); in PHP_FUNCTION()
356 ops->hash_final((unsigned char *) K, context); in PHP_FUNCTION()
358 ops->hash_init(context); in PHP_FUNCTION()
367 ops->hash_update(context, (unsigned char *) K, ops->block_size); in PHP_FUNCTION()
390 hash->ops->hash_update(hash->context, (unsigned char *) data, data_len); in PHP_FUNCTION()
424 hash->ops->hash_update(hash->context, (unsigned char *) buf, n); in PHP_FUNCTION()
439 php_stream_context *context; in PHP_FUNCTION() local
449 context = php_stream_context_from_zval(zcontext, 0); in PHP_FUNCTION()
451 …eam = php_stream_open_wrapper_ex(filename, "rb", REPORT_ERRORS | ENFORCE_SAFE_MODE, NULL, context); in PHP_FUNCTION()
458 hash->ops->hash_update(hash->context, (unsigned char *) buf, n); in PHP_FUNCTION()
485 hash->ops->hash_final((unsigned char *) digest, hash->context); in PHP_FUNCTION()
495 hash->ops->hash_init(hash->context); in PHP_FUNCTION()
496 hash->ops->hash_update(hash->context, (unsigned char *) hash->key, hash->ops->block_size); in PHP_FUNCTION()
497 hash->ops->hash_update(hash->context, (unsigned char *) digest, hash->ops->digest_size); in PHP_FUNCTION()
498 hash->ops->hash_final((unsigned char *) digest, hash->context); in PHP_FUNCTION()
506 efree(hash->context); in PHP_FUNCTION()
507 hash->context = NULL; in PHP_FUNCTION()
536 void *context; in PHP_FUNCTION() local
546 context = emalloc(hash->ops->context_size); in PHP_FUNCTION()
547 hash->ops->hash_init(context); in PHP_FUNCTION()
549 res = hash->ops->hash_copy(hash->ops, hash->context, context); in PHP_FUNCTION()
551 efree(context); in PHP_FUNCTION()
557 copy_hash->context = context; in PHP_FUNCTION()
593 if (hash->context) { in php_hash_dtor()
595 hash->ops->hash_final(dummy, hash->context); in php_hash_dtor()
597 efree(hash->context); in php_hash_dtor()
775 void *context; in PHP_FUNCTION() local
782 context = emalloc(ops->context_size); in PHP_FUNCTION()
783 ops->hash_init(context); in PHP_FUNCTION()
789 ops->hash_init(context); in PHP_FUNCTION()
792 ops->hash_update(context, &null, 1); in PHP_FUNCTION()
794 ops->hash_update(context, (unsigned char *)padded_salt, salt_len); in PHP_FUNCTION()
795 ops->hash_update(context, (unsigned char *)password, password_len); in PHP_FUNCTION()
796 ops->hash_final((unsigned char *)digest, context); in PHP_FUNCTION()
803 efree(context); in PHP_FUNCTION()
969 ZEND_ARG_INFO(0, context)
974 ZEND_ARG_INFO(0, context)
980 ZEND_ARG_INFO(0, context)
982 ZEND_ARG_INFO(0, context)
986 ZEND_ARG_INFO(0, context)
991 ZEND_ARG_INFO(0, context)