Lines Matching refs:algo
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()
103 PHP_HASH_API void php_hash_register_algo(const char *algo, const php_hash_ops *ops) /* {{{ */ in php_hash_register_algo() argument
105 int algo_len = strlen(algo); in php_hash_register_algo()
106 char *lower = estrndup(algo, algo_len); in php_hash_register_algo()
127 char *algo, *data, *digest; 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()
140 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown hashing algorithm: %s", algo); in php_hash_do_hash()
208 char *algo, *data, *digest, *key, *K; 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()
222 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown hashing algorithm: %s", algo); in php_hash_do_hash_hmac()
327 char *algo, *key = NULL; 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()
340 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown hashing algorithm: %s", algo); in PHP_FUNCTION()
951 ZEND_ARG_INFO(0, algo)
957 ZEND_ARG_INFO(0, algo)
963 ZEND_ARG_INFO(0, algo)
970 ZEND_ARG_INFO(0, algo)
977 ZEND_ARG_INFO(0, algo)