Lines Matching refs:algo

106 PHP_HASH_API const php_hash_ops *php_hash_fetch_ops(zend_string *algo) /* {{{ */  in php_hash_fetch_ops()  argument
108 zend_string *lower = zend_string_tolower(algo); in php_hash_fetch_ops()
116 PHP_HASH_API void php_hash_register_algo(const char *algo, const php_hash_ops *ops) /* {{{ */ in php_hash_register_algo() argument
118 size_t algo_len = strlen(algo); in php_hash_register_algo()
119 char *lower = zend_str_tolower_dup(algo, algo_len); in php_hash_register_algo()
360 …zval *return_value, zend_string *algo, char *data, size_t data_len, bool raw_output, bool isfilena… in php_hash_do_hash() argument
367 ops = php_hash_fetch_ops(algo); in php_hash_do_hash()
425 zend_string *algo; in PHP_FUNCTION() local
432 Z_PARAM_STR(algo) in PHP_FUNCTION()
439 php_hash_do_hash(return_value, algo, data, data_len, raw_output, 0, args); in PHP_FUNCTION()
447 zend_string *algo; in PHP_FUNCTION() local
454 Z_PARAM_STR(algo) in PHP_FUNCTION()
461 php_hash_do_hash(return_value, algo, data, data_len, raw_output, 1, args); in PHP_FUNCTION()
501 …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
509 ops = php_hash_fetch_ops(algo); in php_hash_do_hash_hmac()
582 zend_string *algo; in PHP_FUNCTION() local
587 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Sss|b", &algo, &data, &data_len, &key, &key_len, &raw_… in PHP_FUNCTION()
591 php_hash_do_hash_hmac(return_value, algo, data, data_len, key, key_len, raw_output, 0); in PHP_FUNCTION()
599 zend_string *algo; in PHP_FUNCTION() local
604 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Sss|b", &algo, &data, &data_len, &key, &key_len, &raw_… in PHP_FUNCTION()
608 php_hash_do_hash_hmac(return_value, algo, data, data_len, key, key_len, raw_output, 1); in PHP_FUNCTION()
615 zend_string *algo, *key = NULL; in PHP_FUNCTION() local
622 if (zend_parse_parameters(ZEND_NUM_ARGS(), "S|lSh", &algo, &options, &key, &args) == FAILURE) { in PHP_FUNCTION()
626 ops = php_hash_fetch_ops(algo); in PHP_FUNCTION()
899 zend_string *returnval, *ikm, *algo, *info = NULL, *salt = NULL; in PHP_FUNCTION() local
907 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "SS|lSS", &algo, &ikm, &length, &info, &salt) == FAILUR… in PHP_FUNCTION()
911 ops = php_hash_fetch_ops(algo); in PHP_FUNCTION()
992 zend_string *returnval, *algo; in PHP_FUNCTION() local
1002 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Sssl|lbh", &algo, &pass, &pass_len, &salt, &salt_len, … in PHP_FUNCTION()
1006 ops = php_hash_fetch_ops(algo); in PHP_FUNCTION()
1203 zend_string *algo = NULL; in PHP_FUNCTION() local
1215 algo = zend_string_init(algorithm_lookup.hash_name, strlen(algorithm_lookup.hash_name), 0); in PHP_FUNCTION()
1224 php_hash_do_hash_hmac(return_value, algo, data, data_len, key, key_len, 1, 0); in PHP_FUNCTION()
1226 php_hash_do_hash(return_value, algo, data, data_len, 1, 0, NULL); in PHP_FUNCTION()
1229 if (algo) { in PHP_FUNCTION()
1230 zend_string_release(algo); in PHP_FUNCTION()
1473 ZVAL_STRING(&tmp, hash->ops->algo); in PHP_METHOD()
1495 …ow_exception_ex(NULL, 0, "HashContext for algorithm \"%s\" cannot be serialized", hash->ops->algo); in PHP_METHOD()
1547 zend_throw_exception_ex(NULL, 0, "Hash algorithm \"%s\" cannot be unserialized", ops->algo); in PHP_METHOD()
1558 …, 0, "Incomplete or ill-formed serialization data (\"%s\" code %d)", ops->algo, unserialize_result… in PHP_METHOD()