Lines Matching refs:algo

98 PHP_HASH_API const php_hash_ops *php_hash_fetch_ops(zend_string *algo) /* {{{ */  in php_hash_fetch_ops()  argument
100 zend_string *lower = zend_string_tolower(algo); in php_hash_fetch_ops()
108 PHP_HASH_API void php_hash_register_algo(const char *algo, const php_hash_ops *ops) /* {{{ */ in php_hash_register_algo() argument
110 size_t algo_len = strlen(algo); in php_hash_register_algo()
111 char *lower = zend_str_tolower_dup(algo, algo_len); in php_hash_register_algo()
352 …zval *return_value, zend_string *algo, char *data, size_t data_len, zend_bool raw_output, bool isf… in php_hash_do_hash() argument
359 ops = php_hash_fetch_ops(algo); in php_hash_do_hash()
417 zend_string *algo; in PHP_FUNCTION() local
423 Z_PARAM_STR(algo) in PHP_FUNCTION()
429 php_hash_do_hash(return_value, algo, data, data_len, raw_output, 0); in PHP_FUNCTION()
437 zend_string *algo; in PHP_FUNCTION() local
443 Z_PARAM_STR(algo) in PHP_FUNCTION()
449 php_hash_do_hash(return_value, algo, data, data_len, raw_output, 1); in PHP_FUNCTION()
489 …zval *return_value, zend_string *algo, char *data, size_t data_len, char *key, size_t key_len, zen… in php_hash_do_hash_hmac() argument
497 ops = php_hash_fetch_ops(algo); in php_hash_do_hash_hmac()
570 zend_string *algo; in PHP_FUNCTION() local
575 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Sss|b", &algo, &data, &data_len, &key, &key_len, &raw_… in PHP_FUNCTION()
579 php_hash_do_hash_hmac(return_value, algo, data, data_len, key, key_len, raw_output, 0); in PHP_FUNCTION()
587 zend_string *algo; in PHP_FUNCTION() local
592 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Sss|b", &algo, &data, &data_len, &key, &key_len, &raw_… in PHP_FUNCTION()
596 php_hash_do_hash_hmac(return_value, algo, data, data_len, key, key_len, raw_output, 1); in PHP_FUNCTION()
603 zend_string *algo, *key = NULL; in PHP_FUNCTION() local
609 if (zend_parse_parameters(ZEND_NUM_ARGS(), "S|lS", &algo, &options, &key) == FAILURE) { in PHP_FUNCTION()
613 ops = php_hash_fetch_ops(algo); in PHP_FUNCTION()
882 zend_string *returnval, *ikm, *algo, *info = NULL, *salt = NULL; in PHP_FUNCTION() local
890 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "SS|lSS", &algo, &ikm, &length, &info, &salt) == FAILUR… in PHP_FUNCTION()
894 ops = php_hash_fetch_ops(algo); in PHP_FUNCTION()
975 zend_string *returnval, *algo; in PHP_FUNCTION() local
984 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Sssl|lb", &algo, &pass, &pass_len, &salt, &salt_len, &… in PHP_FUNCTION()
988 ops = php_hash_fetch_ops(algo); in PHP_FUNCTION()
1196 zend_string *algo = NULL; in PHP_FUNCTION() local
1208 algo = zend_string_init(algorithm_lookup.hash_name, strlen(algorithm_lookup.hash_name), 0); in PHP_FUNCTION()
1213 php_hash_do_hash_hmac(return_value, algo, data, data_len, key, key_len, 1, 0); in PHP_FUNCTION()
1215 php_hash_do_hash(return_value, algo, data, data_len, 1, 0); in PHP_FUNCTION()
1218 if (algo) { in PHP_FUNCTION()
1219 zend_string_release(algo); in PHP_FUNCTION()
1452 ZVAL_STRING(&tmp, hash->ops->algo); in PHP_METHOD()
1474 …ow_exception_ex(NULL, 0, "HashContext for algorithm \"%s\" cannot be serialized", hash->ops->algo); in PHP_METHOD()
1526 zend_throw_exception_ex(NULL, 0, "Hash algorithm \"%s\" cannot be unserialized", ops->algo); in PHP_METHOD()
1537 …, 0, "Incomplete or ill-formed serialization data (\"%s\" code %d)", ops->algo, unserialize_result… in PHP_METHOD()