Home
last modified time | relevance | path

Searched refs:time_cost (Results 1 – 8 of 8) sorted by relevance

/PHP-8.3/ext/standard/
H A Dpassword.c240 zend_long *time_cost, zend_long *threads) /* {{{ */ in extract_argon2_parameters() argument
255 v, memory_cost, time_cost, threads); in extract_argon2_parameters()
264 zend_long time_cost = PHP_PASSWORD_ARGON2_TIME_COST; in php_password_argon2_get_info() local
270 add_assoc_long(return_value, "time_cost", time_cost); in php_password_argon2_get_info()
279 zend_long new_time_cost = PHP_PASSWORD_ARGON2_TIME_COST, time_cost = 0; in php_password_argon2_needs_rehash() local
297 return (new_time_cost != time_cost) || in php_password_argon2_needs_rehash()
305 size_t time_cost = PHP_PASSWORD_ARGON2_TIME_COST; in php_password_argon2_hash() local
321 time_cost = zval_get_long(option_buffer); in php_password_argon2_hash()
324 if (time_cost > ARGON2_MAX_TIME || time_cost < ARGON2_MIN_TIME) { in php_password_argon2_hash()
344 time_cost, in php_password_argon2_hash()
[all …]
/PHP-8.3/ext/standard/tests/password/
H A Dpassword_get_info_argon2.phpt25 ["time_cost"]=>
40 ["time_cost"]=>
H A Dpassword_needs_rehash_argon2.phpt14 var_dump(password_needs_rehash($hash, PASSWORD_ARGON2I, ['time_cost' => PASSWORD_ARGON2_DEFAULT_TIM…
19 var_dump(password_needs_rehash($hash, PASSWORD_ARGON2ID, ['time_cost' => PASSWORD_ARGON2_DEFAULT_TI…
H A Dpassword_hash_error_argon2.phpt18 password_hash('test', PASSWORD_ARGON2I, ['time_cost' => 0]);
36 password_hash('test', PASSWORD_ARGON2ID, ['time_cost' => 0]);
H A Dbug75221.phpt12 ['memory_cost' => 64 << 10, 'time_cost' => 4, 'threads' => 1]
/PHP-8.3/ext/sodium/
H A Dsodium_pwhash.c118 zend_long time_cost = PHP_SODIUM_PWHASH_OPSLIMIT; in php_sodium_argon2_get_info() local
134 &v, &memory_cost, &time_cost, &threads); in php_sodium_argon2_get_info()
137 add_assoc_long(return_value, "time_cost", time_cost); in php_sodium_argon2_get_info()
/PHP-8.3/ext/sodium/tests/
H A Dphp_password_hash_argon2i.phpt24 'time_cost' => PASSWORD_ARGON2_DEFAULT_TIME_COST * $time,
H A Dphp_password_hash_argon2id.phpt23 'time_cost' => PASSWORD_ARGON2_DEFAULT_TIME_COST * $time,

Completed in 12 milliseconds