Lines Matching refs:algo_len
89 PHP_HASH_API const php_hash_ops *php_hash_fetch_ops(const char *algo, int algo_len) /* {{{ */ in php_hash_fetch_ops() argument
92 char *lower = estrndup(algo, algo_len); in php_hash_fetch_ops()
94 zend_str_tolower(lower, algo_len); in php_hash_fetch_ops()
95 if (SUCCESS != zend_hash_find(&php_hash_hashtable, lower, algo_len + 1, (void*)&ops)) { in php_hash_fetch_ops()
106 int algo_len = strlen(algo); in php_hash_register_algo() local
107 char *lower = estrndup(algo, algo_len); in php_hash_register_algo()
109 zend_str_tolower(lower, algo_len); in php_hash_register_algo()
110 zend_hash_add(&php_hash_hashtable, lower, algo_len + 1, (void*)ops, sizeof(php_hash_ops), NULL); in php_hash_register_algo()
129 int algo_len, data_len; in php_hash_do_hash() local
135 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|b", &algo, &algo_len, &data, &data_len, &… in php_hash_do_hash()
139 ops = php_hash_fetch_ops(algo, algo_len); in php_hash_do_hash()
245 int algo_len, data_len, key_len; in php_hash_do_hash_hmac() local
251 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss|b", &algo, &algo_len, &data, &data_len, in php_hash_do_hash_hmac()
256 ops = php_hash_fetch_ops(algo, algo_len); in php_hash_do_hash_hmac()
341 int algo_len, key_len = 0, argc = ZEND_NUM_ARGS(); in PHP_FUNCTION() local
347 …if (zend_parse_parameters(argc TSRMLS_CC, "s|ls", &algo, &algo_len, &options, &key, &key_len) == F… in PHP_FUNCTION()
351 ops = php_hash_fetch_ops(algo, algo_len); in PHP_FUNCTION()
620 int algo_len, pass_len, salt_len; in PHP_FUNCTION() local
625 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sssl|lb", &algo, &algo_len, &pass, &pass_len… in PHP_FUNCTION()
629 ops = php_hash_fetch_ops(algo, algo_len); in PHP_FUNCTION()