Searched refs:memory_cost (Results 1 – 9 of 9) sorted by relevance
/PHP-7.4/ext/sodium/tests/ |
H A D | bug78516.phpt | 10 $pass = password_hash('secret', PASSWORD_ARGON2ID, ['memory_cost' => 8191]); 11 password_needs_rehash($pass, PASSWORD_ARGON2ID, ['memory_cost' => 8191]); 12 var_dump(password_get_info($pass)['options']['memory_cost']); 13 $pass = password_hash('secret', PASSWORD_ARGON2I, ['memory_cost' => 8191]); 14 password_needs_rehash($pass, PASSWORD_ARGON2I, ['memory_cost' => 8191]); 15 var_dump(password_get_info($pass)['options']['memory_cost']);
|
H A D | php_password_hash_argon2i.phpt | 20 'memory_cost' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST * $mem,
|
H A D | php_password_hash_argon2id.phpt | 20 'memory_cost' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST * $mem,
|
/PHP-7.4/ext/standard/ |
H A D | password.c | 314 zend_long *v, zend_long *memory_cost, in extract_argon2_parameters() argument 330 v, memory_cost, time_cost, threads); in extract_argon2_parameters() 338 zend_long memory_cost = PHP_PASSWORD_ARGON2_MEMORY_COST; in php_password_argon2_get_info() local 342 extract_argon2_parameters(hash, &v, &memory_cost, &time_cost, &threads); in php_password_argon2_get_info() 344 add_assoc_long(return_value, "memory_cost", memory_cost); in php_password_argon2_get_info() 373 (new_memory_cost != memory_cost) || in php_password_argon2_needs_rehash() 381 size_t memory_cost = PHP_PASSWORD_ARGON2_MEMORY_COST; in php_password_argon2_hash() local 387 memory_cost = zval_get_long(option_buffer); in php_password_argon2_hash() 390 if (memory_cost > ARGON2_MAX_MEMORY || memory_cost < ARGON2_MIN_MEMORY) { in php_password_argon2_hash() 420 memory_cost, in php_password_argon2_hash() [all …]
|
/PHP-7.4/ext/standard/tests/password/ |
H A D | password_get_info_argon2.phpt | 23 ["memory_cost"]=> 38 ["memory_cost"]=>
|
H A D | password_needs_rehash_argon2.phpt | 13 var_dump(password_needs_rehash($hash, PASSWORD_ARGON2I, ['memory_cost' => PASSWORD_ARGON2_DEFAULT_M… 18 var_dump(password_needs_rehash($hash, PASSWORD_ARGON2ID, ['memory_cost' => PASSWORD_ARGON2_DEFAULT_…
|
H A D | password_hash_error_argon2.phpt | 10 var_dump(password_hash('test', PASSWORD_ARGON2I, ['memory_cost' => 0])); 13 var_dump(password_hash('test', PASSWORD_ARGON2ID, ['memory_cost' => 0]));
|
H A D | bug75221.phpt | 12 ['memory_cost' => 64 << 10, 'time_cost' => 4, 'threads' => 1]
|
/PHP-7.4/ext/sodium/ |
H A D | sodium_pwhash.c | 119 zend_long memory_cost = PHP_SODIUM_PWHASH_MEMLIMIT; in php_sodium_argon2_get_info() local 136 &v, &memory_cost, &time_cost, &threads); in php_sodium_argon2_get_info() 138 add_assoc_long(return_value, "memory_cost", memory_cost); in php_sodium_argon2_get_info()
|
Completed in 12 milliseconds