Home
last modified time | relevance | path

Searched refs:memory_cost (Results 1 – 13 of 13) sorted by relevance

/php-src/ext/sodium/tests/
H A Dbug78516.phpt11 $pass = password_hash('secret', PASSWORD_ARGON2ID, ['memory_cost' => 8191]);
12 password_needs_rehash($pass, PASSWORD_ARGON2ID, ['memory_cost' => 8191]);
13 var_dump(password_get_info($pass)['options']['memory_cost']);
14 $pass = password_hash('secret', PASSWORD_ARGON2I, ['memory_cost' => 8191]);
15 password_needs_rehash($pass, PASSWORD_ARGON2I, ['memory_cost' => 8191]);
16 var_dump(password_get_info($pass)['options']['memory_cost']);
H A Dphp_password_hash_argon2i.phpt23 'memory_cost' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST * $mem,
H A Dphp_password_hash_argon2id.phpt23 'memory_cost' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST * $mem,
/php-src/ext/standard/
H A Dpassword.c238 zend_long *v, zend_long *memory_cost, in extract_argon2_parameters() argument
254 v, memory_cost, time_cost, threads); in extract_argon2_parameters()
262 zend_long memory_cost = PHP_PASSWORD_ARGON2_MEMORY_COST; in php_password_argon2_get_info() local
266 extract_argon2_parameters(hash, &v, &memory_cost, &time_cost, &threads); in php_password_argon2_get_info()
268 add_assoc_long(return_value, "memory_cost", memory_cost); in php_password_argon2_get_info()
297 (new_memory_cost != memory_cost) || in php_password_argon2_needs_rehash()
305 size_t memory_cost = PHP_PASSWORD_ARGON2_MEMORY_COST; in php_password_argon2_hash() local
311 memory_cost = zval_get_long(option_buffer); in php_password_argon2_hash()
314 if (memory_cost > ARGON2_MAX_MEMORY || memory_cost < ARGON2_MIN_MEMORY) { in php_password_argon2_hash()
344 memory_cost, in php_password_argon2_hash()
[all …]
/php-src/ext/standard/tests/password/
H A Dpassword_get_info_argon2.phpt23 ["memory_cost"]=>
38 ["memory_cost"]=>
H A Dpassword_needs_rehash_argon2.phpt13 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 Dpassword_hash_error_argon2.phpt12 password_hash('test', PASSWORD_ARGON2I, ['memory_cost' => 0]);
30 password_hash('test', PASSWORD_ARGON2ID, ['memory_cost' => 0]);
H A Dbug75221.phpt12 ['memory_cost' => 64 << 10, 'time_cost' => 4, 'threads' => 1]
/php-src/ext/sodium/
H A Dsodium_pwhash.c107 zend_long memory_cost = PHP_SODIUM_PWHASH_MEMLIMIT; in php_sodium_argon2_get_info() local
124 &v, &memory_cost, &time_cost, &threads); in php_sodium_argon2_get_info()
126 add_assoc_long(return_value, "memory_cost", memory_cost); in php_sodium_argon2_get_info()
/php-src/ext/openssl/tests/
H A Dopenssl_password.phpt20 'memory_cost' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST / $mem,
H A Dopenssl_password_compat.phpt25 'memory_cost' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST / $mem,
H A Dopenssl_password_compat2.phpt25 'memory_cost' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST / $mem,
/php-src/ext/openssl/
H A Dopenssl_pwhash.c278 uint32_t memory_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()
284 add_assoc_long(return_value, "memory_cost", memory_cost); in php_openssl_argon2_get_info()

Completed in 15 milliseconds