Lines Matching refs:time_cost
244 zend_long *time_cost, zend_long *threads) /* {{{ */ in extract_argon2_parameters() argument
259 v, memory_cost, time_cost, threads); in extract_argon2_parameters()
268 zend_long time_cost = PHP_PASSWORD_ARGON2_TIME_COST; in php_password_argon2_get_info() local
271 extract_argon2_parameters(hash, &v, &memory_cost, &time_cost, &threads); in php_password_argon2_get_info()
274 add_assoc_long(return_value, "time_cost", time_cost); in php_password_argon2_get_info()
283 zend_long new_time_cost = PHP_PASSWORD_ARGON2_TIME_COST, time_cost = 0; in php_password_argon2_needs_rehash() local
299 extract_argon2_parameters(hash, &v, &memory_cost, &time_cost, &threads); in php_password_argon2_needs_rehash()
301 return (new_time_cost != time_cost) || in php_password_argon2_needs_rehash()
309 size_t time_cost = PHP_PASSWORD_ARGON2_TIME_COST; in php_password_argon2_hash() local
325 time_cost = zval_get_long(option_buffer); in php_password_argon2_hash()
328 if (time_cost > ARGON2_MAX_TIME || time_cost < ARGON2_MIN_TIME) { in php_password_argon2_hash()
348 time_cost, in php_password_argon2_hash()
358 time_cost, in php_password_argon2_hash()