Searched refs:time_cost (Results 1 – 12 of 12) sorted by relevance
/php-src/ext/standard/ |
H A D | password.c | 239 zend_long *time_cost, zend_long *threads) /* {{{ */ in extract_argon2_parameters() argument 254 v, memory_cost, time_cost, threads); in extract_argon2_parameters() 263 zend_long time_cost = PHP_PASSWORD_ARGON2_TIME_COST; in php_password_argon2_get_info() local 269 add_assoc_long(return_value, "time_cost", time_cost); in php_password_argon2_get_info() 278 zend_long new_time_cost = PHP_PASSWORD_ARGON2_TIME_COST, time_cost = 0; in php_password_argon2_needs_rehash() local 296 return (new_time_cost != time_cost) || in php_password_argon2_needs_rehash() 304 size_t time_cost = PHP_PASSWORD_ARGON2_TIME_COST; in php_password_argon2_hash() local 320 time_cost = zval_get_long(option_buffer); in php_password_argon2_hash() 323 if (time_cost > ARGON2_MAX_TIME || time_cost < ARGON2_MIN_TIME) { in php_password_argon2_hash() 343 time_cost, in php_password_argon2_hash() [all …]
|
/php-src/ext/standard/tests/password/ |
H A D | password_get_info_argon2.phpt | 25 ["time_cost"]=> 40 ["time_cost"]=>
|
H A D | password_needs_rehash_argon2.phpt | 14 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 D | password_hash_error_argon2.phpt | 18 password_hash('test', PASSWORD_ARGON2I, ['time_cost' => 0]); 36 password_hash('test', PASSWORD_ARGON2ID, ['time_cost' => 0]);
|
H A D | bug75221.phpt | 12 ['memory_cost' => 64 << 10, 'time_cost' => 4, 'threads' => 1]
|
/php-src/ext/sodium/ |
H A D | sodium_pwhash.c | 108 zend_long time_cost = PHP_SODIUM_PWHASH_OPSLIMIT; in php_sodium_argon2_get_info() local 124 &v, &memory_cost, &time_cost, &threads); in php_sodium_argon2_get_info() 127 add_assoc_long(return_value, "time_cost", time_cost); in php_sodium_argon2_get_info()
|
/php-src/ext/openssl/tests/ |
H A D | openssl_password.phpt | 21 'time_cost' => PASSWORD_ARGON2_DEFAULT_TIME_COST / $time,
|
H A D | openssl_password_compat.phpt | 26 'time_cost' => PASSWORD_ARGON2_DEFAULT_TIME_COST / $time,
|
H A D | openssl_password_compat2.phpt | 26 'time_cost' => PASSWORD_ARGON2_DEFAULT_TIME_COST / $time,
|
/php-src/ext/openssl/ |
H A D | openssl_pwhash.c | 279 uint32_t time_cost; in php_openssl_argon2_get_info() local 281 …if (FAILURE == php_openssl_argon2_extract(hash, &v, &memory_cost, &time_cost, &threads, NULL, NULL… in php_openssl_argon2_get_info() 285 add_assoc_long(return_value, "time_cost", time_cost); in php_openssl_argon2_get_info()
|
/php-src/ext/sodium/tests/ |
H A D | php_password_hash_argon2i.phpt | 24 'time_cost' => PASSWORD_ARGON2_DEFAULT_TIME_COST * $time,
|
H A D | php_password_hash_argon2id.phpt | 24 'time_cost' => PASSWORD_ARGON2_DEFAULT_TIME_COST * $time,
|
Completed in 21 milliseconds