Home
last modified time | relevance | path

Searched refs:cost (Results 1 – 14 of 14) sorted by relevance

/PHP-8.0/ext/standard/tests/password/
H A Dpassword_needs_rehash.phpt17 // 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 Dpassword_bcrypt_errors.phpt7 password_hash("foo", PASSWORD_BCRYPT, array("cost" => 3));
13 var_dump(password_hash("foo", PASSWORD_BCRYPT, array("cost" => 32)));
19 Invalid bcrypt cost parameter specified: 3
20 Invalid bcrypt cost parameter specified: 32
H A Dpassword_hash_error_argon2.phpt48 Memory cost is outside of allowed memory range
49 Time cost is outside of allowed time range
51 Memory cost is outside of allowed memory range
52 Time cost is outside of allowed time range
H A Dpassword_get_info.phpt25 ["cost"]=>
36 ["cost"]=>
H A Dpassword_removed_salt_option.phpt8 var_dump(strlen(password_hash("rasmuslerdorf", PASSWORD_BCRYPT, array("cost" => 7, "salt" => "useso…
/PHP-8.0/ext/date/lib/
H A Dastro.c266 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-8.0/ext/standard/
H A Dpassword.c123 zend_long cost = PHP_PASSWORD_BCRYPT_COST; in php_password_bcrypt_get_info() local
130 sscanf(ZSTR_VAL(hash), "$2y$" ZEND_LONG_FMT "$", &cost); in php_password_bcrypt_get_info()
131 add_assoc_long(return_value, "cost", cost); in php_password_bcrypt_get_info()
185 zend_long cost = PHP_PASSWORD_BCRYPT_COST; in php_password_bcrypt_hash() local
188 cost = zval_get_long(zcost); in php_password_bcrypt_hash()
191 if (cost < 4 || cost > 31) { in php_password_bcrypt_hash()
192 zend_value_error("Invalid bcrypt cost parameter specified: " ZEND_LONG_FMT, cost); in php_password_bcrypt_hash()
196 …sh_format_len = snprintf(hash_format, sizeof(hash_format), "$2y$%02" ZEND_LONG_FMT_SPEC "$", cost); in php_password_bcrypt_hash()
/PHP-8.0/ext/standard/tests/crypt/
H A Dbcrypt_invalid_cost.phpt2 Test BCRYPT with invalid cost
/PHP-8.0/ext/sodium/tests/
H A Dbug78516.phpt2 Bug #78516 (password_hash(): Memory cost is not in allowed range)
/PHP-8.0/ext/opcache/jit/
H A Dzend_jit_vm_helpers.c297 …D_OPCODE_HANDLER_RET ZEND_FASTCALL zend_jit_trace_counter_helper(uint32_t cost ZEND_OPCODE_HANDLER… in zend_jit_trace_counter_helper()
306 *(ZEND_OP_TRACE_INFO(opline, offset)->counter) -= cost; in zend_jit_trace_counter_helper()
H A Dzend_jit_x86.dasc2345 static int zend_jit_hybrid_hot_counter_stub(dasm_State **Dst, uint32_t cost)
2350 | sub word [r2], cost
2415 static int zend_jit_hybrid_trace_counter_stub(dasm_State **Dst, uint32_t cost)
2421 | sub word [r2], cost
/PHP-8.0/ext/mbstring/libmbfl/
H A DLICENSE309 than the cost of performing this distribution.
/PHP-8.0/ext/bcmath/libbcmath/
H A DLICENSE312 than the cost of performing this distribution.
/PHP-8.0/build/
H A Dlibtool.m45847 # does not break anything, and helps significantly (at the cost of a little

Completed in 63 milliseconds