Lines Matching refs:algo

105 PHP_HASH_API const php_hash_ops *php_hash_fetch_ops(zend_string *algo) /* {{{ */  in php_hash_fetch_ops()  argument
107 zend_string *lower = zend_string_tolower(algo); in php_hash_fetch_ops()
115 PHP_HASH_API void php_hash_register_algo(const char *algo, const php_hash_ops *ops) /* {{{ */ in php_hash_register_algo() argument
117 size_t algo_len = strlen(algo); in php_hash_register_algo()
118 char *lower = zend_str_tolower_dup(algo, algo_len); in php_hash_register_algo()
359 …zval *return_value, zend_string *algo, char *data, size_t data_len, bool raw_output, bool isfilena… in php_hash_do_hash() argument
366 ops = php_hash_fetch_ops(algo); in php_hash_do_hash()
424 zend_string *algo; in PHP_FUNCTION() local
431 Z_PARAM_STR(algo) in PHP_FUNCTION()
438 php_hash_do_hash(return_value, algo, data, data_len, raw_output, 0, args); in PHP_FUNCTION()
446 zend_string *algo; in PHP_FUNCTION() local
453 Z_PARAM_STR(algo) in PHP_FUNCTION()
460 php_hash_do_hash(return_value, algo, data, data_len, raw_output, 1, args); in PHP_FUNCTION()
500 …zval *return_value, zend_string *algo, char *data, size_t data_len, char *key, size_t key_len, boo… in php_hash_do_hash_hmac() argument
508 ops = php_hash_fetch_ops(algo); in php_hash_do_hash_hmac()
581 zend_string *algo; in PHP_FUNCTION() local
586 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Sss|b", &algo, &data, &data_len, &key, &key_len, &raw_… in PHP_FUNCTION()
590 php_hash_do_hash_hmac(return_value, algo, data, data_len, key, key_len, raw_output, 0); in PHP_FUNCTION()
598 zend_string *algo; in PHP_FUNCTION() local
603 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Sss|b", &algo, &data, &data_len, &key, &key_len, &raw_… in PHP_FUNCTION()
607 php_hash_do_hash_hmac(return_value, algo, data, data_len, key, key_len, raw_output, 1); in PHP_FUNCTION()
614 zend_string *algo, *key = NULL; in PHP_FUNCTION() local
621 if (zend_parse_parameters(ZEND_NUM_ARGS(), "S|lSh", &algo, &options, &key, &args) == FAILURE) { in PHP_FUNCTION()
625 ops = php_hash_fetch_ops(algo); in PHP_FUNCTION()
898 zend_string *returnval, *ikm, *algo, *info = NULL, *salt = NULL; in PHP_FUNCTION() local
906 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "SS|lSS", &algo, &ikm, &length, &info, &salt) == FAILUR… in PHP_FUNCTION()
910 ops = php_hash_fetch_ops(algo); in PHP_FUNCTION()
991 zend_string *returnval, *algo; in PHP_FUNCTION() local
1001 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Sssl|lbh", &algo, &pass, &pass_len, &salt, &salt_len, … in PHP_FUNCTION()
1005 ops = php_hash_fetch_ops(algo); in PHP_FUNCTION()
1202 zend_string *algo = NULL; in PHP_FUNCTION() local
1214 algo = zend_string_init(algorithm_lookup.hash_name, strlen(algorithm_lookup.hash_name), 0); in PHP_FUNCTION()
1219 php_hash_do_hash_hmac(return_value, algo, data, data_len, key, key_len, 1, 0); in PHP_FUNCTION()
1221 php_hash_do_hash(return_value, algo, data, data_len, 1, 0, NULL); in PHP_FUNCTION()
1224 if (algo) { in PHP_FUNCTION()
1225 zend_string_release(algo); in PHP_FUNCTION()
1468 ZVAL_STRING(&tmp, hash->ops->algo); in PHP_METHOD()
1490 …ow_exception_ex(NULL, 0, "HashContext for algorithm \"%s\" cannot be serialized", hash->ops->algo); in PHP_METHOD()
1542 zend_throw_exception_ex(NULL, 0, "Hash algorithm \"%s\" cannot be unserialized", ops->algo); in PHP_METHOD()
1553 …, 0, "Incomplete or ill-formed serialization data (\"%s\" code %d)", ops->algo, unserialize_result… in PHP_METHOD()
1574 ZVAL_STRING(&tmp, hash->ops->algo); in ZEND_METHOD()