Lines Matching refs:algo_len
88 PHP_HASH_API const php_hash_ops *php_hash_fetch_ops(const char *algo, int algo_len) /* {{{ */ in php_hash_fetch_ops() argument
91 char *lower = estrndup(algo, algo_len); in php_hash_fetch_ops()
93 zend_str_tolower(lower, algo_len); in php_hash_fetch_ops()
94 if (SUCCESS != zend_hash_find(&php_hash_hashtable, lower, algo_len + 1, (void*)&ops)) { in php_hash_fetch_ops()
105 int algo_len = strlen(algo); in php_hash_register_algo() local
106 char *lower = estrndup(algo, algo_len); in php_hash_register_algo()
108 zend_str_tolower(lower, algo_len); in php_hash_register_algo()
109 zend_hash_add(&php_hash_hashtable, lower, algo_len + 1, (void*)ops, sizeof(php_hash_ops), NULL); in php_hash_register_algo()
128 int algo_len, data_len; in php_hash_do_hash() local
134 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|b", &algo, &algo_len, &data, &data_len, &… in php_hash_do_hash()
138 ops = php_hash_fetch_ops(algo, algo_len); in php_hash_do_hash()
209 int algo_len, data_len, key_len, i; in php_hash_do_hash_hmac() local
215 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss|b", &algo, &algo_len, &data, &data_len, in php_hash_do_hash_hmac()
220 ops = php_hash_fetch_ops(algo, algo_len); in php_hash_do_hash_hmac()
328 int algo_len, key_len = 0, argc = ZEND_NUM_ARGS(); in PHP_FUNCTION() local
334 …if (zend_parse_parameters(argc TSRMLS_CC, "s|ls", &algo, &algo_len, &options, &key, &key_len) == F… in PHP_FUNCTION()
338 ops = php_hash_fetch_ops(algo, algo_len); in PHP_FUNCTION()