Lines Matching refs:algo
85 PHP_HASH_API const php_hash_ops *php_hash_fetch_ops(const char *algo, size_t algo_len) /* {{{ */ in php_hash_fetch_ops() argument
87 char *lower = zend_str_tolower_dup(algo, algo_len); in php_hash_fetch_ops()
95 PHP_HASH_API void php_hash_register_algo(const char *algo, const php_hash_ops *ops) /* {{{ */ in php_hash_register_algo() argument
97 size_t algo_len = strlen(algo); in php_hash_register_algo()
98 char *lower = zend_str_tolower_dup(algo, algo_len); in php_hash_register_algo()
118 char *algo, *data; in php_hash_do_hash() local
125 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss|b", &algo, &algo_len, &data, &data_len, &raw_output… in php_hash_do_hash()
129 ops = php_hash_fetch_ops(algo, algo_len); in php_hash_do_hash()
131 php_error_docref(NULL, E_WARNING, "Unknown hashing algorithm: %s", algo); in php_hash_do_hash()
235 char *algo, *data, *key; in php_hash_do_hash_hmac() local
243 if (zend_parse_parameters(ZEND_NUM_ARGS(), "sss|b", &algo, &algo_len, &data, &data_len, in php_hash_do_hash_hmac()
248 ops = php_hash_fetch_ops(algo, algo_len); in php_hash_do_hash_hmac()
250 php_error_docref(NULL, E_WARNING, "Unknown hashing algorithm: %s", algo); in php_hash_do_hash_hmac()
254 php_error_docref(NULL, E_WARNING, "Non-cryptographic hashing algorithm: %s", algo); in php_hash_do_hash_hmac()
333 zend_string *algo, *key = NULL; in php_hashcontext_ctor() local
340 if (zend_parse_parameters(argc, "S|lS", &algo, &options, &key) == FAILURE) { in php_hashcontext_ctor()
345 ops = php_hash_fetch_ops(ZSTR_VAL(algo), ZSTR_LEN(algo)); in php_hashcontext_ctor()
347 php_error_docref(NULL, E_WARNING, "Unknown hashing algorithm: %s", ZSTR_VAL(algo)); in php_hashcontext_ctor()
354 …(NULL, E_WARNING, "HMAC requested with a non-cryptographic hashing algorithm: %s", ZSTR_VAL(algo)); in php_hashcontext_ctor()
620 zend_string *returnval, *ikm, *algo, *info = NULL, *salt = NULL; in PHP_FUNCTION() local
627 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "SS|lSS", &algo, &ikm, &length, &info, &salt) == FAILUR… in PHP_FUNCTION()
631 ops = php_hash_fetch_ops(ZSTR_VAL(algo), ZSTR_LEN(algo)); in PHP_FUNCTION()
633 php_error_docref(NULL, E_WARNING, "Unknown hashing algorithm: %s", ZSTR_VAL(algo)); in PHP_FUNCTION()
638 php_error_docref(NULL, E_WARNING, "Non-cryptographic hashing algorithm: %s", ZSTR_VAL(algo)); in PHP_FUNCTION()
719 char *algo, *salt, *pass = NULL; in PHP_FUNCTION() local
727 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "sssl|lb", &algo, &algo_len, &pass, &pass_len, &salt, &… in PHP_FUNCTION()
731 ops = php_hash_fetch_ops(algo, algo_len); in PHP_FUNCTION()
733 php_error_docref(NULL, E_WARNING, "Unknown hashing algorithm: %s", algo); in PHP_FUNCTION()
737 php_error_docref(NULL, E_WARNING, "Non-cryptographic hashing algorithm: %s", algo); in PHP_FUNCTION()
1320 ZEND_ARG_INFO(0, algo)
1326 ZEND_ARG_INFO(0, algo)
1332 ZEND_ARG_INFO(0, algo)
1339 ZEND_ARG_INFO(0, algo)
1346 ZEND_ARG_INFO(0, algo)
1381 ZEND_ARG_INFO(0, algo)
1396 ZEND_ARG_INFO(0, algo)