Searched refs:cost (Results 1 – 13 of 13) sorted by relevance
/PHP-7.4/ext/standard/tests/password/ |
H A D | password_needs_rehash.phpt | 17 // Valid with cost the same 18 …$10$MTIzNDU2Nzg5MDEyMzQ1Nej0NmcAWSLR.oP7XOR9HD/vjUuOj100y', PASSWORD_BCRYPT, array('cost' => 10))); 20 // Valid with cost the same, additional params 23 // Invalid, different (lower) cost 24 …y$10$MTIzNDU2Nzg5MDEyMzQ1Nej0NmcAWSLR.oP7XOR9HD/vjUuOj100y', PASSWORD_BCRYPT, array('cost' => 0))); 26 // Invalid, different (higher) cost 27 …$10$MTIzNDU2Nzg5MDEyMzQ1Nej0NmcAWSLR.oP7XOR9HD/vjUuOj100y', PASSWORD_BCRYPT, array('cost' => 11))); 29 // Valid with cost the default 30 $cost = str_pad(PASSWORD_BCRYPT_DEFAULT_COST, 2, '0', STR_PAD_LEFT); 31 var_dump(password_needs_rehash('$2y$'.$cost.'$MTIzNDU2Nzg5MDEyMzQ1Nej0NmcAWSLR.oP7XOR9HD/vjUuOj100y… [all …]
|
H A D | password_bcrypt_errors.phpt | 7 var_dump(password_hash("foo", PASSWORD_BCRYPT, array("cost" => 3))); 9 var_dump(password_hash("foo", PASSWORD_BCRYPT, array("cost" => 32))); 17 var_dump(password_hash("foo", PASSWORD_BCRYPT, array("cost" => "foo"))); 21 Warning: password_hash(): Invalid bcrypt cost parameter specified: 3 in %s on line %d 24 Warning: password_hash(): Invalid bcrypt cost parameter specified: 32 in %s on line %d 42 Warning: password_hash(): Invalid bcrypt cost parameter specified: 0 in %s on line %d
|
H A D | password_hash_error_argon2.phpt | 18 Warning: password_hash(): Memory cost is outside of allowed memory range in %s on line %d 21 Warning: password_hash(): Time cost is outside of allowed time range in %s on line %d 27 Warning: password_hash(): Memory cost is outside of allowed memory range in %s on line %d 30 Warning: password_hash(): Time cost is outside of allowed time range in %s on line %d
|
H A D | password_get_info.phpt | 25 ["cost"]=> 36 ["cost"]=>
|
H A D | password_deprecated_salts.phpt | 8 var_dump(password_hash("rasmuslerdorf", PASSWORD_BCRYPT, array("cost" => 7, "salt" => "usesomesilly…
|
/PHP-7.4/ext/date/lib/ |
H A D | astro.c | 266 double cost; in timelib_astro_rise_set_altitude() local 267 cost = (sind(altit) - sind(lat) * sind(sdec)) / (cosd(lat) * cosd(sdec)); in timelib_astro_rise_set_altitude() 269 if (cost >= 1.0) { in timelib_astro_rise_set_altitude() 274 } else if (cost <= -1.0) { in timelib_astro_rise_set_altitude() 281 t = acosd(cost) / 15.0; /* The diurnal arc, hours */ in timelib_astro_rise_set_altitude()
|
/PHP-7.4/ext/standard/ |
H A D | password.c | 199 zend_long cost = PHP_PASSWORD_BCRYPT_COST; in php_password_bcrypt_get_info() local 206 sscanf(ZSTR_VAL(hash), "$2y$" ZEND_LONG_FMT "$", &cost); in php_password_bcrypt_get_info() 207 add_assoc_long(return_value, "cost", cost); in php_password_bcrypt_get_info() 261 zend_long cost = PHP_PASSWORD_BCRYPT_COST; in php_password_bcrypt_hash() local 264 cost = zval_get_long(zcost); in php_password_bcrypt_hash() 267 if (cost < 4 || cost > 31) { in php_password_bcrypt_hash() 268 …php_error_docref(NULL, E_WARNING, "Invalid bcrypt cost parameter specified: " ZEND_LONG_FMT, cost); in php_password_bcrypt_hash() 272 …sh_format_len = snprintf(hash_format, sizeof(hash_format), "$2y$%02" ZEND_LONG_FMT_SPEC "$", cost); in php_password_bcrypt_hash()
|
/PHP-7.4/ext/standard/tests/crypt/ |
H A D | bcrypt_invalid_cost.phpt | 2 Test BCRYPT with invalid cost
|
/PHP-7.4/ext/sodium/tests/ |
H A D | bug78516.phpt | 2 Bug #78516 (password_hash(): Memory cost is not in allowed range)
|
/PHP-7.4/ext/mbstring/libmbfl/ |
H A D | LICENSE | 309 than the cost of performing this distribution.
|
/PHP-7.4/ext/bcmath/libbcmath/ |
H A D | LICENSE | 312 than the cost of performing this distribution.
|
/PHP-7.4/ |
H A D | NEWS | 1661 . Fixed bug #78516 (password_hash(): Memory cost is not in allowed range).
|
/PHP-7.4/build/ |
H A D | libtool.m4 | 5846 # does not break anything, and helps significantly (at the cost of a little
|
Completed in 73 milliseconds