Lines Matching refs:algo

60 static zend_string* php_password_get_algo_name(const php_password_algo algo)  in php_password_get_algo_name()  argument
62 switch (algo) { in php_password_get_algo_name()
168 static void extract_argon2_parameters(const php_password_algo algo, const zend_string *hash, in extract_argon2_parameters() argument
172 if (algo == PHP_PASSWORD_ARGON2ID) { in extract_argon2_parameters()
174 } else if (algo == PHP_PASSWORD_ARGON2I) { in extract_argon2_parameters()
186 php_password_algo algo; in PHP_FUNCTION() local
196 algo = php_password_determine_algo(hash); in PHP_FUNCTION()
197 algo_name = php_password_get_algo_name(algo); in PHP_FUNCTION()
199 switch (algo) { in PHP_FUNCTION()
216 extract_argon2_parameters(algo, hash, &v, &memory_cost, &time_cost, &threads); in PHP_FUNCTION()
231 add_assoc_long(return_value, "algo", algo); in PHP_FUNCTION()
242 php_password_algo algo; in PHP_FUNCTION() local
254 algo = php_password_determine_algo(hash); in PHP_FUNCTION()
256 if ((zend_long)algo != new_algo) { in PHP_FUNCTION()
260 switch (algo) { in PHP_FUNCTION()
296 extract_argon2_parameters(algo, hash, &v, &memory_cost, &time_cost, &threads); in PHP_FUNCTION()
317 php_password_algo algo; in PHP_FUNCTION() local
324 algo = php_password_determine_algo(hash); in PHP_FUNCTION()
326 switch(algo) { in PHP_FUNCTION()
332 if (algo == PHP_PASSWORD_ARGON2ID) { in PHP_FUNCTION()
334 } else if (algo == PHP_PASSWORD_ARGON2I) { in PHP_FUNCTION()
447 zend_long algo = PHP_PASSWORD_DEFAULT; in PHP_FUNCTION() local
452 Z_PARAM_LONG(algo) in PHP_FUNCTION()
457 switch (algo) { in PHP_FUNCTION()
513 if (algo == PHP_PASSWORD_ARGON2ID) { in PHP_FUNCTION()
515 } else if (algo == PHP_PASSWORD_ARGON2I) { in PHP_FUNCTION()
595 php_error_docref(NULL, E_WARNING, "Unknown password hashing algorithm: " ZEND_LONG_FMT, algo); in PHP_FUNCTION()