Lines Matching refs:algo_len
83 PHP_HASH_API const php_hash_ops *php_hash_fetch_ops(const char *algo, int algo_len) /* {{{ */ in php_hash_fetch_ops() argument
86 char *lower = estrndup(algo, algo_len); in php_hash_fetch_ops()
88 zend_str_tolower(lower, algo_len); in php_hash_fetch_ops()
89 if (SUCCESS != zend_hash_find(&php_hash_hashtable, lower, algo_len + 1, (void*)&ops)) { in php_hash_fetch_ops()
100 int algo_len = strlen(algo); in php_hash_register_algo() local
101 char *lower = estrndup(algo, algo_len); in php_hash_register_algo()
103 zend_str_tolower(lower, algo_len); in php_hash_register_algo()
104 zend_hash_add(&php_hash_hashtable, lower, algo_len + 1, (void*)ops, sizeof(php_hash_ops), NULL); in php_hash_register_algo()
123 int algo_len, data_len; in php_hash_do_hash() local
129 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|b", &algo, &algo_len, &data, &data_len, &… in php_hash_do_hash()
133 ops = php_hash_fetch_ops(algo, algo_len); in php_hash_do_hash()
200 int algo_len, data_len, key_len, i; in php_hash_do_hash_hmac() local
206 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss|b", &algo, &algo_len, &data, &data_len, in php_hash_do_hash_hmac()
211 ops = php_hash_fetch_ops(algo, algo_len); in php_hash_do_hash_hmac()
315 int algo_len, key_len = 0, argc = ZEND_NUM_ARGS(); in PHP_FUNCTION() local
321 …if (zend_parse_parameters(argc TSRMLS_CC, "s|ls", &algo, &algo_len, &options, &key, &key_len) == F… in PHP_FUNCTION()
325 ops = php_hash_fetch_ops(algo, algo_len); in PHP_FUNCTION()